@apaszke Thank you.
but still I’m not sure what kind of closure is required.
If your loss function is, for example nn.NLLLoss or F.nll_loss, then what is closure?
Please show me an example or detailed explanation. Thank you.