How can I see the gradient of layer's parameters?

Hi All,
I want to have a look at the gradient of the parameters of the networks (e.g. the gradient of convolution kernel ) to make sure that everything goes well.
Is there any way to do so?

Any suggestion will be helpful.
Thank you!

My bad
Just use net.parameters() can work

& Is there anybody know how to delete this topic? :disappointed:

I don’t think you can delete a topic but it’s nice to keep this around if someone else needs it :slight_smile: