pytorch/torch/backends
Aaron Gokaslan 6d725e7d66 [BE]: enable ruff rules PLR1722 and PLW3301 (#109461)
Enables two ruff rules derived from pylint:
* PLR1722 replaces any exit() calls with sys.exit(). exit() is only designed to be used in repl contexts as may not always be imported by default. This always use the version in the sys module which is better
* PLW3301 replaces nested min / max calls with simplified versions (ie. `min(a, min(b, c))` => `min(a, b. c)`). The new version is more idiomatic and more efficient.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/109461
Approved by: https://github.com/ezyang
2023-09-18 02:07:21 +00:00
..
_coreml Apply UFMT to low traffic torch modules (#106249) 2023-07-29 23:37:30 +00:00
_nnapi Apply UFMT to low traffic torch modules (#106249) 2023-07-29 23:37:30 +00:00
cpu Apply UFMT to low traffic torch modules (#106249) 2023-07-29 23:37:30 +00:00
cuda [BE]: Update ruff to 0.285 (#107519) 2023-08-22 23:16:38 +00:00
cudnn Apply UFMT to low traffic torch modules (#106249) 2023-07-29 23:37:30 +00:00
mkl Apply UFMT to low traffic torch modules (#106249) 2023-07-29 23:37:30 +00:00
mkldnn Apply UFMT to low traffic torch modules (#106249) 2023-07-29 23:37:30 +00:00
mps Apply UFMT to low traffic torch modules (#106249) 2023-07-29 23:37:30 +00:00
openmp
opt_einsum Apply UFMT to low traffic torch modules (#106249) 2023-07-29 23:37:30 +00:00
quantized Apply UFMT to low traffic torch modules (#106249) 2023-07-29 23:37:30 +00:00
xeon [BE]: enable ruff rules PLR1722 and PLW3301 (#109461) 2023-09-18 02:07:21 +00:00
xnnpack Apply UFMT to low traffic torch modules (#106249) 2023-07-29 23:37:30 +00:00
__init__.py Apply UFMT to low traffic torch modules (#106249) 2023-07-29 23:37:30 +00:00