Hi, I want to use the weight parameter while calculating the loss. I want to know how to supply the weights, for example, I have a batch of 32 and there are 6 classes, now I have a tensor of size 6 that contains the number of occurrences of each class in the batch. I want to know, how to compute the weight value for each class.

thanks.