Hi, actually I was wrong, you can either use nn Sigmoid() and BCELoss() , or you can use one standalone function nn.BCELosswithLogits() which combines both the Sigmoid as well as the Log-likelihood formula.
Apparently, nn.BCELoss() and nn.BCEwithLogitsLoss() should yield same number of outputs.