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

Function DumpOperator

tensorflow/lite/toco/dump_graphviz.cc:515–523  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

513string GetOpId(int op_index) { return StringF("op%05d", op_index); }
514
515void DumpOperator(const Model& model, string* output_file, int op_index) {
516 // Dump node for operator.
517 const Operator& op = *model.operators[op_index];
518 Color color = GetOpColor(op);
519 string label = GetOpLabel(model, op);
520 string op_id = GetOpId(op_index);
521 AppendF(output_file, kOpNodeFmt, op_id, label, color.AsHexString(),
522 color.TextColorString());
523}
524
525void DumpOperatorEdges(const Model& model, string* output_file, int op_index) {
526 // Inputs

Callers 1

DumpArrayFunction · 0.85

Calls 6

GetOpColorFunction · 0.85
GetOpLabelFunction · 0.85
GetOpIdFunction · 0.85
AppendFFunction · 0.85
AsHexStringMethod · 0.80
TextColorStringMethod · 0.80

Tested by

no test coverage detected