test_jit.py: Speedup EndToEnd tests by reducing workload size. (#15906)
authorMikhail Zolotukhin <mvz@fb.com>
Thu, 10 Jan 2019 05:11:58 +0000 (21:11 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 10 Jan 2019 05:14:35 +0000 (21:14 -0800)
commit628bf5e3c9a18d8a6626ba4e2c56714a9ea75bfd
treeeb5be94a4c5565bbc1a401325ed3f0d8de300cfc
parent23e28efed43d84366894fb6c6c963e64097730d8
test_jit.py: Speedup EndToEnd tests by reducing workload size. (#15906)

Summary:
Currently these tests are taking most of the time in test_jit.py run, with the
proposed changes the testing time is reduced by ~75%:

```
TestEndToEndHybridFrontendModels.test_neural_style: 203.360s -> 10.650s
TestEndToEndHybridFrontendModels.test_snli: 422.315s -> 9.152s
TestEndToEndHybridFrontendModels.test_super_resolution: 73.362s -> 19.185s

time python test/test_jit.py (real): 13m50.828s -> 3m11.768s
time python test/test_jit.py (user): 85m59.745s -> 13m18.135s
time python test/test_jit.py (sys): 144m9.028s -> 25m58.019s
```
Pull Request resolved: https://github.com/pytorch/pytorch/pull/15906

Differential Revision: D13619659

Pulled By: ZolotukhinM

fbshipit-source-id: 6c22d8740f8ddb865c3a0667af32653723383816
test/test_jit.py