未验证 提交 9a291685 编写于 作者: Z zyfncg 提交者: GitHub

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
上级 4f847433
......@@ -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 == "":
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册