mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[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:
committed by
PyTorch MergeBot
parent
c35061c542
commit
4226ed1585
@ -1094,14 +1094,7 @@ class TestOptimRenewed(TestCase):
|
||||
# would look like, which is basically CPU tensors with fused/capturable flag = True.
|
||||
optim_cls = optim_info.optim_cls
|
||||
opt_name = optim_cls.__name__
|
||||
if (
|
||||
opt_name
|
||||
in (
|
||||
"SGD",
|
||||
"Adagrad",
|
||||
)
|
||||
and impl == "capturable"
|
||||
):
|
||||
if opt_name in ("SGD", "Adagrad") and impl == "capturable":
|
||||
# Capturable SGD/Adagrad does not exist
|
||||
self.skipTest("SGD does not currently support capturable")
|
||||
if _get_device_type(device) == "cpu":
|
||||
|
Reference in New Issue
Block a user