diff --git a/ce_tests/dygraph/quant/src/save_quant_model.py b/ce_tests/dygraph/quant/src/save_quant_model.py index acf36c93c8fc1cd069219a56a03551b818b7bfeb..2472dccf5df9eb07cd14953793318e6e63c9b8ff 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'