diff --git a/ge/hybrid/executor/subgraph_context.cc b/ge/hybrid/executor/subgraph_context.cc index 5de0828f..c2e663f6 100644 --- a/ge/hybrid/executor/subgraph_context.cc +++ b/ge/hybrid/executor/subgraph_context.cc @@ -84,7 +84,7 @@ NodeStatePtr SubgraphContext::GetOrCreateNodeState(const NodeItem *node_item) { auto &node_state = node_states_[node_item]; if (node_state == nullptr) { const auto &guard = node_item->MutexGuard("GetOrCreateNodeState"); - node_state = std::move(std::unique_ptr(new(std::nothrow)NodeState(*node_item, this))); + node_state.reset(new(std::nothrow)NodeState(*node_item, this)); (void)guard; } GELOGD("[%s] unlock for write", node_item->NodeName().c_str());