mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[BE]: Apply ruff PERF403 to use dict comprehensions more often (#149257)
Fixes #ISSUE_NUMBER Pull Request resolved: https://github.com/pytorch/pytorch/pull/149257 Approved by: https://github.com/jansel
This commit is contained in:
committed by
PyTorch MergeBot
parent
811f587d86
commit
a0ac63cbd9
@ -91,9 +91,7 @@ def tunableop_matmul(device, dtype):
|
||||
|
||||
def get_tunableop_validators():
|
||||
assert len(torch.cuda.tunable.get_validators()) > 0
|
||||
validators = {}
|
||||
for key, value in torch.cuda.tunable.get_validators():
|
||||
validators[key] = value
|
||||
validators = dict(torch.cuda.tunable.get_validators())
|
||||
return validators
|
||||
|
||||
class TestLinalg(TestCase):
|
||||
|
||||
Reference in New Issue
Block a user