torch::jit::load <无可用信息,未为 c10.dll 加载任何符号>
try {
auto x = torch::jit::load(path);
module_ = std::make_shared<torch::jit::script::Module>(x);
//模型转到GPU中去
module_->to(*device_);
}
catch (const c10::Error& e) {
std::cout << e.msg();
std::cerr << "error loading the model \n";
}