Hzfengsy commented on code in PR #14388:
URL: https://github.com/apache/tvm/pull/14388#discussion_r1148579176
##########
tests/python/relax/test_tvmscript_parser_op_nn.py:
##########
@@ -35,6 +35,24 @@ def _check(
tvm.ir.assert_structural_equal(parsed, expect)
+def test_conv1d():
+ @R.function
+ def foo(
+ x: R.Tensor((2, 3, 228), "float32"), w: R.Tensor((16, 3, 5), "float32")
+ ) -> R.Tensor((2, 16, 224), "float16"):
+ gv: R.Tensor((2, 16, 224), "float16") = R.nn.conv1d(x, w,
out_dtype="float16")
Review Comment:
Not a big problem, but it is not a common case to take fp32 as input and
fp16 as output :-)
--
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]