Usually you don’t use a loss between intermediate layers.
Some model architectures like Inception use an auxiliary loss.
Would you rather like to see the gradients at a specific layer?
If so, you could just print it using:
loss.backward()
print(model.some_layer.weights.grad)