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

Method CreateOpCodeTable

tensorflow/lite/experimental/writer/writer_lib.cc:205–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205Offset<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
216template <class T>
217std::vector<int> InterpreterWriter::RemapTensorIndicesToWritten(

Callers

nothing calls this directly

Calls 4

CreateOperatorCodeDirectFunction · 0.85
c_strMethod · 0.80
emptyMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected