test=develop
revert-15774-anakin_subgraph_engine
Xin Pan 6 years ago
parent 4d80db838a
commit 0c277ac6e9

@ -432,6 +432,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):

Loading…
Cancel
Save