mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
Fix test/test_optim.py error message. (#153076)
Fixes an error message in test/test_optim.py Current behavior: If running the test with Adagrad, the error message reads: "SGD does not currently support capturable". Fix: The error message now says correctly: "Adagrad does not currently support capturable". Pull Request resolved: https://github.com/pytorch/pytorch/pull/153076 Approved by: https://github.com/janeyx99
This commit is contained in:
parent
7706074ece
commit
4270517cbf
|
|
@ -1179,7 +1179,7 @@ class TestOptimRenewed(TestCase):
|
|||
opt_name = optim_cls.__name__
|
||||
if opt_name in ("SGD", "Adagrad") and impl == "capturable":
|
||||
# Capturable SGD/Adagrad does not exist
|
||||
self.skipTest("SGD does not currently support capturable")
|
||||
self.skipTest(f"{opt_name} does not currently support capturable")
|
||||
if _get_device_type(device) == "cpu":
|
||||
self.skipTest("Test is only for non-cpu devices")
|
||||
elif (
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user