Solved by tom in post #2 
              
              
                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 …