Thanks for your reply.
I’ve already added the directories as follows:
- Linker/Input/Additional Depndencies:
torch.lib;caffe2.lib;caffe2_gpu.lib;c10.lib;c10_cuda.lib
- VC++ Directories/Library Directories:
C:\pytorch\torch\lib
- VC++ Directories/Include Directories:
C:\pytorch\torch\csrc\api\include; C:\pytorch\torch\include;

Also, I added LoadLibraryA("caffe2_gpu.dll"); as the first line of the main function. However, I still have the following errors:

image.png1305×253 19.7 KB