After the backward call you tried to print the gradients directly or did you perform some other operations, e.g. optimizer.step()?
In the former case, could you post your model code? Maybe the computation graph is somehow detached at a certain point.