[iOS][Metal] Add aten:hardswish (#64588)
authorTao Xu <taox@fb.com>
Tue, 7 Sep 2021 22:36:11 +0000 (15:36 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Tue, 7 Sep 2021 22:41:29 +0000 (15:41 -0700)
commit52ff9bc63916b6cb438d816d2b938a4d93d4fa96
tree84b4f9fad9cf6b8b7842f151a9de29c651c4773d
parent2c351c76e0980fede8020b25adec467635f1c2a0
[iOS][Metal] Add aten:hardswish (#64588)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/64588

Add `aten::hardswish` to run the mobilenetv3 model from torchvision.
ghstack-source-id: 137479323

Test Plan:
- buck test pp-macos
- circleCI

Reviewed By: beback4u

Differential Revision: D30781008

fbshipit-source-id: 83454869195ef4ab50570ea9b3bf2a55f32a3e86
aten/src/ATen/native/metal/mpscnn/tests/MPSCNNTests.h
aten/src/ATen/native/metal/mpscnn/tests/MPSCNNTests.mm
aten/src/ATen/native/metal/mpscnn/tests/MetalOpTestRunner.mm
aten/src/ATen/native/metal/ops/MetalHardswish.mm