Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize min/max/sum comprehensions C419 (#123960)
Summary: Automatic fixes that replaces certain list comprehensions with generator ones where appropriate so that they are immediately consumed. This is preview functionality in ruff for rule C419 and it was automatically applied. X-link: pytorch/pytorch#123960 Approved by: https://github.com/malfet Reviewed By: PaliC Differential Revision: D56119617 fbshipit-source-id: 9b25a3d55cd2666e27d0f78a9994ffeeffef7ba7 Co-authored-by: Nikita Shulga <2453524+malfet@users.noreply.github.com>
- Loading branch information