pytorch/torch/cuda
Aaron Gokaslan 5a1216bb2e [BE]: Update ruff to 0.4.1 (#124549)
Update ruff to 0.4.1 .
This version fixes a lot false negatives/false positives, is 20-40% faster, and has various other bug fixes.

Below is a before and after table showing the execution time of ruff lint and ruff format in milliseconds courtesy of https://astral.sh/blog/ruff-v0.4.0

| Repository                                         | Linter (v0.3) | Linter (v0.4) | Formatter (v0.3) | Formatter (v0.4) |
|----------------------------------------------------|---------------|---------------|------------------|------------------|
| [pytorch/pytorch](https://github.com/pytorch/pytorch) | 328.7         | 251.8         | 351.1            | 274.9            |

Pull Request resolved: https://github.com/pytorch/pytorch/pull/124549
Approved by: https://github.com/ezyang
2024-04-21 14:06:23 +00:00
..
amp add GradScaler on CPU (#109993) 2024-01-29 23:42:35 +00:00
__init__.py Support Accelerator OOM Error (#121200) (#121702) 2024-04-15 21:41:46 +00:00
_gpu_trace.py Refactor gpu trace to be device-agnostic (#121794) 2024-03-30 13:04:38 +00:00
_memory_viz.py [BE] enable ruff rule RSE and remove useless parentheses in raise statements (#124261) 2024-04-17 19:29:34 +00:00
_sanitizer.py Refactor gpu trace to be device-agnostic (#121794) 2024-03-30 13:04:38 +00:00
_utils.py refactor code to share across different devices (#120602) 2024-02-28 09:42:58 +00:00
comm.py
error.py
graphs.py [CUDA graphs] Pool argument for make_graphed_callables (#121475) 2024-03-09 00:15:38 +00:00
jiterator.py Fix pydocstyle errors listed in issue 112589 (#113227) 2023-11-13 22:05:45 +00:00
memory.py [BE]: Update ruff to 0.4.1 (#124549) 2024-04-21 14:06:23 +00:00
nccl.py [pytorch] Remove dot if no suffix (#113273) 2023-11-12 15:41:27 +00:00
nvtx.py Fix docstring errors in memory.py, nvtx.py (#112751) 2023-11-03 15:19:17 +00:00
profiler.py
random.py Fixed docstring errors inside torch/cuda/ and torch/optim/ (Docathon H2) (#112964) 2023-11-13 22:16:44 +00:00
sparse.py
streams.py refactor code to share across different devices (#120602) 2024-02-28 09:42:58 +00:00