mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Fix flake8 lint errors reported by ruff - take 2 (#99798)
Replaces #99784. This PR is pure autofix. Pull Request resolved: https://github.com/pytorch/pytorch/pull/99798 Approved by: https://github.com/Skylion007, https://github.com/kit1980
This commit is contained in:
committed by
PyTorch MergeBot
parent
dc1c0924ec
commit
79c9e82e27
@ -1595,7 +1595,7 @@ class TestTEFuser(JitTestCase):
|
||||
t = torch.jit.trace(fn, (x, y))
|
||||
t(x, y)
|
||||
self.assertEqual(ref, t(x, y))
|
||||
if not str(size) in skip_is_fused_check_sizes:
|
||||
if str(size) not in skip_is_fused_check_sizes:
|
||||
self.assertAllFused(t.graph_for(x, y))
|
||||
except Exception as e:
|
||||
raise RuntimeError(
|
||||
|
||||
Reference in New Issue
Block a user