Hi,
Thanks for your response, in my case I set the requires_grad True for all the layers, I just noticed that I confused the drop out probability with keep probability that was set to 1 for the layer before  the last one and that was why i got zeros for the rest of gradients.
Thanks