It looks like your loss is calculated in the forward function of your model.
Could you post this code, so that we can make sure for example that you are not detaching any tensors?
Also, you could try to use just one single sample and try to overfit your model on it.
If the loss still doesn’t move at all, there is most likely a bug in your code.