mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Enable all PIE rules on ruff (#165814)
This PR enables all PIE rules on ruff, there are already some enabled rules from this family, the new added rules are ``` PIE796 Enum contains duplicate value: {value} PIE808 Unnecessary start argument in range ``` Pull Request resolved: https://github.com/pytorch/pytorch/pull/165814 Approved by: https://github.com/ezyang
This commit is contained in:
committed by
PyTorch MergeBot
parent
a0948d4d23
commit
fdab48a7c1
@ -231,7 +231,7 @@ class TestMatmulCuda(InductorTestCase):
|
||||
def test_cublas_addmm_alignment(self, dtype):
|
||||
device = 'cuda'
|
||||
# perturb X, A, or B alignment
|
||||
for idx in range(0, 3):
|
||||
for idx in range(3):
|
||||
for offset in range(1, 3):
|
||||
offsets = [0, 0, 0]
|
||||
offsets[idx] = offset
|
||||
|
Reference in New Issue
Block a user