Custom C++ extension : torch/torch.h not found

I am following this tutorial to create a C++ extension for Pytorch. My C++ code is giving following error :

test.cpp:3:10: fatal error: torch/torch.h: No such file or directory
 #include <torch/torch.h>

How to get torch.h header file ?


Which method do you use to make your extension? Creating a module or the jit version?