Thank you very much, but my main question is about the max_iter parameter. As I have noticed, this parameter in sklearn  (when the solver is “LBFGS”) doesn’t indicate the number of epochs but the number of gradient steps. Moreover, the parameter max_fun indicates the maximum number of loss function calls. How can I set these two parameters in torch.optim?