pytorch/torch/_prims
Aaron Gokaslan beb4d7816d [BE]: ruff PLC0207 - use maxsplit kwarg (#160107)
Automatically replaces split with rsplit when relevant and only performs the split up to the first ( or last value). This allows early return of the split function and improve efficiency.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/160107
Approved by: https://github.com/albanD
2025-08-08 03:14:59 +00:00
..
__init__.py [BE]: ruff PLC0207 - use maxsplit kwarg (#160107) 2025-08-08 03:14:59 +00:00
context.py remove allow-untyped-defs from context.py (#155622) 2025-06-16 07:38:34 +00:00
debug_prims.py [remove untyped defs] batch 1 (#157011) 2025-06-30 23:54:40 +00:00
executor.py remove allow-untyped-defs from torch/_prims/executor.py (#144233) 2025-01-07 19:40:40 +00:00
rng_prims.py [BE][PYFMT] migrate PYFMT for torch/_[a-h]*/ to ruff format (#144551) 2025-06-25 06:16:06 +00:00