mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
mypy 1.16.0 (#155821)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/155821 Approved by: https://github.com/ezyang, https://github.com/zou3519
This commit is contained in:
committed by
PyTorch MergeBot
parent
ce79056471
commit
e95e8eed0a
@ -299,7 +299,7 @@ class LBFGS(Optimizer):
|
||||
return loss, flat_grad
|
||||
|
||||
@torch.no_grad()
|
||||
def step(self, closure):
|
||||
def step(self, closure): # type: ignore[override]
|
||||
"""Perform a single optimization step.
|
||||
|
||||
Args:
|
||||
|
Reference in New Issue
Block a user