diff --git a/paddle/fluid/framework/new_executor/executor_statistics.cc b/paddle/fluid/framework/new_executor/executor_statistics.cc index 392d6c78f9c701bd1b03e0c262f13b94dbbe7ccf..fb79712d47d9ed27b09ab59104b58b17a0c8ca11 100644 --- a/paddle/fluid/framework/new_executor/executor_statistics.cc +++ b/paddle/fluid/framework/new_executor/executor_statistics.cc @@ -408,6 +408,7 @@ int StatisticsEngine::Stat(const platform::NodeTrees& trees) { // See InterpreterCore::RunInstruction for details. if (child->Type() == platform::TracerEventType::Operator && cur_node->Name() == "compute") { + removed.insert(cur_node); removed.insert(child); } q.push(child);