| 54 | } |
| 55 | |
| 56 | string LogName(const Operator& op) { |
| 57 | const string& opname = HelpfulOperatorTypeName(op); |
| 58 | if (op.outputs.empty()) { |
| 59 | return toco::port::StringF("{%s operator}", opname); |
| 60 | } else { |
| 61 | return toco::port::StringF("{%s operator with output %s}", opname, |
| 62 | op.outputs[0]); |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | string ArrayDataTypeName(ArrayDataType data_type) { |
| 67 | switch (data_type) { |