| 203 | } |
| 204 | |
| 205 | Offset<Vector<Offset<OperatorCode>>> InterpreterWriter::CreateOpCodeTable( |
| 206 | FlatBufferBuilder* fbb) { |
| 207 | std::vector<Offset<OperatorCode>> codes; |
| 208 | for (auto it : opcodes_) { |
| 209 | const char* custom_name = it.custom.empty() ? nullptr : it.custom.c_str(); |
| 210 | codes.push_back(CreateOperatorCodeDirect( |
| 211 | *fbb, static_cast<BuiltinOperator>(it.builtin), custom_name)); |
| 212 | } |
| 213 | return fbb->template CreateVector<Offset<OperatorCode>>(codes); |
| 214 | } |
| 215 | |
| 216 | template <class T> |
| 217 | std::vector<int> InterpreterWriter::RemapTensorIndicesToWritten( |
nothing calls this directly
no test coverage detected