LoadFromFile failed in C++ code under Windows


#1

I built TVM source on Windows and compiled an ONNX model to generate files: dll/lib, json, params successfully by Python API. Then I write a C++ demo to load dll file, but it throws exception:
tvm::runtime::Module mod_syslib = tvm::runtime::Module::LoadFromFile(“path/to/my.dll”);

Microsoft C++ exception: std::bad_alloc at memory location 0x000000000027C450.

Win7-64bit, VS2015


#2

Hi, have you solved this problem?


#3

It is the compiled dll’s problem. I have solved the problem by recompile onnx model.
Thanks!