cpp-pytorch
cpp-pytorch copied to clipboard
转换到非标量
/Python2C++/main.cpp:18:107: 错误:请求从‘torch::jit::script::Module’转换到非标量类型‘std::shared_ptrtorch::jit::script::Module’ 有人遇到这种问题吗 std::shared_ptrtorch::jit::script::Module module = torch::jit::load("/model.pt");
I met such issue. Have you solved it, thanks!
https://blog.csdn.net/qq_33507306/article/details/104427134 please use this idea