ekalda commented on a change in pull request #9457:
URL: https://github.com/apache/tvm/pull/9457#discussion_r750120346
##########
File path: tests/python/contrib/test_ethosu/test_type_inference.py
##########
@@ -171,5 +180,26 @@ def test_ethosu_pooling_invalid_dtype():
run_opt_pass(func, relay.transform.InferType())
+def test_ethosu_identity_invalid_shape():
+ invalid_shape = [1, 2, 3, 4, 5]
+ dtype = "int8"
+ ifm = relay.var("ifm", shape=invalid_shape, dtype=dtype)
+
+ identity = make_ethosu_identity(ifm)
+ func = relay.Function([ifm], identity)
+ with pytest.raises(TVMError):
+ run_opt_pass(func, relay.transform.InferType())
+
+
+def test_ethosu_invalid_invalid_dtype():
Review comment:
Oops, done
##########
File path: tests/python/contrib/test_ethosu/test_type_inference.py
##########
@@ -171,5 +180,26 @@ def test_ethosu_pooling_invalid_dtype():
run_opt_pass(func, relay.transform.InferType())
+def test_ethosu_identity_invalid_shape():
Review comment:
Done
--
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]