You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by "Hzfengsy (via GitHub)" <gi...@apache.org> on 2023/03/26 15:25:25 UTC
[GitHub] [tvm] Hzfengsy commented on a diff in pull request #14388: [Unity][Op] Conv1d
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: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org