未验证 提交 88d44552 编写于 作者: S ShiningZhang 提交者: GitHub

Merge pull request #1570 from ShiningZhang/dev

add suffix of model&params in paddle_engine
......@@ -166,8 +166,8 @@ class PaddleInferenceEngine : public EngineCore {
}
Config config;
std::vector<std::string> suffixParaVector = {".pdiparams", "__params__"};
std::vector<std::string> suffixModelVector = {".pdmodel", "__model__"};
std::vector<std::string> suffixParaVector = {".pdiparams", "__params__", "params"};
std::vector<std::string> suffixModelVector = {".pdmodel", "__model__", "model"};
std::string paraFileName = getFileBySuffix(model_path, suffixParaVector);
std::string modelFileName = getFileBySuffix(model_path, suffixModelVector);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册