问题描述
源码
AIBase::AIBase(const char *kmodel_file,const string model_name, const int debug_mode) : debug_mode_(debug_mode),model_name_(model_name)
{
if (debug_mode > 1)
cout << "kmodel_file:" << kmodel_file << endl;
std::ifstream ifs(kmodel_file, std::ios::binary);
kmodel_interp_.load_model(ifs).expect("Invalid kmodel");//加载模型文件
set_input_init();
set_output_init();
}
报错
