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 = {4, 2}, 8 .numberOfConsumers = 1, 9 .scale = 0.0f, 10 .zeroPoint = 0, 11 .lifetime = OperandLifeTime::CONSTANT_COPY, 12 .location = {.poolIndex = 0, .offset = 0, .length = 32}, 13 }, 14 { 15 .type = OperandType::TENSOR_INT32, 16 .dimensions = {3, 2}, 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}, 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::INT32, 34 .dimensions = {}, 35 .numberOfConsumers = 1, 36 .scale = 0.0f, 37 .zeroPoint = 0, 38 .lifetime = OperandLifeTime::CONSTANT_COPY, 39 .location = {.poolIndex = 0, .offset = 32, .length = 4}, 40 }, 41 { 42 .type = OperandType::TENSOR_INT32, 43 .dimensions = {8}, 44 .numberOfConsumers = 0, 45 .scale = 0.0f, 46 .zeroPoint = 0, 47 .lifetime = OperandLifeTime::MODEL_OUTPUT, 48 .location = {.poolIndex = 0, .offset = 0, .length = 0}, 49 } 50 }; 51 52 const std::vector<Operation> operations = { 53 { 54 .type = OperationType::LSH_PROJECTION, 55 .inputs = {0, 1, 2, 3}, 56 .outputs = {4}, 57 } 58 }; 59 60 const std::vector<uint32_t> inputIndexes = {1, 2}; 61 const std::vector<uint32_t> outputIndexes = {4}; 62 std::vector<uint8_t> operandValues = { 63 109, 231, 251, 61, 213, 120, 233, 62, 29, 90, 164, 190, 139, 108, 39, 191, 182, 243, 157, 63, 45, 178, 181, 64, 162, 69, 138, 192, 113, 61, 12, 193, 2, 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