I’m following https://pytorch.org/tutorials/advanced/cpp_extension.html, but what i want to do is writing a standalone c++ application (it won’t be imported by python code).
I couldn’t find any documentation about ATen usage, so my question is what should I include? What should I put in my CMakeLists.txt?
I’ve included torch/torch.h in my code as the tutorial says and put
in my CMakeLists, but I get
fatal error: Python.h: No such file or directory
Even if I try forcing the python include in the CMakeLists, I get other errors because it can’t find mkl, even if it’s installed, so I guess i’m doing something wrong.
I have pytorch 0.4 installed with conda.