未验证 提交 d873ea52 编写于 作者: H huzhiqiang 提交者: GitHub

[BUG FIX][X86 Demo] Fix the issue that x86 light_api_demo can not operate successfully #3529

上级 a14bac6a
......@@ -24,10 +24,10 @@ int64_t ShapeProduction(const shape_t& shape) {
return res;
}
void RunModel(std::string model_dir) {
void RunModel(std::string model_name) {
// 1. Create MobileConfig
MobileConfig config;
config.set_model_dir(model_dir);
config.set_model_from_file(model_name);
// 2. Create PaddlePredictor by CxxConfig
std::shared_ptr<PaddlePredictor> predictor =
CreatePaddlePredictor<MobileConfig>(config);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册