diff --git a/python/paddle/fluid/executor.py b/python/paddle/fluid/executor.py index 09e7223bdf55fd45135dab4ef5ec4f9b7eeb31bb..64e72670b8e8291d10d9b30c54e00f2332bd3ac1 100755 --- a/python/paddle/fluid/executor.py +++ b/python/paddle/fluid/executor.py @@ -1460,6 +1460,9 @@ class Executor(object): ir_graph = framework.IrGraph(program._graph) inner_program = ir_graph.to_program() # print(f"Program after convert:\n {inner_program}", flush=True) + logging.warning( + "FLAGS_USE_STANDALONE_EXECUTOR and FLAGS_CONVERT_GRAPH_TO_PROGRAM is set to 1. Graph will be converted to Program and executed using new executor." + ) else: from paddle.incubate.autograd import prim_enabled, prim2orig if prim_enabled() and program == default_main_program(): @@ -1502,6 +1505,10 @@ class Executor(object): else: tensor._copy_from(cpu_tensor, self.place) + warnings.warn( + "FLAGS_USE_STANDALONE_EXECUTOR is set to 1. New executor is used to execute Program." + ) + return new_exe.run(scope, list(feed.keys()), fetch_list, return_numpy)