From 142ea1719d160590c22f49da1bb04e5ed75e6987 Mon Sep 17 00:00:00 2001 From: Guanghua Yu <742925032@qq.com> Date: Wed, 22 Dec 2021 12:08:34 +0800 Subject: [PATCH] fix clip extra when QAT export model (#38323) --- python/paddle/fluid/contrib/slim/quantization/imperative/qat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/fluid/contrib/slim/quantization/imperative/qat.py b/python/paddle/fluid/contrib/slim/quantization/imperative/qat.py index 24caf147954..a3fdca5e406 100644 --- a/python/paddle/fluid/contrib/slim/quantization/imperative/qat.py +++ b/python/paddle/fluid/contrib/slim/quantization/imperative/qat.py @@ -506,7 +506,7 @@ class ImperativeQuantizeOutputs(object): main_program=infer_program.clone(), model_filename=model_filename, params_filename=params_filename, - clip_extra=True) + clip_extra=False) if is_dynamic_mode: paddle.disable_static() -- GitLab