未验证 提交 92f86a35 编写于 作者: G Guanghua Yu 提交者: GitHub

[cherry-pick] fix clip extra when QAT export model (#38343)

* fix clip_extra when QAT export model

* clear up unittes modify
上级 6f8243f9
...@@ -506,7 +506,7 @@ class ImperativeQuantizeOutputs(object): ...@@ -506,7 +506,7 @@ class ImperativeQuantizeOutputs(object):
main_program=infer_program.clone(), main_program=infer_program.clone(),
model_filename=model_filename, model_filename=model_filename,
params_filename=params_filename, params_filename=params_filename,
clip_extra=True) clip_extra=False)
if is_dynamic_mode: if is_dynamic_mode:
paddle.disable_static() paddle.disable_static()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册