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:
Justin Chu
2023-04-22 09:41:27 -07:00
committed by PyTorch MergeBot
parent dc1c0924ec
commit 79c9e82e27
16 changed files with 21 additions and 23 deletions

View File

@ -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(