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

Function BuildArrayTree

tensorflow/lite/toco/dump_graphviz.cc:700–708  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

698}
699
700void BuildArrayTree(const Model& model, Node* tree) {
701 // Delimit array names by path "/", then place into a tree based on this path.
702 for (const auto& array_id : model.GetArrayMap()) {
703 std::vector<string> prefixes = absl::StrSplit(array_id.first, '/');
704 std::reverse(prefixes.begin(), prefixes.end());
705 int64 math_ops; // Temporary storage for math ops used during recursion.
706 InsertNode(model, array_id.first, tree, prefixes, &math_ops);
707 }
708}
709
710string GetGraphLabel(const Model& model, const string& graph_name) {
711 // Use HTML-like labels (http://www.graphviz.org/doc/info/shapes.html#html)

Callers 1

DumpGraphvizFunction · 0.85

Calls 4

reverseFunction · 0.85
InsertNodeFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected