Thanks for the code!
It looks fine, since the number of classes should be 70. At least that’s what the output is saying.
Could you set num_classes=70 again and print the target tensor in your training loop?
If you run the script again, we can see, what’s in the current target before the error occurs.