Hi, when I used C + + in Ubuntu 16 to load my resnet-18 model of auto tuning on 
the python side, I used

* TVM:: Runtime:: module Mod_ lib = 
tvm::runtime::Module::LoadFromFile("../params/deploy_ lib.so ")

; an exception was thrown: 
undefined reference to ` TVM:: Runtime:: module:: loadfromfile (STD::__ 
cxx11::basic_ string<char, std::char_ traits<char>, std::allocator<char> > 
const&, std::__ cxx11::basic_ string<char, std::char_ traits<char>, 
std::allocator<char> > const&)'
When I add: 
add_definitions(-D_ GLIBCXX_ USE_ CXX11_ ABI = 0)  
to my cmake file, another exception is thrown: 
undefined reference to ` TVM:: Runtime:: module:: loadfromfile (STD:: String 
const & and STD:: String const &) '
Is there anyone who has any suggestions for my mistake? It's a little difficult 
to learn TVM for the first time.
I use the environment: ubuntu16.04, gcc5.4, thanks a lot!





---
[Visit 
Topic](https://discuss.tvm.apache.org/t/undefined-reference-to-tvm-loadfromfile-std-basic-string-char-std-char-traits-char-std-allocator-char-const-std-basic-string-char-std-char-traits-char-std-allocator-char-const/8010/1)
 to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click 
here](https://discuss.tvm.apache.org/email/unsubscribe/33b735a6a245e582761214d2301d63635e20e637aee1ce61a908febd8453ac4e).

Reply via email to