pytorch/benchmarks
Xuehai Pan 8d45f555d7 [BE] [1/3] Rewrite super() calls in caffe2 and benchmarks (#94587)
Rewrite Python built-in class `super()` calls. Only non-semantic changes should be applied.

- #94587
- #94588
- #94592

Also, methods with only a `super()` call are removed:

```diff
class MyModule(nn.Module):
-   def __init__(self):
-       super().__init__()
-
    def forward(self, ...):
        ...
```

Some cases that change the semantics should be kept unchanged. E.g.:

f152a79be9/caffe2/python/net_printer.py (L184-L190)

f152a79be9/test/test_jit_fuser_te.py (L2628-L2635)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/94587
Approved by: https://github.com/ezyang
2023-02-11 18:19:48 +00:00
..
cpp [NVFuser] Upstream push 1026 (#87779) 2022-11-04 20:04:34 +00:00
distributed [BE] [1/3] Rewrite super() calls in caffe2 and benchmarks (#94587) 2023-02-11 18:19:48 +00:00
dynamo [BE] [1/3] Rewrite super() calls in caffe2 and benchmarks (#94587) 2023-02-11 18:19:48 +00:00
fastrnns [BE] [1/3] Rewrite super() calls in caffe2 and benchmarks (#94587) 2023-02-11 18:19:48 +00:00
framework_overhead_benchmark [BE] [1/3] Rewrite super() calls in caffe2 and benchmarks (#94587) 2023-02-11 18:19:48 +00:00
functional_autograd_benchmark [BE] [1/3] Rewrite super() calls in caffe2 and benchmarks (#94587) 2023-02-11 18:19:48 +00:00
fuser
instruction_counts [BE] Prefer dash over underscore in command-line options (#94505) 2023-02-09 20:16:49 +00:00
nested Use tensor cores for NT bmm (#86856) 2022-11-02 21:51:40 +00:00
operator_benchmark [BE] [1/3] Rewrite super() calls in caffe2 and benchmarks (#94587) 2023-02-11 18:19:48 +00:00
overrides_benchmark
profiler_benchmark [BE] Prefer dash over underscore in command-line options (#94505) 2023-02-09 20:16:49 +00:00
record_function_benchmark [BE] Prefer dash over underscore in command-line options (#94505) 2023-02-09 20:16:49 +00:00
serialization
sparse [BE] Prefer dash over underscore in command-line options (#94505) 2023-02-09 20:16:49 +00:00
static_runtime [BE] Tweak Meta copyright headers (#90805) 2022-12-14 20:30:31 +00:00
tensorexpr [BE] [1/3] Rewrite super() calls in caffe2 and benchmarks (#94587) 2023-02-11 18:19:48 +00:00
transformer [BE] Prefer dash over underscore in command-line options (#94505) 2023-02-09 20:16:49 +00:00
compare-fastrnn-results.py
compare.sh
README.md
upload_scribe.py [BE] Prefer dash over underscore in command-line options (#94505) 2023-02-09 20:16:49 +00:00

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