You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I calculate the loss and run loss.backward,
I found all the weights in the model's grad are None ,
the weights' value can't be updated
the sample codes is like:
`
features = model(input_data)
loss = circle_loss(features, labels)
loss.backward()
for name, param in mode.named_parameters():
print('name:', name, "param_grad:', param.grad) # here all the param.grad is None
`
The text was updated successfully, but these errors were encountered:
When I calculate the loss and run loss.backward,
I found all the weights in the model's grad are None ,
the weights' value can't be updated
the sample codes is like:
`
features = model(input_data)
`
The text was updated successfully, but these errors were encountered: