14062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung// Generated code. Do not edit
24062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung// Create the model
34062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) SungModel createTestModel() {
44062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung    const std::vector<Operand> operands = {
54062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung        {
64062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .type = OperandType::INT32,
74062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .dimensions = {},
84062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .numberOfConsumers = 1,
94062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .scale = 0.0f,
104062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .zeroPoint = 0,
114062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .lifetime = OperandLifeTime::CONSTANT_COPY,
124062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .location = {.poolIndex = 0, .offset = 0, .length = 4},
134062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung        },
144062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung        {
154062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .type = OperandType::INT32,
164062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .dimensions = {},
174062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .numberOfConsumers = 1,
184062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .scale = 0.0f,
194062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .zeroPoint = 0,
204062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .lifetime = OperandLifeTime::CONSTANT_COPY,
214062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .location = {.poolIndex = 0, .offset = 4, .length = 4},
224062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung        },
234062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung        {
244062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .type = OperandType::INT32,
254062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .dimensions = {},
264062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .numberOfConsumers = 1,
274062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .scale = 0.0f,
284062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .zeroPoint = 0,
294062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .lifetime = OperandLifeTime::CONSTANT_COPY,
304062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .location = {.poolIndex = 0, .offset = 8, .length = 4},
314062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung        },
324062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung        {
334062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .type = OperandType::INT32,
344062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .dimensions = {},
354062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .numberOfConsumers = 1,
364062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .scale = 0.0f,
374062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .zeroPoint = 0,
384062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .lifetime = OperandLifeTime::CONSTANT_COPY,
394062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .location = {.poolIndex = 0, .offset = 12, .length = 4},
404062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung        },
414062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung        {
424062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .type = OperandType::TENSOR_FLOAT32,
434062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .dimensions = {1, 8, 8, 3},
444062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .numberOfConsumers = 1,
454062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .scale = 0.0f,
464062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .zeroPoint = 0,
474062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .lifetime = OperandLifeTime::MODEL_INPUT,
484062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .location = {.poolIndex = 0, .offset = 0, .length = 0},
494062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung        },
504062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung        {
514062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .type = OperandType::TENSOR_FLOAT32,
524062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .dimensions = {1, 8, 8, 3},
534062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .numberOfConsumers = 0,
544062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .scale = 0.0f,
554062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .zeroPoint = 0,
564062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .lifetime = OperandLifeTime::MODEL_OUTPUT,
574062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .location = {.poolIndex = 0, .offset = 0, .length = 0},
584062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung        },
594062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung        {
604062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .type = OperandType::TENSOR_FLOAT32,
614062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .dimensions = {3, 3, 2, 3},
624062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .numberOfConsumers = 1,
634062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .scale = 0.0f,
644062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .zeroPoint = 0,
654062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .lifetime = OperandLifeTime::CONSTANT_COPY,
664062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .location = {.poolIndex = 0, .offset = 16, .length = 216},
674062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung        },
684062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung        {
694062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .type = OperandType::TENSOR_FLOAT32,
704062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .dimensions = {3},
714062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .numberOfConsumers = 1,
724062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .scale = 0.0f,
734062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .zeroPoint = 0,
744062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .lifetime = OperandLifeTime::CONSTANT_COPY,
754062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .location = {.poolIndex = 0, .offset = 232, .length = 12},
764062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung        }
774062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung    };
784062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung
794062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung    const std::vector<Operation> operations = {
804062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung        {
814062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .type = OperationType::CONV_2D,
824062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .inputs = {4, 6, 7, 0, 1, 2, 3},
834062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung            .outputs = {5},
844062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung        }
854062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung    };
864062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung
874062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung    const std::vector<uint32_t> inputIndexes = {4};
884062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung    const std::vector<uint32_t> outputIndexes = {5};
894062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung    std::vector<uint8_t> operandValues = {
904062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung      1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 188, 89, 119, 191, 42, 87, 20, 191, 153, 43, 47, 191, 185, 251, 60, 63, 177, 191, 60, 62, 8, 105, 199, 61, 147, 27, 53, 190, 202, 26, 117, 190, 233, 189, 116, 185, 52, 132, 99, 61, 230, 61, 110, 190, 181, 255, 161, 190, 76, 107, 83, 188, 114, 51, 164, 62, 150, 63, 167, 190, 193, 111, 107, 191, 142, 58, 94, 63, 131, 25, 83, 191, 193, 88, 239, 190, 124, 102, 228, 60, 94, 48, 16, 63, 177, 167, 197, 62, 228, 135, 138, 190, 144, 249, 112, 191, 108, 123, 71, 191, 72, 226, 133, 190, 142, 89, 70, 191, 65, 241, 75, 191, 159, 31, 102, 62, 180, 32, 212, 190, 242, 150, 47, 63, 90, 212, 167, 190, 150, 33, 70, 63, 149, 238, 54, 191, 234, 236, 120, 191, 163, 143, 142, 61, 143, 112, 82, 191, 105, 169, 76, 191, 112, 235, 190, 62, 77, 243, 106, 191, 47, 134, 82, 63, 207, 45, 20, 190, 85, 51, 43, 190, 108, 63, 137, 62, 72, 224, 51, 63, 229, 14, 211, 190, 108, 121, 65, 63, 78, 183, 56, 63, 227, 107, 223, 190, 89, 192, 140, 190, 255, 207, 137, 190, 109, 226, 36, 62, 38, 226, 81, 63, 131, 191, 159, 190, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
914062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung    };
924062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung    const std::vector<hidl_memory> pools = {};
934062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung
944062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung    return {
954062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung        .operands = operands,
964062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung        .operations = operations,
974062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung        .inputIndexes = inputIndexes,
984062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung        .outputIndexes = outputIndexes,
994062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung        .operandValues = operandValues,
1004062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung        .pools = pools,
1014062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung    };
1024062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung}
1034062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung
104e8e5d34c4159532eb324df393c2c752a508bced1Miao Wang
1054062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sungbool is_ignored(int i) {
1064062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung  static std::set<int> ignore = {};
1074062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung  return ignore.find(i) != ignore.end();
1084062279c74f2c995349b7ff04f22feb89eb81e47I-Jui (Ray) Sung}
109