| 58 | }; |
| 59 | |
| 60 | inline std::string to_string(OpType op_type) { |
| 61 | switch (op_type) { |
| 62 | case OpType::CPU: |
| 63 | return "cpu"; |
| 64 | case OpType::GPU: |
| 65 | return "gpu"; |
| 66 | case OpType::MIXED: |
| 67 | return "mixed"; |
| 68 | default: |
| 69 | return "<invalid>"; |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | inline std::ostream &operator<<(std::ostream &os, OpType op_type) { |
| 74 | switch (op_type) { |
no test coverage detected