I've tried to build libtorch on Windows 10 using VS 2019 without CUDA and Python. Independent if I compile it with or without MKL, a simple test program crashes directly after start. After building the debug version, libtorch throws a c10:error
in a function called torchCheckFail
.
The function seems to complain about ATen/core/jit_type.h
.
The problem is part of torch_cpu.dll. The problem disappears when I'm using the precompiled binaries for Windows.
Here's the function:
void torchCheckFail(
const char* func,
const char* file,
uint32_t line,
const std::string& msg) {
throw ::c10::Error({func, file, line}, msg);
}
And here's the call stack: