From 10a9465ef4d2b398a9d768af7d30fb0b8fd7ece8 Mon Sep 17 00:00:00 2001 From: cc <52520497+juncaipeng@users.noreply.github.com> Date: Wed, 19 Feb 2020 14:07:00 +0800 Subject: [PATCH] [fix bug] add weight quant for combined model after optimized (#2929) (#2931) * add weight quant for combined model after optimized, test=develop --- lite/api/light_api.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lite/api/light_api.cc b/lite/api/light_api.cc index 29d8f4f29a..d517383d27 100644 --- a/lite/api/light_api.cc +++ b/lite/api/light_api.cc @@ -25,6 +25,8 @@ void LightPredictor::Build(const std::string& lite_model_file, } else { LoadModelNaiveFromFile(lite_model_file, scope_.get(), &cpp_program_desc_); } + + DequantizeWeight(); BuildRuntimeProgram(cpp_program_desc_); PrepareFeedFetch(); } -- GitLab