[BE] Format uncategorized Python files with ruff format (#132576)

Remove patterns `**`, `test/**`, and `torch/**` in `tools/linter/adapters/pyfmt_linter.py` and run `lintrunner`.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/132576
Approved by: https://github.com/ezyang, https://github.com/Skylion007
ghstack dependencies: #132574
This commit is contained in:
Xuehai Pan
2024-08-04 22:11:05 +08:00
committed by PyTorch MergeBot
parent c35061c542
commit 4226ed1585
58 changed files with 520 additions and 1428 deletions

View File

@ -622,11 +622,7 @@ class TestDecomp(TestCase):
# rrelu_with_noise behavior depends on a) whether elements in the input
# are <= 0, and b) whether we're in training mode. Cover all cases:
dtype = torch.float64
x = torch.tensor(
[-3.0, -2.0, -1.0, 0.0, 1.0, 2.0],
dtype=dtype,
device=device,
)
x = torch.tensor([-3.0, -2.0, -1.0, 0.0, 1.0, 2.0], dtype=dtype, device=device)
lower = 1.0
upper = 4.0
training = False