提交 0c277ac6 编写于 作者: X Xin Pan

polish

test=develop
上级 4d80db83
...@@ -432,6 +432,7 @@ function assert_api_spec_approvals() { ...@@ -432,6 +432,7 @@ function assert_api_spec_approvals() {
fi fi
API_FILES=("paddle/fluid/API.spec" API_FILES=("paddle/fluid/API.spec"
"python/paddle/fluid/parallel_executor.py"
"paddle/fluid/framework/operator.h" "paddle/fluid/framework/operator.h"
"paddle/fluid/framework/tensor.h" "paddle/fluid/framework/tensor.h"
"paddle/fluid/framework/lod_tensor.h" "paddle/fluid/framework/lod_tensor.h"
......
...@@ -51,7 +51,9 @@ class InferenceTranspiler(object): ...@@ -51,7 +51,9 @@ class InferenceTranspiler(object):
place (Place): inference place place (Place): inference place
scope (Scope|None): inference Scope scope (Scope|None): inference Scope
''' '''
sys.stderr.write('InferenceTranspiler is deprecated.\n') sys.stderr.write("InferenceTranspiler is deprecated since it's not "
"safe. Users should be "
"responsible for constructing the inference program\n")
if not isinstance(program, Program): if not isinstance(program, Program):
raise TypeError("program should be as Program type") raise TypeError("program should be as Program type")
if not isinstance(place, core.CPUPlace) and not isinstance( if not isinstance(place, core.CPUPlace) and not isinstance(
......
...@@ -510,7 +510,8 @@ def memory_optimize(input_program, ...@@ -510,7 +510,8 @@ def memory_optimize(input_program,
Returns: Returns:
None None
""" """
sys.stderr.write('memory_optimize is deprecated.\n') sys.stderr.write('memory_optimize is deprecated. '
'Use CompiledProgram and Executor\n')
def to_name_str(var): def to_name_str(var):
if isinstance(var, Variable): if isinstance(var, Variable):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册