vinx13 commented on code in PR #10892:
URL: https://github.com/apache/tvm/pull/10892#discussion_r842244293
##########
tests/python/unittest/test_tvmscript_syntax_sugar.py:
##########
@@ -181,5 +181,27 @@ def test_dynamic_shape_gemm():
assert_structural_equal(gemm_dyn_shape, gemm_dyn_shape_roundtrip)
[email protected]_func
+def match_buffer_int64(a: T.handle, c: T.handle) -> None:
+ A = T.match_buffer(a, (T.int64(128), T.int64(128)), dtype="float32")
+ B = T.alloc_buffer((T.int64(128), T.int64(128)), dtype="float32")
+ C = T.match_buffer(c, (T.int64(128), T.int64(128)), dtype="float32")
+ for i, j in T.grid(128, 128):
+ with T.block("B"):
+ vi, vj = T.axis.remap("SS", [i, j])
+ B[vi, vj] = A[vi, vj] * 2.0
+ for i, j in T.grid(T.int64(128), T.int64(128)):
+ with T.block("C"):
+ vi, vj = T.axis.remap("SS", [i, j])
+ C[vi, vj] = B[vi, vj] + 1.0
+
+
+def test_match_buffer_int64():
+ original = match_buffer_int64
+ after_roundtrip = from_source(original.script(show_meta=True))
+ after_roundtrip_back = from_source(after_roundtrip.script(show_meta=True))
+ assert_structural_equal(after_roundtrip, after_roundtrip_back, True)
Review Comment:
this is actually more than one roundtrip, is it necessary?
--
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]