Hi,
For python functions, users define their own autograd.Function. I don’t think there are much of these left though in the core except for things like Checkpointing.
For cpp implementations in the core, the aten library contains all the cpp functions and this file 1 defines the mapping between the forward and backward functions.