From 4db9f3a5e567414705304bbc34e7c7162d9c980a Mon Sep 17 00:00:00 2001 From: huzhiqiang <912790387@qq.com> Date: Mon, 27 Jul 2020 12:36:04 +0800 Subject: [PATCH] [Framework]Remove program_desc after model is loaded (#3984) --- lite/api/light_api.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/lite/api/light_api.cc b/lite/api/light_api.cc index 9d092a6d38..fbcf171726 100644 --- a/lite/api/light_api.cc +++ b/lite/api/light_api.cc @@ -33,6 +33,7 @@ void LightPredictor::Build(const std::string& lite_model_file, DequantizeWeight(); BuildRuntimeProgram(program_desc_); PrepareFeedFetch(); + program_desc_.reset(); } void LightPredictor::Build(const std::string& model_dir, -- GitLab