Hi Alice!



 Alice_NL:

I switched from the BCE loss to CEL because of absence in the BCE the option to add the class weights.
I however did not yet see the BCE with Logits Loss yet.


For reasons I don’t understand – I suppose that it’s just an inconsistency
or oversight – BCELoss lacks BCEWithLogitsLoss's pos_weight
argument.  It’s not really an issue – BCEWithLogitsLoss should be
used anyways because of its better numerical stability.


Am I right that

here the output and target will be of the same shape?
I remove sigmoid activation at the end as it is already part of the BCEWithLogitsLoss



Yes, and yes.
Best.
K. Frank