Where could I find torch module's methods in source code?

Hi, I am new to pytorch and currently working on an issue, but I am having trouble to find torch.tril source code.
It would be great if you can help me!

Additionally, you can also give tip and trick how to find function/method in unfamiliar code base that would great!

I would normally ask question in IM but pytorch’s slack are invitation only :frowning:

Many thanks!

Hey !

You can PM @smth to get an invitation to the slack :wink:

Otherwise, for function implementation you will have to check the cpp code.
The simplest way is usually to use the search from github on the repo.
For tril, you’ll find a reference to this function that is the cpu implementation.
Unfortunately these is no standard way to look for functions at the moment (for historical reasons, they are not all at the same place) :confused: