Where is c++ source code

I can’t find the source code of torch.binary_cross_entropy_with_logits using pycharm. it only leads me to the __ init __.pyi. I guess the function is implemented by c++, but how could I find the source file ?

1 Like

Here: https://github.com/pytorch/pytorch/blob/35fed93b1ef05175143f883c6f89f06c6dd9429b/aten/src/ATen/native/Loss.cpp#L96-L112

1 Like