F.binary_cross_entropy is the functional API version of nn.BCELoss, so your model would need to use torch.sigmoid on its outputs. Also, I assume that you are working on a binary or multi-label classification.
If so, I would recommend to remove the sigmoid and use F.binary_cross_entropy_with_logits(input, target) instead.