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, 200, 180, 1}, 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::INT32, 16 .dimensions = {}, 17 .numberOfConsumers = 2, 18 .scale = 0.0f, 19 .zeroPoint = 0, 20 .lifetime = OperandLifeTime::CONSTANT_COPY, 21 .location = {.poolIndex = 0, .offset = 0, .length = 4}, 22 }, 23 { 24 .type = OperandType::INT32, 25 .dimensions = {}, 26 .numberOfConsumers = 2, 27 .scale = 0.0f, 28 .zeroPoint = 0, 29 .lifetime = OperandLifeTime::CONSTANT_COPY, 30 .location = {.poolIndex = 0, .offset = 4, .length = 4}, 31 }, 32 { 33 .type = OperandType::INT32, 34 .dimensions = {}, 35 .numberOfConsumers = 4, 36 .scale = 0.0f, 37 .zeroPoint = 0, 38 .lifetime = OperandLifeTime::CONSTANT_COPY, 39 .location = {.poolIndex = 0, .offset = 8, .length = 4}, 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 = 12, .length = 4}, 49 }, 50 { 51 .type = OperandType::TENSOR_FLOAT32, 52 .dimensions = {1, 96, 86, 1}, 53 .numberOfConsumers = 0, 54 .scale = 0.0f, 55 .zeroPoint = 0, 56 .lifetime = OperandLifeTime::MODEL_OUTPUT, 57 .location = {.poolIndex = 0, .offset = 0, .length = 0}, 58 } 59 }; 60 61 const std::vector<Operation> operations = { 62 { 63 .type = OperationType::AVERAGE_POOL_2D, 64 .inputs = {0, 3, 3, 3, 3, 1, 1, 2, 2, 4}, 65 .outputs = {5}, 66 } 67 }; 68 69 const std::vector<uint32_t> inputIndexes = {0}; 70 const std::vector<uint32_t> outputIndexes = {5}; 71 std::vector<uint8_t> operandValues = { 72 2, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 73 }; 74 const std::vector<hidl_memory> pools = {}; 75 76 return { 77 .operands = operands, 78 .operations = operations, 79 .inputIndexes = inputIndexes, 80 .outputIndexes = outputIndexes, 81 .operandValues = operandValues, 82 .pools = pools, 83 .relaxComputationFloat32toFloat16 = true, 84 }; 85} 86 87 88bool is_ignored(int i) { 89 static std::set<int> ignore = {}; 90 return ignore.find(i) != ignore.end(); 91} 92