From 785004f579bf21c7228385cae29bdd3a4968d63b Mon Sep 17 00:00:00 2001 From: Guanghua Yu <742925032@qq.com> Date: Mon, 16 Jan 2023 12:22:23 +0800 Subject: [PATCH] Update save_quant_model.py --- ce_tests/dygraph/quant/src/save_quant_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ce_tests/dygraph/quant/src/save_quant_model.py b/ce_tests/dygraph/quant/src/save_quant_model.py index acf36c93..2472dccf 100644 --- a/ce_tests/dygraph/quant/src/save_quant_model.py +++ b/ce_tests/dygraph/quant/src/save_quant_model.py @@ -64,7 +64,7 @@ def parse_args(): def transform_and_save_int8_model(original_path, save_path): place = paddle.CPUPlace() exe = paddle.static.Executor(place) - inference_scope = paddle.static.Executor.global_scope() + inference_scope = paddle.static.global_scope() model_filename = 'model.pdmodel' params_filename = 'model.pdiparams' -- GitLab