mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 13:44:15 +08:00
Fix unused Python variables in test/[e-z]* (#136964)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/136964 Approved by: https://github.com/justinchuby, https://github.com/albanD
This commit is contained in:
committed by
PyTorch MergeBot
parent
d298bd840f
commit
d8c8ba2440
@ -915,7 +915,6 @@ class TestModule(TestCase):
|
||||
# parameters will be wrapped in an nn.Parameter before swapping
|
||||
# which will cause the ._cdata to change
|
||||
g_no_swap = device_ == prev_device and dtype_ == prev_dtype
|
||||
prev_prev_device, prev_prev_dtype = prev_device, prev_dtype
|
||||
prev_device, prev_dtype = device_, dtype_
|
||||
|
||||
p_ids_before = [id(p) for p in m.parameters()]
|
||||
|
Reference in New Issue
Block a user