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

Method GetNode

tensorflow/core/grappler/utils.cc:98–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98NodeDef* NodeMap::GetNode(const string& name) const {
99 const string node_name = NodeName(name);
100 auto it = nodes_.find(node_name);
101 if (it == nodes_.end()) {
102 return nullptr;
103 }
104 return it->second;
105}
106
107bool NodeMap::NodeExists(const string& name) const {
108 const string node_name = NodeName(name);

Callers 15

PropagateMethod · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
RunMethod · 0.45
RunMethod · 0.45
BuildMethod · 0.45

Calls 3

NodeNameFunction · 0.85
findMethod · 0.45
endMethod · 0.45

Tested by 15

TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
BM_GraphViewGetNodeFunction · 0.36
BM_GraphViewGetFanoutFunction · 0.36
BM_GraphViewGetFaninFunction · 0.36
BM_GraphViewGetFanoutsFunction · 0.36
BM_GraphViewGetFaninsFunction · 0.36