Hi Alessio!



 alessio:

I was wondering in BCEwithlogits loss the weight parameter has a different meaning from the BCEloss classic.


I’m pretty sure that BCELoss and BCEWithLogitsLoss use
their weight arguments in the same way.  On the other hand,
BCEWithLogitsLoss has a pos_weight argument, while BCELoss
does not.  I don’t know of any good reason for this – I’ve always
assumed that it’s just an oversight.
Best.
K. Frank