pytorch/torch/_refs
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
..
linalg Fix Dynamo tests failing with "Failed running call_function <built-in function linalg_norm" (#120993) 2024-03-01 20:27:45 +00:00
nn Fix #83241: torch.nn.TripletMarginLoss allowed margin less or equal to 0 (#121978) 2024-03-19 23:19:11 +00:00
special Replace _prims_common.check with torch._check* (#103240) 2023-06-21 00:46:17 +00:00
__init__.py [BE]: Update ruff to 0.4.1 (#124549) 2024-04-21 14:06:23 +00:00
_conversions.py Replace _prims_common.check with torch._check* (#103240) 2023-06-21 00:46:17 +00:00
fft.py [ROCm] Enable float16/complex32 fft tests on ROCm (#117296) 2024-02-13 22:35:32 +00:00