| 513 | string GetOpId(int op_index) { return StringF("op%05d", op_index); } |
| 514 | |
| 515 | void 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 | |
| 525 | void DumpOperatorEdges(const Model& model, string* output_file, int op_index) { |
| 526 | // Inputs |
no test coverage detected