karnation22:

F.nll_loss(output, chin_char)


It actually chanegs, but pre and post are the same because it’s not creating a new copy of the tensor values. Try printing them before and after the optimizer.step() line.