MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / RemoveCurrNode

Method RemoveCurrNode

tensorflow/core/grappler/costs/virtual_scheduler.cc:124–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124void LIFOManager::RemoveCurrNode() {
125 // Make sure we have curr_pos_ ready to be removed.
126 GetCurrNode();
127 // Note curr_pos_ may not be pointing the last element if some nodes are
128 // added.
129 nodes_.erase(curr_pos_);
130
131 curr_pos_ = nodes_.end(); // Reset curr_pos_.
132}
133
134HeapReadyManager::HeapReadyManager() : ReadyNodeManager() {
135 std::make_heap(nodes_.begin(), nodes_.end());

Callers 2

MarkCurrNodeExecutedMethod · 0.45
TEST_FFunction · 0.45

Calls 8

pop_backMethod · 0.80
IsSendFunction · 0.50
IsRecvFunction · 0.50
eraseMethod · 0.45
endMethod · 0.45
emptyMethod · 0.45
beginMethod · 0.45
atMethod · 0.45

Tested by 1

TEST_FFunction · 0.36