diff --git a/python/paddle/fluid/transpiler/distribute_transpiler.py b/python/paddle/fluid/transpiler/distribute_transpiler.py index 4428fba401f4c52caf8d74dbac4ceb4287dc8ca1..8cf7f974c1d83f9986a0d65861600ac6345fb6a0 100644 --- a/python/paddle/fluid/transpiler/distribute_transpiler.py +++ b/python/paddle/fluid/transpiler/distribute_transpiler.py @@ -577,6 +577,15 @@ class DistributeTranspiler(object): sync_mode=False, current_endpoint="127.0.0.1:7000") """ + + err_msg = """ + +API is deprecated since 2.0.0 Please use FleetAPI instead. +WIKI: https://github.com/PaddlePaddle/Fleet/blob/develop/markdown_doc/transpiler + + """ + print(err_msg, file=sys.stderr) + if program is None: program = default_main_program() if startup_program is None: