This is autogrenerated. Do follow the build instructions for PyTorch and then look in torch/csrc/autograd/generated.
The autogeneration code is in tools/autograd (including the template/Function.cpp that includes a lot of backwards definitions). It draws from .cwrap and .yaml files in aten/src/ATen and aten/src/ATen/native.
Best regards
Thomas