torch.optim.Optimizer.step¶
- 
Optimizer.step(closure)[source]¶ Performs a single optimization step (parameter update).
- Parameters
 closure (callable) – A closure that reevaluates the model and returns the loss. Optional for most optimizers.
Note
Unless otherwise specified, this function should not modify the
.gradfield of the parameters.