未验证 提交 5437bd97 编写于 作者: Z zyfncg 提交者: GitHub

open the clip_extra flag in paddle.static.save_inference_model, test=allcase (#46456)

上级 fba54dde
...@@ -517,7 +517,7 @@ def save_inference_model(path_prefix, feed_vars, fetch_vars, executor, ...@@ -517,7 +517,7 @@ def save_inference_model(path_prefix, feed_vars, fetch_vars, executor,
_check_vars('fetch_vars', fetch_vars) _check_vars('fetch_vars', fetch_vars)
program = _get_valid_program(kwargs.get('program', None)) 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) program = normalize_program(program, feed_vars, fetch_vars)
# serialize and save program # serialize and save program
program_bytes = _serialize_program( program_bytes = _serialize_program(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册