Did you freeze some parameters by setting their requires_grad attribute to False?
If so, make sure that your last layer, which you would like to train, contains parameters which require gradients.
If you get stuck, could you post a code snippet so that we can have a look?