提交 344081db 编写于 作者: S ShiningZhang

add suffix of model&params in paddle_engine

上级 8c1dd9f6
......@@ -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.
先完成此消息的编辑!
想要评论请 注册