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

Method Initialize

tensorflow/core/graph/graph.cc:153–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151 while_ctx_(nullptr) {}
152
153void Node::Initialize(int id, int cost_id,
154 std::shared_ptr<NodeProperties> props) {
155 DCHECK_EQ(id_, -1);
156 DCHECK(in_edges_.empty());
157 DCHECK(out_edges_.empty());
158 id_ = id;
159 cost_id_ = cost_id;
160
161 props_ = std::move(props);
162 // Initialize the class_ based on the type string
163 class_ = GetNodeClassForOp(props_->node_def.op());
164}
165
166void Node::Clear() {
167 in_edges_.clear();

Callers 4

RecordBenchmarkEntryFunction · 0.45
AllocateNodeMethod · 0.45
InitializeRendezvousFunction · 0.45

Calls 2

emptyMethod · 0.45
opMethod · 0.45

Tested by 1

InitializeRendezvousFunction · 0.36