how to #include in a .cpp file with Visual Studio?
Now I'm working with a project requiring using Pytorch C++ extension.
I've installed a Pytorch of version 1.4.0 in a python virtual environment:

activate crfasrnn
&gt;&gt;&gt;import torch
&gt;&gt;&gt;print(torch.__version__)
1.4.0


I'm using visual studio as a C++ compiler.
The code is like this:

#include&lt;iostream&gt;
#include&lt;torch/extension.h&gt;

int main()
{
    std::cout &lt;&lt; "hello, world!" &lt;&lt; std::endl;
    return 0;
}


However, the compiler tells me "can not open 'torch/extension.h'"
How can I solve this problem?

You need to get the appropriate LibTorch binaries from https://pytorch.org/ and then include the required binaries in the visual studio. 
You can follow the detailed instructions given here. 
