You could use nn.BCEWithLogitsLoss for a multi-label classification.
Each output unit would correspond to a class activation, so that your target should be a FloatTensor with the same shape as your output.