So I came across this code:
import torch.nn.functional as F
loss_cls = F.binary_cross_entropy_with_logits(input, target)
I wanted to see more about the binary_cross_entropy_with_logits function which is a sum of logs, so I head over to the documentation here which leads me to the source code here
All this does is return torch.binary_cross_entropy_with_logits(input, target, weight, pos_weight, reduction_enum)
I want to see the actual code where the sum of logs is being performed. Where can I see the source code for torch.binary_cross_entropy_with_logits