1// Generated code. Do not edit
2// Create the model
3Model createTestModel() {
4    const std::vector<Operand> operands = {
5        {
6            .type = OperandType::INT32,
7            .dimensions = {},
8            .numberOfConsumers = 1,
9            .scale = 0.0f,
10            .zeroPoint = 0,
11            .lifetime = OperandLifeTime::CONSTANT_COPY,
12            .location = {.poolIndex = 0, .offset = 0, .length = 4},
13        },
14        {
15            .type = OperandType::INT32,
16            .dimensions = {},
17            .numberOfConsumers = 1,
18            .scale = 0.0f,
19            .zeroPoint = 0,
20            .lifetime = OperandLifeTime::CONSTANT_COPY,
21            .location = {.poolIndex = 0, .offset = 4, .length = 4},
22        },
23        {
24            .type = OperandType::INT32,
25            .dimensions = {},
26            .numberOfConsumers = 1,
27            .scale = 0.0f,
28            .zeroPoint = 0,
29            .lifetime = OperandLifeTime::CONSTANT_COPY,
30            .location = {.poolIndex = 0, .offset = 8, .length = 4},
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 = 12, .length = 4},
40        },
41        {
42            .type = OperandType::TENSOR_FLOAT32,
43            .dimensions = {1, 8, 8, 3},
44            .numberOfConsumers = 1,
45            .scale = 0.0f,
46            .zeroPoint = 0,
47            .lifetime = OperandLifeTime::MODEL_INPUT,
48            .location = {.poolIndex = 0, .offset = 0, .length = 0},
49        },
50        {
51            .type = OperandType::TENSOR_FLOAT32,
52            .dimensions = {1, 8, 8, 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            .type = OperandType::TENSOR_FLOAT32,
61            .dimensions = {1, 3, 2, 3},
62            .numberOfConsumers = 1,
63            .scale = 0.0f,
64            .zeroPoint = 0,
65            .lifetime = OperandLifeTime::CONSTANT_COPY,
66            .location = {.poolIndex = 0, .offset = 16, .length = 72},
67        },
68        {
69            .type = OperandType::TENSOR_FLOAT32,
70            .dimensions = {1},
71            .numberOfConsumers = 1,
72            .scale = 0.0f,
73            .zeroPoint = 0,
74            .lifetime = OperandLifeTime::CONSTANT_COPY,
75            .location = {.poolIndex = 0, .offset = 88, .length = 4},
76        }
77    };
78
79    const std::vector<Operation> operations = {
80        {
81            .type = OperationType::CONV_2D,
82            .inputs = {4, 6, 7, 0, 1, 2, 3},
83            .outputs = {5},
84        }
85    };
86
87    const std::vector<uint32_t> inputIndexes = {4};
88    const std::vector<uint32_t> outputIndexes = {5};
89    std::vector<uint8_t> operandValues = {
90      1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 188, 89, 119, 191, 193, 88, 239, 190, 143, 112, 82, 191, 42, 87, 20, 191, 124, 102, 228, 60, 105, 169, 76, 191, 153, 43, 47, 191, 94, 48, 16, 63, 112, 235, 190, 62, 185, 251, 60, 63, 177, 167, 197, 62, 77, 243, 106, 191, 177, 191, 60, 62, 228, 135, 138, 190, 47, 134, 82, 63, 8, 105, 199, 61, 144, 249, 112, 191, 207, 45, 20, 190, 0, 0, 0, 0
91    };
92    const std::vector<hidl_memory> pools = {};
93
94    return {
95        .operands = operands,
96        .operations = operations,
97        .inputIndexes = inputIndexes,
98        .outputIndexes = outputIndexes,
99        .operandValues = operandValues,
100        .pools = pools,
101        .relaxComputationFloat32toFloat16 = true,
102    };
103}
104
105
106bool is_ignored(int i) {
107  static std::set<int> ignore = {};
108  return ignore.find(i) != ignore.end();
109}
110