[Static Runtime] Out version for softmax (#64243)
authorRay Peng <ruipeng@fb.com>
Wed, 1 Sep 2021 00:45:50 +0000 (17:45 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Wed, 1 Sep 2021 01:33:26 +0000 (18:33 -0700)
commit09e610e36d0106410e37e129fd0cd5749c74ad5f
tree1044d04eaa1a0507e73b682c82f0b27d11def2dd
parent0b9cdeb2956d3dd281a04d30e8cee55bf2101ba9
[Static Runtime] Out version for softmax (#64243)

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

Test Plan:
```
> buck run //caffe2/benchmarks/static_runtime:static_runtime_cpptest -- --v=1
...
V0830 16:35:22.524479 613839 impl.cpp:1410] Switch to out variant for node: %5 : Tensor = aten::softmax(%a.1, %dim.1, %dtype.1)
...
[       OK ] StaticRuntime.IndividualOps_Softmax (803 ms)
```

Reviewed By: hlu1

Differential Revision: D30656149

fbshipit-source-id: 115b7b4a75448fd6a5c526808080ca9a4251302c
benchmarks/static_runtime/test_scripts.h
benchmarks/static_runtime/test_static_runtime.cc
torch/csrc/jit/runtime/static/ops.cpp