diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index 855a8d35653ec71b9b10aa9000806bf7740ff23c..e1e65d50c433d25c4d85c802b5b7593a1e908cb2 100755 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -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" diff --git a/python/paddle/fluid/transpiler/inference_transpiler.py b/python/paddle/fluid/transpiler/inference_transpiler.py index fea10d7c3b3bd335642c2b838319f6f50c55e265..8a527e72fb9ac806254d2c055fc283c938cc55b4 100644 --- a/python/paddle/fluid/transpiler/inference_transpiler.py +++ b/python/paddle/fluid/transpiler/inference_transpiler.py @@ -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( diff --git a/python/paddle/fluid/transpiler/memory_optimization_transpiler.py b/python/paddle/fluid/transpiler/memory_optimization_transpiler.py index f3c7b3d63b6e28545a77d2311916d778cdc38e65..c434423bae76c2ebdd7bdeb164350d6ec66621c8 100755 --- a/python/paddle/fluid/transpiler/memory_optimization_transpiler.py +++ b/python/paddle/fluid/transpiler/memory_optimization_transpiler.py @@ -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):