Hello. I got this problem when just include torch/torch.h
. My environment is visual studio 2019, MSVC v142 build tools v14.25, libtorch 1.5 CPU. Thanks!
EDIT1: I use the debug version with debug configuration.
What is torch.cpu
? Do you mean torch_cpu.lib
?
Thanks for your response.
No, it is torch.cpu
. I copied the error as it is.
The program runs fine with the release version/release configuration, but I can’t get debug/debug to work.
How could a file get a name like torch.cpu
? How did you create your project?
Sorry I just checked the input of linker again. I made a stupid typo by including that file.