You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2020/12/29 09:16:46 UTC

[GitHub] [tvm] insop commented on a change in pull request #7174: [Torch] Support hard_swish op

insop commented on a change in pull request #7174:
URL: https://github.com/apache/tvm/pull/7174#discussion_r549629698



##########
File path: tests/python/frontend/pytorch/test_forward.py
##########
@@ -3437,6 +3437,12 @@ def test_fn(x, weights=None):
     verify_trace_model(test_fn, [inp, weights], targets)
 
 
+def test_hard_swish():
+    examples = [torch.rand(8).float(), torch.rand(8, 10).float(), torch.rand(1, 1, 10).float()]
+    for input in examples:
+        verify_model(torch.nn.Hardswish().eval(), input_data=input)

Review comment:
       Any reason to drop `hard_swish_inplace`?




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org