pytorch-center-loss icon indicating copy to clipboard operation
pytorch-center-loss copied to clipboard

Nonetype of param.grad.data

Open foury27 opened this issue 6 years ago • 1 comments

Hi, I tried to use your package directly in my network. However, the param.grad is NoneType and param.grad.data cannot be got.. Could you help me to explain it? Thanks!

foury27 avatar Dec 18 '18 17:12 foury27

Tryloss.backward() Before usingparam.grad.data

HanxunH avatar Mar 19 '19 12:03 HanxunH