[Executor] Avoid unnecessary heap allocation in PropagateOutputs().
PiperOrigin-RevId: 292600542 Change-Id: Ice9602ac275817624ad8cc41bde77ad910fd485f
This commit is contained in:
parent
15fa2a49da
commit
688c4c2842
@ -2159,7 +2159,7 @@ Status ExecutorState::ProcessOutputs(const NodeItem& item, OpKernelContext* ctx,
|
|||||||
void ExecutorState::PropagateOutputs(const TaggedNode& tagged_node,
|
void ExecutorState::PropagateOutputs(const TaggedNode& tagged_node,
|
||||||
const NodeItem* item, EntryVector* outputs,
|
const NodeItem* item, EntryVector* outputs,
|
||||||
TaggedNodeSeq* ready) {
|
TaggedNodeSeq* ready) {
|
||||||
auto activity_handle = absl::make_unique<profiler::TraceMe>(
|
profiler::TraceMe activity(
|
||||||
[&]() {
|
[&]() {
|
||||||
return strings::StrCat(
|
return strings::StrCat(
|
||||||
"ExecutorPropagateOutputs:", item->kernel->name_view(),
|
"ExecutorPropagateOutputs:", item->kernel->name_view(),
|
||||||
|
Loading…
Reference in New Issue
Block a user