From 02c59eda1227c016ac028239dfcfa49a91c1ef1f Mon Sep 17 00:00:00 2001 From: pangyoki Date: Wed, 3 Aug 2022 20:11:06 +0800 Subject: [PATCH] add flag (#44856) --- python/paddle/fluid/executor.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/python/paddle/fluid/executor.py b/python/paddle/fluid/executor.py index 09e7223bdf5..64e72670b8e 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) -- GitLab