I have included torch/extension.h. But while building I’m getting the following error:

/usr/local/include/torch/extension.h:4:10: fatal error: torch/all.h: No such file or directory
#include <torch/all.h>
^~~~~~~~~~~~~
compilation terminated.
src/CMakeFiles/model_lib.dir/build.make:62: recipe for target ‘src/CMakeFiles/model_lib.dir/load.cpp.o’ failed
make[2]: *** [src/CMakeFiles/model_lib.dir/load.cpp.o] Error 1
CMakeFiles/Makefile2:1018: recipe for target ‘src/CMakeFiles/model_lib.dir/all’ failed
make[1]: *** [src/CMakeFiles/model_lib.dir/all] Error 2
Makefile:116: recipe for target ‘all’ failed
make: *** [all] Error 2

Can anyone please help me figure out what’s wrong?