From 5437bd97f3f0d46f70384132c55d0e4b3dc1a7a5 Mon Sep 17 00:00:00 2001 From: zyfncg Date: Sun, 25 Sep 2022 22:28:43 +0800 Subject: [PATCH] open the clip_extra flag in paddle.static.save_inference_model, test=allcase (#46456) --- python/paddle/static/io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/static/io.py b/python/paddle/static/io.py index c91bf14c93..5366bfb8b4 100644 --- a/python/paddle/static/io.py +++ b/python/paddle/static/io.py @@ -517,7 +517,7 @@ def save_inference_model(path_prefix, feed_vars, fetch_vars, executor, _check_vars('fetch_vars', fetch_vars) program = _get_valid_program(kwargs.get('program', None)) - clip_extra = kwargs.get('clip_extra', False) + clip_extra = kwargs.get('clip_extra', True) program = normalize_program(program, feed_vars, fetch_vars) # serialize and save program program_bytes = _serialize_program( -- GitLab