torchmin.ScipyMinimizer.step

ScipyMinimizer.step(closure)[source]

Perform an optimization step.

Parameters

closure (callable) – A function that re-evaluates the model and returns the loss. See the closure instructions from PyTorch Optimizer docs for areference on how to construct this callable.