Santosh-Gupta:

Just to be super duper clear, do Not pass inputs through a sigmoid if using BCEWithLogitsLoss ?


Yes.

logits -> nn.BCEWithLogitsLoss

logits -> sigmoid -> nn.BCELoss





 Santosh-Gupta:

And for the outputs, just use ‘1’ for True classes, or ‘0’ for the false classes?


That would be the standard definition, but you can basically define True/False, Positive/Negative as you wish.