To make a better understanding of the argument  weight. If I have an imbalanced dataset for a binary classification task, such that nb_class1 = 3000 and nb_class2 = 1000. Subsequently, i can write the following:
class_weights = torch.FloatTensor([0.25, 0.75])
criterion  = nn.CrossEntropyLoss(weight = class_weights)

Is that the interpretation for the term weight?