提交 8e094f71 编写于 作者: X Xin Pan 提交者: ceci3

polish

test=develop
上级 90b17d28
......@@ -433,6 +433,7 @@ function assert_api_spec_approvals() {
fi
API_FILES=("paddle/fluid/API.spec"
"python/paddle/fluid/parallel_executor.py"
"paddle/fluid/framework/operator.h"
"paddle/fluid/framework/tensor.h"
"paddle/fluid/framework/lod_tensor.h"
......
......@@ -51,7 +51,9 @@ class InferenceTranspiler(object):
place (Place): inference place
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):
raise TypeError("program should be as Program type")
if not isinstance(place, core.CPUPlace) and not isinstance(
......
......@@ -510,7 +510,8 @@ def memory_optimize(input_program,
Returns:
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):
if isinstance(var, Variable):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册