1// Generated code. Do not edit 2// Create the model 3Model createTestModel() { 4 const std::vector<Operand> operands = { 5 { 6 .type = OperandType::TENSOR_FLOAT32, 7 .dimensions = {1, 5}, 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 = {1, 5}, 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 = {1}, 26 .numberOfConsumers = 1, 27 .scale = 0.0f, 28 .zeroPoint = 0, 29 .lifetime = OperandLifeTime::MODEL_INPUT, 30 .location = {.poolIndex = 0, .offset = 0, .length = 0}, 31 }, 32 { 33 .type = OperandType::TENSOR_FLOAT32, 34 .dimensions = {1, 1}, 35 .numberOfConsumers = 0, 36 .scale = 0.0f, 37 .zeroPoint = 0, 38 .lifetime = OperandLifeTime::MODEL_OUTPUT, 39 .location = {.poolIndex = 0, .offset = 0, .length = 0}, 40 }, 41 { 42 .type = OperandType::INT32, 43 .dimensions = {}, 44 .numberOfConsumers = 1, 45 .scale = 0.0f, 46 .zeroPoint = 0, 47 .lifetime = OperandLifeTime::CONSTANT_COPY, 48 .location = {.poolIndex = 0, .offset = 0, .length = 4}, 49 } 50 }; 51 52 const std::vector<Operation> operations = { 53 { 54 .type = OperationType::FULLY_CONNECTED, 55 .inputs = {0, 1, 2, 4}, 56 .outputs = {3}, 57 } 58 }; 59 60 const std::vector<uint32_t> inputIndexes = {0, 1, 2}; 61 const std::vector<uint32_t> outputIndexes = {3}; 62 std::vector<uint8_t> operandValues = { 63 0, 0, 0, 0 64 }; 65 const std::vector<hidl_memory> pools = {}; 66 67 return { 68 .operands = operands, 69 .operations = operations, 70 .inputIndexes = inputIndexes, 71 .outputIndexes = outputIndexes, 72 .operandValues = operandValues, 73 .pools = pools, 74 .relaxComputationFloat32toFloat16 = true, 75 }; 76} 77 78 79bool is_ignored(int i) { 80 static std::set<int> ignore = {}; 81 return ignore.find(i) != ignore.end(); 82} 83