pytorch/benchmarks
Aaron Gokaslan e2a3817dfd [BE] Enable C419 rule for any all shortcircuiting (#99890)
Apparently https://github.com/pytorch/pytorch/pull/78142 made torch.JIT allow for simple generator expressions which allows us to enable rules that replace unnecessary list comprehensions with generators in any/all. This was originally part of #99280 but I split it off into this PR so that it can be easily reverted should anything break.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/99890
Approved by: https://github.com/justinchuby, https://github.com/kit1980, https://github.com/malfet
2023-04-25 15:02:13 +00:00
..
cpp moving nvfuser benchmark to third_party/nvfuser (#96725) 2023-03-21 23:19:15 +00:00
distributed [BE]: Update flake8 and plugins and fix bugs (#97795) 2023-03-28 23:51:55 +00:00
dynamo [BE] Enable C419 rule for any all shortcircuiting (#99890) 2023-04-25 15:02:13 +00:00
fastrnns
framework_overhead_benchmark
functional_autograd_benchmark
fuser
instruction_counts
nested
operator_benchmark [BE] Enable C419 rule for any all shortcircuiting (#99890) 2023-04-25 15:02:13 +00:00
overrides_benchmark
profiler_benchmark
record_function_benchmark
serialization [PyTorch] Add annotation_str benchmark (#96496) 2023-03-23 04:18:07 +00:00
sparse [BE] Enable flake8-comprehension rule C417 (#97880) 2023-03-30 14:34:24 +00:00
static_runtime
tensorexpr
transformer
compare-fastrnn-results.py
compare.sh
README.md
upload_scribe.py

PyTorch Benchmarks

This folder contains scripts that produce reproducible timings of various PyTorch features.

It also provides mechanisms to compare PyTorch with other frameworks.

Setup environment

Make sure you're on a machine with CUDA, torchvision, and pytorch installed. Install in the following order:

# Install torchvision. It comes with the pytorch stable release binary
conda install pytorch torchvision -c pytorch

# Install the latest pytorch master from source.
# It should supersede the installation from the release binary.
cd $PYTORCH_HOME
python setup.py build develop

# Check the pytorch installation version
python -c "import torch; print(torch.__version__)"

Benchmark List

Please refer to each subfolder to discover each benchmark suite