masahi commented on code in PR #14166:
URL: https://github.com/apache/tvm/pull/14166#discussion_r1122386539
##########
tests/python/relax/test_codegen_cutlass.py:
##########
@@ -120,12 +119,27 @@ def test_conv2d_offload():
np.testing.assert_equal(out, ref)
+def test_kernel_sharing():
+ data_np = np.random.randn(16, 32, 32, 16).astype("float16")
+ weight1_np = np.random.randn(16, 3, 3, 16).astype("float16")
+ weight2_np = np.random.randn(16, 3, 3, 16).astype("float16")
+
+ out = get_result_with_relax_cutlass_offload(Conv2dx2, data_np, weight1_np,
weight2_np)
+
+ relay_expr = get_relay_conv2d_relu_x2(data_np.shape, weight1_np.shape)
+ ref = get_relay_ref(relay_expr, data_np, weight1_np, weight2_np)
Review Comment:
This diff seems like a merge bug. There should be no use of relay. (Also
remove `import relay`).
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]