Migration guide for "extending PyTorch"

It would be great if someone could provide such a guide for building C++/CUDA extensions. The previous API used THC.h while the current one uses torch.h