BCE Loss does not do sigmoid, you can look at the doc http://pytorch.org/docs/master/nn.html#torch.nn.BCELoss 1.9k
If you want BCE to do sigmoid, use BCE with logits http://pytorch.org/docs/master/nn.html#torch.nn.BCEWithLogitsLoss 1.5k