tkonolige commented on a change in pull request #8030:
URL: https://github.com/apache/tvm/pull/8030#discussion_r634793073
##########
File path: tests/python/topi/python/test_topi_transform.py
##########
@@ -870,6 +871,31 @@ def test_transpose():
verify_transpose((3, 10), None)
[email protected]_targets
+def test_transpose_schedule(target, dev):
+ shape = (100, target.thread_warp_size + 3)
+ x = relay.var("x", relay.TensorType(shape, "float32"))
+ f = relay.transpose(x)
+ ex = relay.create_executor(
+ kind="graph", mod=tvm.IRModule.from_expr(relay.Function([x], f)),
device=dev, target=target
+ )
+ r = np.random.rand(*shape)
+ tvm.testing.assert_allclose(ex.evaluate()(r).asnumpy(), np.transpose(r))
+
+ # We want to make sure schedule does not fire here, but there is no way of
+ # inspecting which schedules were used.
Review comment:
We could. I like to keep it separate so the intention is known.
--
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]