未验证 提交 5ab79273 编写于 作者: W wangxiaoning 提交者: GitHub

fix save inf (#52632)

上级 3951c40d
...@@ -24,7 +24,6 @@ from paddle.static import ( ...@@ -24,7 +24,6 @@ from paddle.static import (
Variable, Variable,
default_main_program, default_main_program,
default_startup_program, default_startup_program,
save_inference_model,
) )
from ..base.private_helper_function import wait_server_ready from ..base.private_helper_function import wait_server_ready
...@@ -735,7 +734,7 @@ class ParameterServerRuntime(RuntimeBase): ...@@ -735,7 +734,7 @@ class ParameterServerRuntime(RuntimeBase):
raise TypeError( raise TypeError(
"in fleet.save_inference_model() function, main_program must be as Program type, CompiledProgram is not allowed" "in fleet.save_inference_model() function, main_program must be as Program type, CompiledProgram is not allowed"
) )
save_inference_model( paddle.fluid.io.save_inference_model(
dirname, dirname,
feeded_var_names, feeded_var_names,
target_vars, target_vars,
...@@ -746,7 +745,7 @@ class ParameterServerRuntime(RuntimeBase): ...@@ -746,7 +745,7 @@ class ParameterServerRuntime(RuntimeBase):
export_for_deployment, export_for_deployment,
) )
else: else:
save_inference_model( paddle.fluid.io.save_inference_model(
dirname, dirname,
feeded_var_names, feeded_var_names,
target_vars, target_vars,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册