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

[Framework]Remove program_desc after model is loaded (#3984)

上级 9a2a720c
...@@ -33,6 +33,7 @@ void LightPredictor::Build(const std::string& lite_model_file, ...@@ -33,6 +33,7 @@ void LightPredictor::Build(const std::string& lite_model_file,
DequantizeWeight(); DequantizeWeight();
BuildRuntimeProgram(program_desc_); BuildRuntimeProgram(program_desc_);
PrepareFeedFetch(); PrepareFeedFetch();
program_desc_.reset();
} }
void LightPredictor::Build(const std::string& model_dir, void LightPredictor::Build(const std::string& model_dir,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册