diff --git a/python/paddle/fluid/dygraph/jit.py b/python/paddle/fluid/dygraph/jit.py index 420b7ff23de8f178156240305aee2a375ed38c9b..8b519ba46c41664eaa32279802b26918040b2f90 100644 --- a/python/paddle/fluid/dygraph/jit.py +++ b/python/paddle/fluid/dygraph/jit.py @@ -1650,7 +1650,7 @@ class TracedLayer(object): check_type( f, "each element of fetch", int, "fluid.dygraph.jit.TracedLayer.save_inference_model") - clip_extra = kwargs.get('clip_extra', False) + clip_extra = kwargs.get('clip_extra', True) # path check file_prefix = os.path.basename(path) if file_prefix == "":