From 688c4c284210aa514535565cc5c49a0f94075681 Mon Sep 17 00:00:00 2001 From: Derek Murray Date: Fri, 31 Jan 2020 13:01:50 -0800 Subject: [PATCH] [Executor] Avoid unnecessary heap allocation in PropagateOutputs(). PiperOrigin-RevId: 292600542 Change-Id: Ice9602ac275817624ad8cc41bde77ad910fd485f --- tensorflow/core/common_runtime/executor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorflow/core/common_runtime/executor.cc b/tensorflow/core/common_runtime/executor.cc index ed1d84f8fad..03d31d8c76a 100644 --- a/tensorflow/core/common_runtime/executor.cc +++ b/tensorflow/core/common_runtime/executor.cc @@ -2159,7 +2159,7 @@ Status ExecutorState::ProcessOutputs(const NodeItem& item, OpKernelContext* ctx, void ExecutorState::PropagateOutputs(const TaggedNode& tagged_node, const NodeItem* item, EntryVector* outputs, TaggedNodeSeq* ready) { - auto activity_handle = absl::make_unique( + profiler::TraceMe activity( [&]() { return strings::StrCat( "ExecutorPropagateOutputs:", item->kernel->name_view(),