mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[BE]: Update Ruff to 0.0.280 (#105724)
Removes unusued loop values in python dictionary iteration. Automated fix from Ruff master Pull Request resolved: https://github.com/pytorch/pytorch/pull/105724 Approved by: https://github.com/ezyang, https://github.com/janeyx99
This commit is contained in:
committed by
PyTorch MergeBot
parent
53a4b262d2
commit
6d43c89f37
@ -204,7 +204,7 @@ class TestMkldnnFusion(JitTestCase):
|
||||
x = self.unary(x)
|
||||
return x
|
||||
|
||||
for pointwise_name, pointwise_info in self._unary_list().items():
|
||||
for pointwise_info in self._unary_list().values():
|
||||
options = itertools.product([[2, 3, 10], [2, 10]], [True, False])
|
||||
for input_shape, bias in options:
|
||||
with torch.no_grad():
|
||||
@ -233,7 +233,7 @@ class TestMkldnnFusion(JitTestCase):
|
||||
return x
|
||||
|
||||
input_shapes = {2: (112, 112), 3: (55, 55, 55)}
|
||||
for pointwise_name, pointwise_info in self._unary_list().items():
|
||||
for pointwise_info in self._unary_list().values():
|
||||
for dim in [2, 3]:
|
||||
channels_last = torch.channels_last if dim == 2 else torch.channels_last_3d
|
||||
options = itertools.product([True, False], [1, 2], [1, 4], [torch.contiguous_format, channels_last])
|
||||
@ -347,7 +347,7 @@ class TestMkldnnFusion(JitTestCase):
|
||||
|
||||
input_shapes = {2: (28, 28)}
|
||||
kernel_size = 3
|
||||
for pointwise_name, pointwise_info in self._unary_list().items():
|
||||
for pointwise_info in self._unary_list().values():
|
||||
for dim in [2]:
|
||||
channels_last = torch.channels_last if dim == 2 else torch.channels_last_3d
|
||||
options = itertools.product([True, False], [1, 2], [1, 4], [torch.contiguous_format, channels_last], [False, True])
|
||||
|
Reference in New Issue
Block a user