In case of multi-class, and if you use Sigmoid + BCELoss, then you need target to be one-hot encoding, i.e. something like this per sample: [0 1 0 0 0 1 0 0 1 0], were 1 is the locations of classes present