pytorch/test
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
..
backward_compatibility Allow profiler to be enabled remotely with RPC (#38748) 2020-06-18 17:01:57 -07:00
bottleneck_test
cpp Release DistAutogradContainer context for each dist_autograd test case (#38711) 2020-06-18 20:58:55 -07:00
cpp_api_parity Updates assertEqual to require atol and rtol, removes positional atol (#38872) 2020-05-27 06:31:07 -07:00
cpp_extensions Assert that kernels are called with the right signature (#40251) 2020-06-18 21:54:05 -07:00
custom_operator Support c10::optional<Tensor> in custom C++ autograd function. (#37700) 2020-05-06 01:59:51 -07:00
distributed Add thrift and tensorpipe backend tests for test_ddp_under_dist_autograd. (#40210) 2020-06-20 22:59:59 -07:00
error_messages
expect Revert D22079377: [pytorch][PR] [RELAND] Change AccumulateGrad to yield .grads that match weights' memory layout 2020-06-17 10:17:27 -07:00
jit [JIT] Add support for with statements (#34705) 2020-06-18 16:57:18 -07:00
mobile Assert that kernels are called with the right signature (#40251) 2020-06-18 21:54:05 -07:00
onnx [ONNX] Update black_listed_operators for opset 12 (#39414) 2020-06-19 13:33:25 -07:00
optim
quantization graph mode: add hardswish inplace handling (#40284) 2020-06-21 09:40:50 -07:00
scripts
type_hint_tests Move all torch.nn.modules type annotations inline (#38211) 2020-06-11 15:59:57 -07:00
HowToWriteTestsUsingFileCheck.md
print_test_stats.py Upgrade lint. (#39483) 2020-06-04 12:56:43 -07:00
run_test.py Add thrift and tensorpipe backend tests for test_ddp_under_dist_autograd. (#40210) 2020-06-20 22:59:59 -07:00
simulate_nccl_errors.py
te_utils.py add test_tensorexpr.py (#35776) 2020-04-01 22:05:37 -07:00
test_autograd.py Back out "[pytorch][PR] Removes dunder div" 2020-06-19 18:31:20 -07:00
test_bundled_inputs.py Add utility for bundling sample inputs with models (#35631) 2020-04-08 13:10:36 -07:00
test_complex.py Remove copy_imag and copy_real methods (#39065) 2020-06-03 18:22:50 -07:00
test_cpp_api_parity.py Refactor C++ API parity test mechanism and turn it on in CI again (#35190) 2020-04-03 11:20:36 -07:00
test_cpp_extensions_aot.py Updates assertEqual to require atol and rtol, removes positional atol (#38872) 2020-05-27 06:31:07 -07:00
test_cpp_extensions_jit.py Updates assertEqual to require atol and rtol, removes positional atol (#38872) 2020-05-27 06:31:07 -07:00
test_cuda_primary_ctx.py
test_cuda.py Revert D22079377: [pytorch][PR] [RELAND] Change AccumulateGrad to yield .grads that match weights' memory layout 2020-06-17 10:17:27 -07:00
test_dataloader.py [DataLoader] add repr for WorkerInfo (#39975) 2020-06-16 08:19:32 -07:00
test_determination.py Use @skipIfNoFBGEMM instead of direct check (#39068) 2020-06-01 17:15:36 -07:00
test_dispatch.py Switch to pybind11 style registration function API. (#36258) 2020-04-16 10:44:21 -07:00
test_distributions.py Updates assertEqual to require atol and rtol, removes positional atol (#38872) 2020-05-27 06:31:07 -07:00
test_expecttest.py
test_function_schema.py
test_futures.py [futures] Add specific python unittest coverage for collect_all/wait_all (#40233) 2020-06-18 16:14:10 -07:00
test_indexing.py Changes TensorIterator computation to not consider out kwarg, lets UnaryOps safe cast to out (#39655) 2020-06-10 09:04:13 -07:00
test_jit_cuda_fuser.py [nvFuser] Transform replay refactor and minor updates (#39579) 2020-06-11 23:04:24 -07:00
test_jit_disabled.py
test_jit_fuser_legacy.py
test_jit_fuser_te.py [test] split tracer related tests out of test_jit (#40142) 2020-06-17 17:26:33 -07:00
test_jit_fuser.py [test] split tracer related tests out of test_jit (#40142) 2020-06-17 17:26:33 -07:00
test_jit_legacy.py Remove (most) Python 2 support from Python code (#35615) 2020-04-22 09:23:14 -07:00
test_jit_profiling.py run the simple executor for jit tests by default, add profiling jobs … (#37017) 2020-04-28 19:16:52 -07:00
test_jit_py3.py Back out "[pytorch][PR] [JIT] Infer NamedTuple type attributes of nn.Modules correctly" (#40270) 2020-06-19 02:58:31 -07:00
test_jit_simple.py make test_jit infer the profiling mode, add a job for simple executor (#38374) 2020-05-13 23:55:40 -07:00
test_jit_string.py Fix inconsistent results of string split func on JIT mode (#38772) 2020-06-17 12:43:36 -07:00
test_jit.py [jit] support pad_sequence/pack_sequence (#39844) 2020-06-19 19:03:14 -07:00
test_logging.py
test_mkldnn.py DNNL: fix F.max_pool2d and F.avg_pool2 issue when stride=None (#39221) 2020-06-15 21:00:12 -07:00
test_mobile_optimizer.py Add optimization blacklist as second arg to optimizeForMobile method. (#37462) 2020-06-17 18:14:45 -07:00
test_multiprocessing_spawn.py Remove (most) Python 2 support from Python code (#35615) 2020-04-22 09:23:14 -07:00
test_multiprocessing.py Updates assertEqual to require atol and rtol, removes positional atol (#38872) 2020-05-27 06:31:07 -07:00
test_namedtensor.py Remove supports_named_tensor from codegen entirely. (#38739) 2020-06-01 13:09:08 -07:00
test_namedtuple_return_api.py
test_nn.py Remove overload of GPU max_pool3d with kernel_width; fix nan, inf in GPU {fractional,adaptive} max_pool{2,3}d (#39903) 2020-06-17 16:18:33 -07:00
test_numba_integration.py Remove (most) Python 2 support from Python code (#35615) 2020-04-22 09:23:14 -07:00
test_openmp.py Fix flaky test (#40175) 2020-06-17 15:40:28 -07:00
test_optim.py Make Optimizer.state_dict() nondeterministic (#37347) 2020-06-01 15:32:02 -07:00
test_overrides.py Fix incorrect __torch_function__ handling in einsum (#38741) 2020-05-21 06:59:25 -07:00
test_quantization.py [quant][graphmode] Rename graph mode quantization API to quantize_jit (#40212) 2020-06-19 18:13:37 -07:00
test_serialization.py [JIT] Make new zip serialization for torch save/load significantly (~70%) faster (#38379) 2020-05-29 01:56:18 -07:00
test_show_pickle.py Add torch.utils.show_pickle for showing pickle contents in saved models (#35168) 2020-04-03 15:11:20 -07:00
test_sparse.py Updates assertEqual to require atol and rtol, removes positional atol (#38872) 2020-05-27 06:31:07 -07:00
test_tensorboard.py Upgrade lint. (#39483) 2020-06-04 12:56:43 -07:00
test_tensorexpr.py move num_profiled_runs to common_utils (#38687) 2020-05-27 01:14:01 -07:00
test_throughput_benchmark.py ThroughputBenchmark: integration with Autograd Profiler (#36282) 2020-04-13 08:53:40 -07:00
test_torch.py restore generic IndexToScatterGatherOffset specialization (#40349) 2020-06-20 23:14:13 -07:00
test_type_hints.py Add --check-untyped-defs to mypy.ini and test suite (#37594) 2020-05-07 06:36:01 -07:00
test_type_info.py
test_type_promotion.py Fixes type promotion for cat (#39777) 2020-06-11 05:52:56 -07:00
test_utils.py Add file_name argument to load_state_dict_from_url (#39749) 2020-06-12 10:31:22 -07:00
test_vulkan.py [vulkan] jit passes for vulkan conv2 prepack and fuse with clamp (#39282) 2020-06-20 14:12:21 -07:00
test_xnnpack_integration.py Add preprocessing that fuses decomposed linear into linear. (#37937) 2020-05-07 18:08:36 -07:00