I just want to perform the BCE Loss between r_real which is supposed to be a tensor full of 1, and r_hat_real which is the output of the discriminator part of the net receiving fake MNIST images.
I’ve ran an other net which is quite the same, and there were no problems using BCELoss with tensors of shape [256] and [256,1,1,1].
It seems the same problem but I don’t really understand why it fails