Laurawly commented on a change in pull request #6373:
URL: https://github.com/apache/incubator-tvm/pull/6373#discussion_r513774175
##########
File path: python/tvm/relay/op/image/_image.py
##########
@@ -109,6 +136,23 @@ def compute_affine_grid(attrs, inputs, out_dtype):
reg.register_injective_schedule("image.affine_grid")
+@script
+def _affine_grid_func(data, target_shape):
+ out = output_tensor((4,), "int64")
+ out[0] = int64(data[0])
+ out[1] = int64(2)
+ out[2] = int64(target_shape[0])
Review comment:
No I don't think so.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]