ashutosh-arm commented on code in PR #11732:
URL: https://github.com/apache/tvm/pull/11732#discussion_r899108072
##########
tests/python/contrib/test_cmsisnn/test_scalar_to_tensor_constant.py:
##########
@@ -256,6 +256,47 @@ def test_all_primary_operands_tensor_constants():
assert tvm.ir.structural_equal(mod[global_var].body,
new_mod[global_var].body)
[email protected]_cmsisnn
+def test_duplicate_constant_arguments():
+ """Tests the pass when repeating operands are arguments to the binary op"""
+ dtype = "int8"
+ shape = (1, 3, 3, 32)
+ operand0 = generate_variable("operand0", shape, dtype)
+ operand1 = generate_variable("operand0", shape, dtype)
Review Comment:
Good catch. Thanks!
--
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]