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

Function MapNamesToNodes

tensorflow/tools/graph_transforms/transform_utils.cc:65–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65void MapNamesToNodes(const GraphDef& graph_def,
66 std::map<string, const NodeDef*>* result) {
67 for (const NodeDef& node : graph_def.node()) {
68 (*result)[node.name()] = &node;
69 }
70}
71
72void MapNodesToOutputs(const GraphDef& graph_def,
73 std::map<string, std::vector<const NodeDef*>>* result) {

Callers 15

TestRemoveNodesMethod · 0.85
TestRemoveOutputNodesMethod · 0.85
TestReplaceSendRecvsMethod · 0.85
TestRemoveUnusedNodesMethod · 0.85
TestSimpleTreeMethod · 0.85
TestManyNodesMethod · 0.85
TestNameClashesMethod · 0.85
TestRenameOpMethod · 0.85

Calls 2

nameMethod · 0.65
nodeMethod · 0.45

Tested by 15

TestRemoveNodesMethod · 0.68
TestRemoveOutputNodesMethod · 0.68
TestReplaceSendRecvsMethod · 0.68
TestRemoveUnusedNodesMethod · 0.68
TestSimpleTreeMethod · 0.68
TestManyNodesMethod · 0.68
TestNameClashesMethod · 0.68
TestRenameOpMethod · 0.68