How to find the code of some kind of grad_fn?

If I want to see the detail of grad_fn of some kind of operation like SliceBackward, where can I find it?

slice_backward should be defined here. Generally you could search for the function name in the repository to find its definition. I don’t know if there is an easier way (grep -r might also come in handy).

Got it. Thanks for your kind reply.