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` from previous commit?




----------------------------------------------------------------
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:
[email protected]


Reply via email to