pytorch/torch/testing/_internal
Vasiliy Kuznetsov ab8a99bd36 graph mode: add hardswish inplace handling (#40284)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/40284

Adds graph mode handling for inplace hardswish, and test coverage for functional hardswish.

Test Plan:
```
python test/test_quantization.py TestQuantizeScriptPTSQOps.test_hardswish
```

Imported from OSS

Differential Revision: D22140628

fbshipit-source-id: 55a514f7dc1130d510f69ee4e611d7cb5e08d02e
2020-06-21 09:40:50 -07:00
..
codegen [nvFuser] add torch.jit.fuser context manager (#38993) 2020-06-01 10:52:40 -07:00
data Use Python3 super() throughout torch.testing. (#37024) 2020-04-22 09:00:28 -07:00
distributed Add thrift and tensorpipe backend tests for test_ddp_under_dist_autograd. (#40210) 2020-06-20 22:59:59 -07:00
test_module Move pytorch distributed tests to separate folder for contbuild. (#30445) 2020-01-22 21:16:59 -08:00
__init__.py Move pytorch distributed tests to separate folder for contbuild. (#30445) 2020-01-22 21:16:59 -08:00
autocast_test_lists.py Back out "[pytorch][PR] Removes dunder div" 2020-06-19 18:31:20 -07:00
common_cuda.py Avoid printing erroneous warning about "MIOpen not found" for ROCm builds (#33837) 2020-04-17 20:31:01 -07:00
common_device_type.py Make test case precision property (#40057) 2020-06-19 14:24:55 -07:00
common_distributed.py Updates assertEqual to require atol and rtol, removes positional atol (#38872) 2020-05-27 06:31:07 -07:00
common_methods_invocations.py Back out "[pytorch][PR] Removes dunder div" 2020-06-19 18:31:20 -07:00
common_nn.py Updates assertEqual to require atol and rtol, removes positional atol (#38872) 2020-05-27 06:31:07 -07:00
common_quantization.py graph mode: add hardswish inplace handling (#40284) 2020-06-21 09:40:50 -07:00
common_quantized.py refactoring TestQuantizeScript (#39677) 2020-06-19 11:47:00 -07:00
common_utils.py Make test case precision property (#40057) 2020-06-19 14:24:55 -07:00
dist_utils.py Implement timeout support for RRefs (#38590) 2020-06-04 02:14:42 -07:00
expecttest.py Test test_is_nonzero make expected exception inline (#37128) 2020-04-24 13:12:31 -07:00
hypothesis_utils.py Limit max numel for test tensors (#38304) 2020-05-12 10:46:00 -07:00
jit_metaprogramming_utils.py [JIT] Factor out aliases to separate test (#38746) 2020-05-21 21:47:24 -07:00
jit_utils.py [test] split tracer related tests out of test_jit (#40142) 2020-06-17 17:26:33 -07:00