diff --git a/python/paddle/static/io.py b/python/paddle/static/io.py index c91bf14c93974c0096db7097a7f93ea4d47bcb8a..5366bfb8b45b99387907b47917f1ec3db84ca414 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(