Model not training: Model predicting same thing every time

I’ve added a reply to the FAQ which gives a function for calculating the rescaling weight vector used by the CrossEntropyLoss function in PyTorch.

You can find that here: