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

Method BuildNodeNameIndex

tensorflow/core/graph/graph.cc:854–860  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

852}
853
854std::unordered_map<string, Node*> Graph::BuildNodeNameIndex() const {
855 std::unordered_map<string, Node*> result;
856 for (Node* n : nodes()) {
857 result[n->name()] = n;
858 }
859 return result;
860}
861
862string Edge::DebugString() const {
863 return strings::Printf("[id=%d %s:%d -> %s:%d]", id_, src_->name().c_str(),

Callers 15

GetGraphMethod · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
TEST_FFunction · 0.80

Calls 1

nameMethod · 0.65

Tested by 10

TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64