1// Generated code. Do not edit 2// Create the model 3Model createTestModel() { 4 const std::vector<Operand> operands = { 5 { 6 .type = OperandType::TENSOR_INT32, 7 .dimensions = {3}, 8 .numberOfConsumers = 1, 9 .scale = 0.0f, 10 .zeroPoint = 0, 11 .lifetime = OperandLifeTime::MODEL_INPUT, 12 .location = {.poolIndex = 0, .offset = 0, .length = 0}, 13 }, 14 { 15 .type = OperandType::TENSOR_FLOAT32, 16 .dimensions = {3, 2, 4}, 17 .numberOfConsumers = 1, 18 .scale = 0.0f, 19 .zeroPoint = 0, 20 .lifetime = OperandLifeTime::MODEL_INPUT, 21 .location = {.poolIndex = 0, .offset = 0, .length = 0}, 22 }, 23 { 24 .type = OperandType::TENSOR_FLOAT32, 25 .dimensions = {3, 2, 4}, 26 .numberOfConsumers = 0, 27 .scale = 0.0f, 28 .zeroPoint = 0, 29 .lifetime = OperandLifeTime::MODEL_OUTPUT, 30 .location = {.poolIndex = 0, .offset = 0, .length = 0}, 31 } 32 }; 33 34 const std::vector<Operation> operations = { 35 { 36 .type = OperationType::EMBEDDING_LOOKUP, 37 .inputs = {0, 1}, 38 .outputs = {2}, 39 } 40 }; 41 42 const std::vector<uint32_t> inputIndexes = {0, 1}; 43 const std::vector<uint32_t> outputIndexes = {2}; 44 std::vector<uint8_t> operandValues = {}; 45 const std::vector<hidl_memory> pools = {}; 46 47 return { 48 .operands = operands, 49 .operations = operations, 50 .inputIndexes = inputIndexes, 51 .outputIndexes = outputIndexes, 52 .operandValues = operandValues, 53 .pools = pools, 54 .relaxComputationFloat32toFloat16 = true, 55 }; 56} 57 58 59bool is_ignored(int i) { 60 static std::set<int> ignore = {}; 61 return ignore.find(i) != ignore.end(); 62} 63