mirror of
https://github.com/zebrajr/pytorch.git
synced 2026-01-15 12:15:51 +00:00
This PR applies various ruff experimental fixes to code. Most changes are about simplifying `if` conditions. These fixes were applied with `ruff --preview` but my view indicates that they are safe. Pull Request resolved: https://github.com/pytorch/pytorch/pull/170968 Approved by: https://github.com/Lucaskabela