You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2021/12/16 21:44:06 UTC

[GitHub] [tvm] vinx13 commented on a change in pull request #9758: [TVMScript][FIX] Fix number of arguments for T.Buffer[...]

vinx13 commented on a change in pull request #9758:
URL: https://github.com/apache/tvm/pull/9758#discussion_r770940774



##########
File path: tests/python/unittest/test_tvmscript_syntax_sugar.py
##########
@@ -146,5 +146,16 @@ def test_match_buffer_syntax_sugar():
     assert_structural_equal(elementwise_handle, elementwise_buffer_no_kwargs)
 
 
+# match buffer failed case
+def test_match_buffer_no_kwargs_failed():
+    with pytest.raises(ValueError) as e:
+
+        def elementwise_buffer_no_kwargs_failed(

Review comment:
       ```suggestion
           @T.prim_func
           def elementwise_buffer_no_kwargs_failed(
   ```
   we'd like to make the test case as close to real use case as possible




-- 
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: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org