diff --git a/lite/api/light_api.cc b/lite/api/light_api.cc index 9d092a6d385fabde1379b2abecb02daa3270b883..fbcf171726d741ef0073f423bc4a600c9f9389d0 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,