You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the Issue Tracker that this hasn't already been reported. (comment there if it has.)
Motivation
Since this project is speed motivated, it would best best use flake8-comprehensions to ensure that any list/dict/tuple etc comprehensions. Skimming over the list, of checks it looks like most if not all the best practices are already implemented in this repo, best just to add it though to ensure that future sub-optimal codepaths are not accidentally introduced.
We recently enabled almost all the checks in the latest version of PyTorch.
Solution
Add flake8-comprehensions plugin
Alternatives
Do not add it, rely on code review to maintain performance and avoid useless or wasteful comprehensions, builtin calls, etc.
Additional context
We enabled all the checks in PyTorch anyhow.
The text was updated successfully, but these errors were encountered:
Required prerequisites
Motivation
Since this project is speed motivated, it would best best use flake8-comprehensions to ensure that any list/dict/tuple etc comprehensions. Skimming over the list, of checks it looks like most if not all the best practices are already implemented in this repo, best just to add it though to ensure that future sub-optimal codepaths are not accidentally introduced.
We recently enabled almost all the checks in the latest version of PyTorch.
Solution
Add flake8-comprehensions plugin
Alternatives
Do not add it, rely on code review to maintain performance and avoid useless or wasteful comprehensions, builtin calls, etc.
Additional context
We enabled all the checks in PyTorch anyhow.
The text was updated successfully, but these errors were encountered: