@ptrblck,  suppose I have the output of a neural network to have shape [1000, 100, 4]. I have applied nn.Softmax() on axis 2 and then have taken nn.BCELoss with a target which has same shape and for each row and column index of the target I have a 1d vector (4 length) containing exactly one 1 (it is a one hot vector). Does this setup work or is there a flaw?