You cannot use nn.CrossEntropyLoss for a mulit-label classification and would need to use nn.BCEWithLogtisLoss.
To do so you can keep the shape of the target tensor and transform it to a FloatTensor via target = target.float().