How to find torch.sigmoid source code

I know how to implement the sigmoid function, but I don’t know how to find the implementation of torch.sigmoid in pytorch source code.
I coun’t find the relevant implementation function in the torch directory

1 Like

I wrote a tutorial on diving into PyTorch code a while ago, but it still is largely accurate.
In particular rgrep sigmoid aten/ should be helpful.

Best regards


1 Like