From 9a291685f3322963dadb7daf726dd9d6db6fa51d Mon Sep 17 00:00:00 2001 From: zyfncg Date: Mon, 26 Sep 2022 10:33:35 +0800 Subject: [PATCH] Open the clip_extra flag in TracedLayer.save_inference_model (#46473) * open the clip_extra flag in paddle.static.save_inference_model, test=allcase * set the defalut value of clip_extra in TracedLayer from False to True, test=allcase --- python/paddle/fluid/dygraph/jit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/fluid/dygraph/jit.py b/python/paddle/fluid/dygraph/jit.py index 420b7ff23de..8b519ba46c4 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 == "": -- GitLab