Hi,
If you’re using the builtin optimizers from torch.optim, then not really. Because each optimizer is free to make the update as it sees fit. And some of them (life LBFGS) actually does multiple updates.
If you’re doing the update yourself by hand, then I guess you can do this  by making your update code return what you want.