Laurawly commented on a change in pull request #6373:
URL: https://github.com/apache/incubator-tvm/pull/6373#discussion_r513774407
##########
File path: python/tvm/relay/op/image/_image.py
##########
@@ -118,3 +162,19 @@ def compute_grid_sample(attrs, inputs, out_dtype):
return [topi.image.grid_sample(inputs[0], inputs[1], method, layout)]
reg.register_injective_schedule("image.grid_sample")
+
+@script
+def _grid_sample_func(data, grid):
+ out = output_tensor((4,), "int64")
+ out[0] = int64(data[0])
+ out[1] = int64(data[1])
+ out[2] = int64(grid[2])
+ out[3] = int64(grid[3])
Review comment:
No, I think it only supports NCHW
----------------------------------------------------------------
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]