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

Method Init

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

Source from the content-addressed store, hash-verified

136}
137
138Status HeapReadyManager::Init(
139 const std::unordered_map<const NodeDef*, NodeState>* node_map) {
140 // Resets the node state since different instances of the scheduler can reuse
141 // the same node_manager.
142 node_map_ = node_map;
143 nodes_.clear();
144 waiting_queue_.clear();
145
146 // Sets up the comparator for the heap.
147 greater_ = Greater();
148
149 return Status::OK();
150}
151
152const NodeDef* HeapReadyManager::GetCurrNode() {
153 if (nodes_.empty()) {

Callers 3

PredictCostsMethod · 0.45
TEST_FFunction · 0.45
InitSchedulerMethod · 0.45

Calls 15

InvalidArgumentFunction · 0.85
NodeNameFunction · 0.85
NodePositionFunction · 0.85
IsPersistentFunction · 0.85
attrMethod · 0.80
nameMethod · 0.65
GreaterClass · 0.50
ComputeTransitiveFaninFunction · 0.50
IsSendFunction · 0.50
DeviceNameFunction · 0.50
IsRecvFunction · 0.50
clearMethod · 0.45

Tested by 2

TEST_FFunction · 0.36
InitSchedulerMethod · 0.36