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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]