Lunderberg commented on a change in pull request #10099:
URL: https://github.com/apache/tvm/pull/10099#discussion_r798615771
##########
File path: tests/python/unittest/test_tvmscript_roundtrip.py
##########
@@ -3255,5 +3255,44 @@ def test_root_attr():
tvm.ir.assert_structural_equal(func, rt_func, True)
[email protected]_func
+def func_T_ptr_let_statement(
+ args: T.handle, arg_type_ids_handle: T.Ptr[T.int32], num_args: T.int32
+) -> None:
+ # buffer definition
+ arg_type_ids = T.buffer_decl([2], dtype="int32", data=arg_type_ids_handle)
+ # body
+ assert num_args == 2, "main: num_args should be 3"
Review comment:
Thank you, and the comment is incorrect. The check here isn't strictly
necessary, and was included to mimic the functions generated by
`MakePackedAPI`. I've removed the assert, and added comments to explicitly
state the behavior being tested.
--
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]