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

Function LoadOperatorsTable

tensorflow/lite/toco/tflite/import.cc:40–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40void LoadOperatorsTable(const ::tflite::Model& input_model,
41 OperatorsTable* operators_table) {
42 auto opcodes = input_model.operator_codes();
43 if (!opcodes) return;
44 for (const auto* opcode : *opcodes) {
45 if (opcode->builtin_code() != ::tflite::BuiltinOperator_CUSTOM) {
46 operators_table->push_back(
47 EnumNameBuiltinOperator(opcode->builtin_code()));
48 } else {
49 operators_table->push_back(opcode->custom_code()->c_str());
50 }
51 }
52}
53} // namespace details
54
55void ImportTensors(const ::tflite::Model& input_model, Model* model) {

Callers 2

ImportFunction · 0.85
TEST_FFunction · 0.85

Calls 3

EnumNameBuiltinOperatorFunction · 0.85
c_strMethod · 0.80
push_backMethod · 0.45

Tested by 1

TEST_FFunction · 0.68