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.