1 // clang-format off
2 // Generated file (from: generate_proposals.mod.py). Do not edit
get_examples_nhwc()3 std::vector<MixedTypedExample>& get_examples_nhwc() {
4 static std::vector<MixedTypedExample> examples_nhwc = {
5 // Begin of an example
6 {
7 .operands = {
8 //Input(s)
9 { // See tools/test_generator/include/TestHarness.h:MixedTyped
10 // int -> Dimensions map
11 .operandDimensions = {{0, {1, 2, 2, 2}}, {1, {1, 2, 2, 8}}, {2, {2, 4}}, {3, {1, 2}}},
12 // int -> FLOAT32 map
13 .float32Operands = {{0, {0.8f, 0.9f, 0.85f, 0.85f, 0.75f, 0.8f, 0.9f, 0.95f}}, {1, {0.5f, 0.1f, 0.1f, 0.1f, 0.5f, 0.1f, 0.5f, 0.1f, -0.25f, 0.1f, -0.1f, -0.1f, -0.25f, 0.1f, 0.2f, 0.1f, 0.4f, -0.1f, -0.2f, 0.2f, 0.4f, -0.1f, -0.2f, 0.2f, -0.2f, -0.2f, 0.2f, 0.2f, -0.2f, -0.2f, 0.2f, 0.2f}}, {2, {0.0f, 1.0f, 4.0f, 3.0f, 1.0f, 0.0f, 3.0f, 4.0f}}, {3, {32.0f, 32.0f}}},
14 // int -> INT32 map
15 .int32Operands = {},
16 // int -> QUANT8_ASYMM map
17 .quant8AsymmOperands = {},
18 // int -> QUANT16_SYMM map
19 .quant16SymmOperands = {},
20 // int -> FLOAT16 map
21 .float16Operands = {},
22 // int -> BOOL8 map
23 .bool8Operands = {},
24 // int -> QUANT8_SYMM_PER_CHANNEL map
25 .quant8ChannelOperands = {},
26 // int -> QUANT16_ASYMM map
27 .quant16AsymmOperands = {},
28 // int -> QUANT8_SYMM map
29 .quant8SymmOperands = {},
30 },
31 //Output(s)
32 { // See tools/test_generator/include/TestHarness.h:MixedTyped
33 // int -> Dimensions map
34 .operandDimensions = {{0, {4}}, {1, {4, 4}}, {2, {4}}},
35 // int -> FLOAT32 map
36 .float32Operands = {{0, {0.95f, 0.9f, 0.85f, 0.8f}}, {1, {4.3785973f, 2.7571943f, 6.8214025f, 7.642805f, 1.3512788f, 0.18965816f, 4.648721f, 4.610342f, 3.1903253f, 1.2951627f, 6.8096747f, 3.1048374f, 1.9812691f, 3.1571944f, 3.6187308f, 8.042806f}}},
37 // int -> INT32 map
38 .int32Operands = {{2, {0, 0, 0, 0}}},
39 // int -> QUANT8_ASYMM map
40 .quant8AsymmOperands = {},
41 // int -> QUANT16_SYMM map
42 .quant16SymmOperands = {},
43 // int -> FLOAT16 map
44 .float16Operands = {},
45 // int -> BOOL8 map
46 .bool8Operands = {},
47 // int -> QUANT8_SYMM_PER_CHANNEL map
48 .quant8ChannelOperands = {},
49 // int -> QUANT16_ASYMM map
50 .quant16AsymmOperands = {},
51 // int -> QUANT8_SYMM map
52 .quant8SymmOperands = {},
53 }
54 },
55 }, // End of an example
56 };
57 return examples_nhwc;
58 };
59
get_examples_nhwc_relaxed()60 std::vector<MixedTypedExample>& get_examples_nhwc_relaxed() {
61 static std::vector<MixedTypedExample> examples_nhwc_relaxed = {
62 // Begin of an example
63 {
64 .operands = {
65 //Input(s)
66 { // See tools/test_generator/include/TestHarness.h:MixedTyped
67 // int -> Dimensions map
68 .operandDimensions = {{0, {1, 2, 2, 2}}, {1, {1, 2, 2, 8}}, {2, {2, 4}}, {3, {1, 2}}},
69 // int -> FLOAT32 map
70 .float32Operands = {{0, {0.8f, 0.9f, 0.85f, 0.85f, 0.75f, 0.8f, 0.9f, 0.95f}}, {1, {0.5f, 0.1f, 0.1f, 0.1f, 0.5f, 0.1f, 0.5f, 0.1f, -0.25f, 0.1f, -0.1f, -0.1f, -0.25f, 0.1f, 0.2f, 0.1f, 0.4f, -0.1f, -0.2f, 0.2f, 0.4f, -0.1f, -0.2f, 0.2f, -0.2f, -0.2f, 0.2f, 0.2f, -0.2f, -0.2f, 0.2f, 0.2f}}, {2, {0.0f, 1.0f, 4.0f, 3.0f, 1.0f, 0.0f, 3.0f, 4.0f}}, {3, {32.0f, 32.0f}}},
71 // int -> INT32 map
72 .int32Operands = {},
73 // int -> QUANT8_ASYMM map
74 .quant8AsymmOperands = {},
75 // int -> QUANT16_SYMM map
76 .quant16SymmOperands = {},
77 // int -> FLOAT16 map
78 .float16Operands = {},
79 // int -> BOOL8 map
80 .bool8Operands = {},
81 // int -> QUANT8_SYMM_PER_CHANNEL map
82 .quant8ChannelOperands = {},
83 // int -> QUANT16_ASYMM map
84 .quant16AsymmOperands = {},
85 // int -> QUANT8_SYMM map
86 .quant8SymmOperands = {},
87 },
88 //Output(s)
89 { // See tools/test_generator/include/TestHarness.h:MixedTyped
90 // int -> Dimensions map
91 .operandDimensions = {{0, {4}}, {1, {4, 4}}, {2, {4}}},
92 // int -> FLOAT32 map
93 .float32Operands = {{0, {0.95f, 0.9f, 0.85f, 0.8f}}, {1, {4.3785973f, 2.7571943f, 6.8214025f, 7.642805f, 1.3512788f, 0.18965816f, 4.648721f, 4.610342f, 3.1903253f, 1.2951627f, 6.8096747f, 3.1048374f, 1.9812691f, 3.1571944f, 3.6187308f, 8.042806f}}},
94 // int -> INT32 map
95 .int32Operands = {{2, {0, 0, 0, 0}}},
96 // int -> QUANT8_ASYMM map
97 .quant8AsymmOperands = {},
98 // int -> QUANT16_SYMM map
99 .quant16SymmOperands = {},
100 // int -> FLOAT16 map
101 .float16Operands = {},
102 // int -> BOOL8 map
103 .bool8Operands = {},
104 // int -> QUANT8_SYMM_PER_CHANNEL map
105 .quant8ChannelOperands = {},
106 // int -> QUANT16_ASYMM map
107 .quant16AsymmOperands = {},
108 // int -> QUANT8_SYMM map
109 .quant8SymmOperands = {},
110 }
111 },
112 }, // End of an example
113 };
114 return examples_nhwc_relaxed;
115 };
116
get_examples_nhwc_quant8()117 std::vector<MixedTypedExample>& get_examples_nhwc_quant8() {
118 static std::vector<MixedTypedExample> examples_nhwc_quant8 = {
119 // Begin of an example
120 {
121 .operands = {
122 //Input(s)
123 { // See tools/test_generator/include/TestHarness.h:MixedTyped
124 // int -> Dimensions map
125 .operandDimensions = {{0, {1, 2, 2, 2}}, {1, {1, 2, 2, 8}}, {2, {2, 4}}, {3, {1, 2}}},
126 // int -> FLOAT32 map
127 .float32Operands = {},
128 // int -> INT32 map
129 .int32Operands = {},
130 // int -> QUANT8_ASYMM map
131 .quant8AsymmOperands = {{0, {180, 190, 185, 185, 175, 180, 190, 195}}, {1, {138, 130, 130, 130, 138, 130, 138, 130, 123, 130, 126, 126, 123, 130, 132, 130, 136, 126, 124, 132, 136, 126, 124, 132, 124, 124, 132, 132, 124, 124, 132, 132}}},
132 // int -> QUANT16_SYMM map
133 .quant16SymmOperands = {{2, {0, 8, 32, 24, 8, 0, 24, 32}}},
134 // int -> FLOAT16 map
135 .float16Operands = {},
136 // int -> BOOL8 map
137 .bool8Operands = {},
138 // int -> QUANT8_SYMM_PER_CHANNEL map
139 .quant8ChannelOperands = {},
140 // int -> QUANT16_ASYMM map
141 .quant16AsymmOperands = {{3, {256, 256}}},
142 // int -> QUANT8_SYMM map
143 .quant8SymmOperands = {},
144 },
145 //Output(s)
146 { // See tools/test_generator/include/TestHarness.h:MixedTyped
147 // int -> Dimensions map
148 .operandDimensions = {{0, {4}}, {1, {4, 4}}, {2, {4}}},
149 // int -> FLOAT32 map
150 .float32Operands = {},
151 // int -> INT32 map
152 .int32Operands = {{2, {0, 0, 0, 0}}},
153 // int -> QUANT8_ASYMM map
154 .quant8AsymmOperands = {{0, {195, 190, 185, 180}}},
155 // int -> QUANT16_SYMM map
156 .quant16SymmOperands = {},
157 // int -> FLOAT16 map
158 .float16Operands = {},
159 // int -> BOOL8 map
160 .bool8Operands = {},
161 // int -> QUANT8_SYMM_PER_CHANNEL map
162 .quant8ChannelOperands = {},
163 // int -> QUANT16_ASYMM map
164 .quant16AsymmOperands = {{1, {35, 22, 55, 61, 11, 2, 37, 37, 26, 10, 54, 25, 16, 25, 29, 64}}},
165 // int -> QUANT8_SYMM map
166 .quant8SymmOperands = {},
167 }
168 },
169 }, // End of an example
170 };
171 return examples_nhwc_quant8;
172 };
173
get_examples_nhwc_float16()174 std::vector<MixedTypedExample>& get_examples_nhwc_float16() {
175 static std::vector<MixedTypedExample> examples_nhwc_float16 = {
176 // Begin of an example
177 {
178 .operands = {
179 //Input(s)
180 { // See tools/test_generator/include/TestHarness.h:MixedTyped
181 // int -> Dimensions map
182 .operandDimensions = {{0, {1, 2, 2, 2}}, {1, {1, 2, 2, 8}}, {2, {2, 4}}, {3, {1, 2}}},
183 // int -> FLOAT32 map
184 .float32Operands = {},
185 // int -> INT32 map
186 .int32Operands = {},
187 // int -> QUANT8_ASYMM map
188 .quant8AsymmOperands = {},
189 // int -> QUANT16_SYMM map
190 .quant16SymmOperands = {},
191 // int -> FLOAT16 map
192 .float16Operands = {{0, {0.800000011920929f, 0.8999999761581421f, 0.8500000238418579f, 0.8500000238418579f, 0.75f, 0.800000011920929f, 0.8999999761581421f, 0.949999988079071f}}, {1, {0.5f, 0.10000000149011612f, 0.10000000149011612f, 0.10000000149011612f, 0.5f, 0.10000000149011612f, 0.5f, 0.10000000149011612f, -0.25f, 0.10000000149011612f, -0.10000000149011612f, -0.10000000149011612f, -0.25f, 0.10000000149011612f, 0.20000000298023224f, 0.10000000149011612f, 0.4000000059604645f, -0.10000000149011612f, -0.20000000298023224f, 0.20000000298023224f, 0.4000000059604645f, -0.10000000149011612f, -0.20000000298023224f, 0.20000000298023224f, -0.20000000298023224f, -0.20000000298023224f, 0.20000000298023224f, 0.20000000298023224f, -0.20000000298023224f, -0.20000000298023224f, 0.20000000298023224f, 0.20000000298023224f}}, {2, {0.0f, 1.0f, 4.0f, 3.0f, 1.0f, 0.0f, 3.0f, 4.0f}}, {3, {32.0f, 32.0f}}},
193 // int -> BOOL8 map
194 .bool8Operands = {},
195 // int -> QUANT8_SYMM_PER_CHANNEL map
196 .quant8ChannelOperands = {},
197 // int -> QUANT16_ASYMM map
198 .quant16AsymmOperands = {},
199 // int -> QUANT8_SYMM map
200 .quant8SymmOperands = {},
201 },
202 //Output(s)
203 { // See tools/test_generator/include/TestHarness.h:MixedTyped
204 // int -> Dimensions map
205 .operandDimensions = {{0, {4}}, {1, {4, 4}}, {2, {4}}},
206 // int -> FLOAT32 map
207 .float32Operands = {},
208 // int -> INT32 map
209 .int32Operands = {{2, {0, 0, 0, 0}}},
210 // int -> QUANT8_ASYMM map
211 .quant8AsymmOperands = {},
212 // int -> QUANT16_SYMM map
213 .quant16SymmOperands = {},
214 // int -> FLOAT16 map
215 .float16Operands = {{0, {0.949999988079071f, 0.8999999761581421f, 0.8500000238418579f, 0.800000011920929f}}, {1, {4.378597259521484f, 2.7571942806243896f, 6.821402549743652f, 7.642805099487305f, 1.3512787818908691f, 0.18965816497802734f, 4.648721218109131f, 4.610342025756836f, 3.1903252601623535f, 1.2951626777648926f, 6.8096747398376465f, 3.104837417602539f, 1.981269121170044f, 3.1571943759918213f, 3.6187307834625244f, 8.042805671691895f}}},
216 // int -> BOOL8 map
217 .bool8Operands = {},
218 // int -> QUANT8_SYMM_PER_CHANNEL map
219 .quant8ChannelOperands = {},
220 // int -> QUANT16_ASYMM map
221 .quant16AsymmOperands = {},
222 // int -> QUANT8_SYMM map
223 .quant8SymmOperands = {},
224 }
225 },
226 }, // End of an example
227 };
228 return examples_nhwc_float16;
229 };
230
get_examples_nchw()231 std::vector<MixedTypedExample>& get_examples_nchw() {
232 static std::vector<MixedTypedExample> examples_nchw = {
233 // Begin of an example
234 {
235 .operands = {
236 //Input(s)
237 { // See tools/test_generator/include/TestHarness.h:MixedTyped
238 // int -> Dimensions map
239 .operandDimensions = {{0, {1, 2, 2, 2}}, {1, {1, 8, 2, 2}}, {2, {2, 4}}, {3, {1, 2}}},
240 // int -> FLOAT32 map
241 .float32Operands = {{0, {0.8f, 0.85f, 0.75f, 0.9f, 0.9f, 0.85f, 0.8f, 0.95f}}, {1, {0.5f, -0.25f, 0.4f, -0.2f, 0.1f, 0.1f, -0.1f, -0.2f, 0.1f, -0.1f, -0.2f, 0.2f, 0.1f, -0.1f, 0.2f, 0.2f, 0.5f, -0.25f, 0.4f, -0.2f, 0.1f, 0.1f, -0.1f, -0.2f, 0.5f, 0.2f, -0.2f, 0.2f, 0.1f, 0.1f, 0.2f, 0.2f}}, {2, {0.0f, 1.0f, 4.0f, 3.0f, 1.0f, 0.0f, 3.0f, 4.0f}}, {3, {32.0f, 32.0f}}},
242 // int -> INT32 map
243 .int32Operands = {},
244 // int -> QUANT8_ASYMM map
245 .quant8AsymmOperands = {},
246 // int -> QUANT16_SYMM map
247 .quant16SymmOperands = {},
248 // int -> FLOAT16 map
249 .float16Operands = {},
250 // int -> BOOL8 map
251 .bool8Operands = {},
252 // int -> QUANT8_SYMM_PER_CHANNEL map
253 .quant8ChannelOperands = {},
254 // int -> QUANT16_ASYMM map
255 .quant16AsymmOperands = {},
256 // int -> QUANT8_SYMM map
257 .quant8SymmOperands = {},
258 },
259 //Output(s)
260 { // See tools/test_generator/include/TestHarness.h:MixedTyped
261 // int -> Dimensions map
262 .operandDimensions = {{0, {4}}, {1, {4, 4}}, {2, {4}}},
263 // int -> FLOAT32 map
264 .float32Operands = {{0, {0.95f, 0.9f, 0.85f, 0.8f}}, {1, {4.3785973f, 2.7571943f, 6.8214025f, 7.642805f, 1.3512788f, 0.18965816f, 4.648721f, 4.610342f, 3.1903253f, 1.2951627f, 6.8096747f, 3.1048374f, 1.9812691f, 3.1571944f, 3.6187308f, 8.042806f}}},
265 // int -> INT32 map
266 .int32Operands = {{2, {0, 0, 0, 0}}},
267 // int -> QUANT8_ASYMM map
268 .quant8AsymmOperands = {},
269 // int -> QUANT16_SYMM map
270 .quant16SymmOperands = {},
271 // int -> FLOAT16 map
272 .float16Operands = {},
273 // int -> BOOL8 map
274 .bool8Operands = {},
275 // int -> QUANT8_SYMM_PER_CHANNEL map
276 .quant8ChannelOperands = {},
277 // int -> QUANT16_ASYMM map
278 .quant16AsymmOperands = {},
279 // int -> QUANT8_SYMM map
280 .quant8SymmOperands = {},
281 }
282 },
283 }, // End of an example
284 };
285 return examples_nchw;
286 };
287
get_examples_nchw_relaxed()288 std::vector<MixedTypedExample>& get_examples_nchw_relaxed() {
289 static std::vector<MixedTypedExample> examples_nchw_relaxed = {
290 // Begin of an example
291 {
292 .operands = {
293 //Input(s)
294 { // See tools/test_generator/include/TestHarness.h:MixedTyped
295 // int -> Dimensions map
296 .operandDimensions = {{0, {1, 2, 2, 2}}, {1, {1, 8, 2, 2}}, {2, {2, 4}}, {3, {1, 2}}},
297 // int -> FLOAT32 map
298 .float32Operands = {{0, {0.8f, 0.85f, 0.75f, 0.9f, 0.9f, 0.85f, 0.8f, 0.95f}}, {1, {0.5f, -0.25f, 0.4f, -0.2f, 0.1f, 0.1f, -0.1f, -0.2f, 0.1f, -0.1f, -0.2f, 0.2f, 0.1f, -0.1f, 0.2f, 0.2f, 0.5f, -0.25f, 0.4f, -0.2f, 0.1f, 0.1f, -0.1f, -0.2f, 0.5f, 0.2f, -0.2f, 0.2f, 0.1f, 0.1f, 0.2f, 0.2f}}, {2, {0.0f, 1.0f, 4.0f, 3.0f, 1.0f, 0.0f, 3.0f, 4.0f}}, {3, {32.0f, 32.0f}}},
299 // int -> INT32 map
300 .int32Operands = {},
301 // int -> QUANT8_ASYMM map
302 .quant8AsymmOperands = {},
303 // int -> QUANT16_SYMM map
304 .quant16SymmOperands = {},
305 // int -> FLOAT16 map
306 .float16Operands = {},
307 // int -> BOOL8 map
308 .bool8Operands = {},
309 // int -> QUANT8_SYMM_PER_CHANNEL map
310 .quant8ChannelOperands = {},
311 // int -> QUANT16_ASYMM map
312 .quant16AsymmOperands = {},
313 // int -> QUANT8_SYMM map
314 .quant8SymmOperands = {},
315 },
316 //Output(s)
317 { // See tools/test_generator/include/TestHarness.h:MixedTyped
318 // int -> Dimensions map
319 .operandDimensions = {{0, {4}}, {1, {4, 4}}, {2, {4}}},
320 // int -> FLOAT32 map
321 .float32Operands = {{0, {0.95f, 0.9f, 0.85f, 0.8f}}, {1, {4.3785973f, 2.7571943f, 6.8214025f, 7.642805f, 1.3512788f, 0.18965816f, 4.648721f, 4.610342f, 3.1903253f, 1.2951627f, 6.8096747f, 3.1048374f, 1.9812691f, 3.1571944f, 3.6187308f, 8.042806f}}},
322 // int -> INT32 map
323 .int32Operands = {{2, {0, 0, 0, 0}}},
324 // int -> QUANT8_ASYMM map
325 .quant8AsymmOperands = {},
326 // int -> QUANT16_SYMM map
327 .quant16SymmOperands = {},
328 // int -> FLOAT16 map
329 .float16Operands = {},
330 // int -> BOOL8 map
331 .bool8Operands = {},
332 // int -> QUANT8_SYMM_PER_CHANNEL map
333 .quant8ChannelOperands = {},
334 // int -> QUANT16_ASYMM map
335 .quant16AsymmOperands = {},
336 // int -> QUANT8_SYMM map
337 .quant8SymmOperands = {},
338 }
339 },
340 }, // End of an example
341 };
342 return examples_nchw_relaxed;
343 };
344
get_examples_nchw_quant8()345 std::vector<MixedTypedExample>& get_examples_nchw_quant8() {
346 static std::vector<MixedTypedExample> examples_nchw_quant8 = {
347 // Begin of an example
348 {
349 .operands = {
350 //Input(s)
351 { // See tools/test_generator/include/TestHarness.h:MixedTyped
352 // int -> Dimensions map
353 .operandDimensions = {{0, {1, 2, 2, 2}}, {1, {1, 8, 2, 2}}, {2, {2, 4}}, {3, {1, 2}}},
354 // int -> FLOAT32 map
355 .float32Operands = {},
356 // int -> INT32 map
357 .int32Operands = {},
358 // int -> QUANT8_ASYMM map
359 .quant8AsymmOperands = {{0, {180, 185, 175, 190, 190, 185, 180, 195}}, {1, {138, 123, 136, 124, 130, 130, 126, 124, 130, 126, 124, 132, 130, 126, 132, 132, 138, 123, 136, 124, 130, 130, 126, 124, 138, 132, 124, 132, 130, 130, 132, 132}}},
360 // int -> QUANT16_SYMM map
361 .quant16SymmOperands = {{2, {0, 8, 32, 24, 8, 0, 24, 32}}},
362 // int -> FLOAT16 map
363 .float16Operands = {},
364 // int -> BOOL8 map
365 .bool8Operands = {},
366 // int -> QUANT8_SYMM_PER_CHANNEL map
367 .quant8ChannelOperands = {},
368 // int -> QUANT16_ASYMM map
369 .quant16AsymmOperands = {{3, {256, 256}}},
370 // int -> QUANT8_SYMM map
371 .quant8SymmOperands = {},
372 },
373 //Output(s)
374 { // See tools/test_generator/include/TestHarness.h:MixedTyped
375 // int -> Dimensions map
376 .operandDimensions = {{0, {4}}, {1, {4, 4}}, {2, {4}}},
377 // int -> FLOAT32 map
378 .float32Operands = {},
379 // int -> INT32 map
380 .int32Operands = {{2, {0, 0, 0, 0}}},
381 // int -> QUANT8_ASYMM map
382 .quant8AsymmOperands = {{0, {195, 190, 185, 180}}},
383 // int -> QUANT16_SYMM map
384 .quant16SymmOperands = {},
385 // int -> FLOAT16 map
386 .float16Operands = {},
387 // int -> BOOL8 map
388 .bool8Operands = {},
389 // int -> QUANT8_SYMM_PER_CHANNEL map
390 .quant8ChannelOperands = {},
391 // int -> QUANT16_ASYMM map
392 .quant16AsymmOperands = {{1, {35, 22, 55, 61, 11, 2, 37, 37, 26, 10, 54, 25, 16, 25, 29, 64}}},
393 // int -> QUANT8_SYMM map
394 .quant8SymmOperands = {},
395 }
396 },
397 }, // End of an example
398 };
399 return examples_nchw_quant8;
400 };
401
get_examples_nchw_float16()402 std::vector<MixedTypedExample>& get_examples_nchw_float16() {
403 static std::vector<MixedTypedExample> examples_nchw_float16 = {
404 // Begin of an example
405 {
406 .operands = {
407 //Input(s)
408 { // See tools/test_generator/include/TestHarness.h:MixedTyped
409 // int -> Dimensions map
410 .operandDimensions = {{0, {1, 2, 2, 2}}, {1, {1, 8, 2, 2}}, {2, {2, 4}}, {3, {1, 2}}},
411 // int -> FLOAT32 map
412 .float32Operands = {},
413 // int -> INT32 map
414 .int32Operands = {},
415 // int -> QUANT8_ASYMM map
416 .quant8AsymmOperands = {},
417 // int -> QUANT16_SYMM map
418 .quant16SymmOperands = {},
419 // int -> FLOAT16 map
420 .float16Operands = {{0, {0.800000011920929f, 0.8500000238418579f, 0.75f, 0.8999999761581421f, 0.8999999761581421f, 0.8500000238418579f, 0.800000011920929f, 0.949999988079071f}}, {1, {0.5f, -0.25f, 0.4000000059604645f, -0.20000000298023224f, 0.10000000149011612f, 0.10000000149011612f, -0.10000000149011612f, -0.20000000298023224f, 0.10000000149011612f, -0.10000000149011612f, -0.20000000298023224f, 0.20000000298023224f, 0.10000000149011612f, -0.10000000149011612f, 0.20000000298023224f, 0.20000000298023224f, 0.5f, -0.25f, 0.4000000059604645f, -0.20000000298023224f, 0.10000000149011612f, 0.10000000149011612f, -0.10000000149011612f, -0.20000000298023224f, 0.5f, 0.20000000298023224f, -0.20000000298023224f, 0.20000000298023224f, 0.10000000149011612f, 0.10000000149011612f, 0.20000000298023224f, 0.20000000298023224f}}, {2, {0.0f, 1.0f, 4.0f, 3.0f, 1.0f, 0.0f, 3.0f, 4.0f}}, {3, {32.0f, 32.0f}}},
421 // int -> BOOL8 map
422 .bool8Operands = {},
423 // int -> QUANT8_SYMM_PER_CHANNEL map
424 .quant8ChannelOperands = {},
425 // int -> QUANT16_ASYMM map
426 .quant16AsymmOperands = {},
427 // int -> QUANT8_SYMM map
428 .quant8SymmOperands = {},
429 },
430 //Output(s)
431 { // See tools/test_generator/include/TestHarness.h:MixedTyped
432 // int -> Dimensions map
433 .operandDimensions = {{0, {4}}, {1, {4, 4}}, {2, {4}}},
434 // int -> FLOAT32 map
435 .float32Operands = {},
436 // int -> INT32 map
437 .int32Operands = {{2, {0, 0, 0, 0}}},
438 // int -> QUANT8_ASYMM map
439 .quant8AsymmOperands = {},
440 // int -> QUANT16_SYMM map
441 .quant16SymmOperands = {},
442 // int -> FLOAT16 map
443 .float16Operands = {{0, {0.949999988079071f, 0.8999999761581421f, 0.8500000238418579f, 0.800000011920929f}}, {1, {4.378597259521484f, 2.7571942806243896f, 6.821402549743652f, 7.642805099487305f, 1.3512787818908691f, 0.18965816497802734f, 4.648721218109131f, 4.610342025756836f, 3.1903252601623535f, 1.2951626777648926f, 6.8096747398376465f, 3.104837417602539f, 1.981269121170044f, 3.1571943759918213f, 3.6187307834625244f, 8.042805671691895f}}},
444 // int -> BOOL8 map
445 .bool8Operands = {},
446 // int -> QUANT8_SYMM_PER_CHANNEL map
447 .quant8ChannelOperands = {},
448 // int -> QUANT16_ASYMM map
449 .quant16AsymmOperands = {},
450 // int -> QUANT8_SYMM map
451 .quant8SymmOperands = {},
452 }
453 },
454 }, // End of an example
455 };
456 return examples_nchw_float16;
457 };
458
get_examples_dynamic_output_shape_nhwc()459 std::vector<MixedTypedExample>& get_examples_dynamic_output_shape_nhwc() {
460 static std::vector<MixedTypedExample> examples_dynamic_output_shape_nhwc = {
461 // Begin of an example
462 {
463 .operands = {
464 //Input(s)
465 { // See tools/test_generator/include/TestHarness.h:MixedTyped
466 // int -> Dimensions map
467 .operandDimensions = {{0, {1, 2, 2, 2}}, {1, {1, 2, 2, 8}}, {2, {2, 4}}, {3, {1, 2}}},
468 // int -> FLOAT32 map
469 .float32Operands = {{0, {0.8f, 0.9f, 0.85f, 0.85f, 0.75f, 0.8f, 0.9f, 0.95f}}, {1, {0.5f, 0.1f, 0.1f, 0.1f, 0.5f, 0.1f, 0.5f, 0.1f, -0.25f, 0.1f, -0.1f, -0.1f, -0.25f, 0.1f, 0.2f, 0.1f, 0.4f, -0.1f, -0.2f, 0.2f, 0.4f, -0.1f, -0.2f, 0.2f, -0.2f, -0.2f, 0.2f, 0.2f, -0.2f, -0.2f, 0.2f, 0.2f}}, {2, {0.0f, 1.0f, 4.0f, 3.0f, 1.0f, 0.0f, 3.0f, 4.0f}}, {3, {32.0f, 32.0f}}},
470 // int -> INT32 map
471 .int32Operands = {},
472 // int -> QUANT8_ASYMM map
473 .quant8AsymmOperands = {},
474 // int -> QUANT16_SYMM map
475 .quant16SymmOperands = {},
476 // int -> FLOAT16 map
477 .float16Operands = {},
478 // int -> BOOL8 map
479 .bool8Operands = {},
480 // int -> QUANT8_SYMM_PER_CHANNEL map
481 .quant8ChannelOperands = {},
482 // int -> QUANT16_ASYMM map
483 .quant16AsymmOperands = {},
484 // int -> QUANT8_SYMM map
485 .quant8SymmOperands = {},
486 },
487 //Output(s)
488 { // See tools/test_generator/include/TestHarness.h:MixedTyped
489 // int -> Dimensions map
490 .operandDimensions = {{0, {4}}, {1, {4, 4}}, {2, {4}}},
491 // int -> FLOAT32 map
492 .float32Operands = {{0, {0.95f, 0.9f, 0.85f, 0.8f}}, {1, {4.3785973f, 2.7571943f, 6.8214025f, 7.642805f, 1.3512788f, 0.18965816f, 4.648721f, 4.610342f, 3.1903253f, 1.2951627f, 6.8096747f, 3.1048374f, 1.9812691f, 3.1571944f, 3.6187308f, 8.042806f}}},
493 // int -> INT32 map
494 .int32Operands = {{2, {0, 0, 0, 0}}},
495 // int -> QUANT8_ASYMM map
496 .quant8AsymmOperands = {},
497 // int -> QUANT16_SYMM map
498 .quant16SymmOperands = {},
499 // int -> FLOAT16 map
500 .float16Operands = {},
501 // int -> BOOL8 map
502 .bool8Operands = {},
503 // int -> QUANT8_SYMM_PER_CHANNEL map
504 .quant8ChannelOperands = {},
505 // int -> QUANT16_ASYMM map
506 .quant16AsymmOperands = {},
507 // int -> QUANT8_SYMM map
508 .quant8SymmOperands = {},
509 }
510 },
511 }, // End of an example
512 };
513 return examples_dynamic_output_shape_nhwc;
514 };
515
get_examples_dynamic_output_shape_nhwc_relaxed()516 std::vector<MixedTypedExample>& get_examples_dynamic_output_shape_nhwc_relaxed() {
517 static std::vector<MixedTypedExample> examples_dynamic_output_shape_nhwc_relaxed = {
518 // Begin of an example
519 {
520 .operands = {
521 //Input(s)
522 { // See tools/test_generator/include/TestHarness.h:MixedTyped
523 // int -> Dimensions map
524 .operandDimensions = {{0, {1, 2, 2, 2}}, {1, {1, 2, 2, 8}}, {2, {2, 4}}, {3, {1, 2}}},
525 // int -> FLOAT32 map
526 .float32Operands = {{0, {0.8f, 0.9f, 0.85f, 0.85f, 0.75f, 0.8f, 0.9f, 0.95f}}, {1, {0.5f, 0.1f, 0.1f, 0.1f, 0.5f, 0.1f, 0.5f, 0.1f, -0.25f, 0.1f, -0.1f, -0.1f, -0.25f, 0.1f, 0.2f, 0.1f, 0.4f, -0.1f, -0.2f, 0.2f, 0.4f, -0.1f, -0.2f, 0.2f, -0.2f, -0.2f, 0.2f, 0.2f, -0.2f, -0.2f, 0.2f, 0.2f}}, {2, {0.0f, 1.0f, 4.0f, 3.0f, 1.0f, 0.0f, 3.0f, 4.0f}}, {3, {32.0f, 32.0f}}},
527 // int -> INT32 map
528 .int32Operands = {},
529 // int -> QUANT8_ASYMM map
530 .quant8AsymmOperands = {},
531 // int -> QUANT16_SYMM map
532 .quant16SymmOperands = {},
533 // int -> FLOAT16 map
534 .float16Operands = {},
535 // int -> BOOL8 map
536 .bool8Operands = {},
537 // int -> QUANT8_SYMM_PER_CHANNEL map
538 .quant8ChannelOperands = {},
539 // int -> QUANT16_ASYMM map
540 .quant16AsymmOperands = {},
541 // int -> QUANT8_SYMM map
542 .quant8SymmOperands = {},
543 },
544 //Output(s)
545 { // See tools/test_generator/include/TestHarness.h:MixedTyped
546 // int -> Dimensions map
547 .operandDimensions = {{0, {4}}, {1, {4, 4}}, {2, {4}}},
548 // int -> FLOAT32 map
549 .float32Operands = {{0, {0.95f, 0.9f, 0.85f, 0.8f}}, {1, {4.3785973f, 2.7571943f, 6.8214025f, 7.642805f, 1.3512788f, 0.18965816f, 4.648721f, 4.610342f, 3.1903253f, 1.2951627f, 6.8096747f, 3.1048374f, 1.9812691f, 3.1571944f, 3.6187308f, 8.042806f}}},
550 // int -> INT32 map
551 .int32Operands = {{2, {0, 0, 0, 0}}},
552 // int -> QUANT8_ASYMM map
553 .quant8AsymmOperands = {},
554 // int -> QUANT16_SYMM map
555 .quant16SymmOperands = {},
556 // int -> FLOAT16 map
557 .float16Operands = {},
558 // int -> BOOL8 map
559 .bool8Operands = {},
560 // int -> QUANT8_SYMM_PER_CHANNEL map
561 .quant8ChannelOperands = {},
562 // int -> QUANT16_ASYMM map
563 .quant16AsymmOperands = {},
564 // int -> QUANT8_SYMM map
565 .quant8SymmOperands = {},
566 }
567 },
568 }, // End of an example
569 };
570 return examples_dynamic_output_shape_nhwc_relaxed;
571 };
572
get_examples_dynamic_output_shape_nhwc_quant8()573 std::vector<MixedTypedExample>& get_examples_dynamic_output_shape_nhwc_quant8() {
574 static std::vector<MixedTypedExample> examples_dynamic_output_shape_nhwc_quant8 = {
575 // Begin of an example
576 {
577 .operands = {
578 //Input(s)
579 { // See tools/test_generator/include/TestHarness.h:MixedTyped
580 // int -> Dimensions map
581 .operandDimensions = {{0, {1, 2, 2, 2}}, {1, {1, 2, 2, 8}}, {2, {2, 4}}, {3, {1, 2}}},
582 // int -> FLOAT32 map
583 .float32Operands = {},
584 // int -> INT32 map
585 .int32Operands = {},
586 // int -> QUANT8_ASYMM map
587 .quant8AsymmOperands = {{0, {180, 190, 185, 185, 175, 180, 190, 195}}, {1, {138, 130, 130, 130, 138, 130, 138, 130, 123, 130, 126, 126, 123, 130, 132, 130, 136, 126, 124, 132, 136, 126, 124, 132, 124, 124, 132, 132, 124, 124, 132, 132}}},
588 // int -> QUANT16_SYMM map
589 .quant16SymmOperands = {{2, {0, 8, 32, 24, 8, 0, 24, 32}}},
590 // int -> FLOAT16 map
591 .float16Operands = {},
592 // int -> BOOL8 map
593 .bool8Operands = {},
594 // int -> QUANT8_SYMM_PER_CHANNEL map
595 .quant8ChannelOperands = {},
596 // int -> QUANT16_ASYMM map
597 .quant16AsymmOperands = {{3, {256, 256}}},
598 // int -> QUANT8_SYMM map
599 .quant8SymmOperands = {},
600 },
601 //Output(s)
602 { // See tools/test_generator/include/TestHarness.h:MixedTyped
603 // int -> Dimensions map
604 .operandDimensions = {{0, {4}}, {1, {4, 4}}, {2, {4}}},
605 // int -> FLOAT32 map
606 .float32Operands = {},
607 // int -> INT32 map
608 .int32Operands = {{2, {0, 0, 0, 0}}},
609 // int -> QUANT8_ASYMM map
610 .quant8AsymmOperands = {{0, {195, 190, 185, 180}}},
611 // int -> QUANT16_SYMM map
612 .quant16SymmOperands = {},
613 // int -> FLOAT16 map
614 .float16Operands = {},
615 // int -> BOOL8 map
616 .bool8Operands = {},
617 // int -> QUANT8_SYMM_PER_CHANNEL map
618 .quant8ChannelOperands = {},
619 // int -> QUANT16_ASYMM map
620 .quant16AsymmOperands = {{1, {35, 22, 55, 61, 11, 2, 37, 37, 26, 10, 54, 25, 16, 25, 29, 64}}},
621 // int -> QUANT8_SYMM map
622 .quant8SymmOperands = {},
623 }
624 },
625 }, // End of an example
626 };
627 return examples_dynamic_output_shape_nhwc_quant8;
628 };
629
get_examples_dynamic_output_shape_nhwc_float16()630 std::vector<MixedTypedExample>& get_examples_dynamic_output_shape_nhwc_float16() {
631 static std::vector<MixedTypedExample> examples_dynamic_output_shape_nhwc_float16 = {
632 // Begin of an example
633 {
634 .operands = {
635 //Input(s)
636 { // See tools/test_generator/include/TestHarness.h:MixedTyped
637 // int -> Dimensions map
638 .operandDimensions = {{0, {1, 2, 2, 2}}, {1, {1, 2, 2, 8}}, {2, {2, 4}}, {3, {1, 2}}},
639 // int -> FLOAT32 map
640 .float32Operands = {},
641 // int -> INT32 map
642 .int32Operands = {},
643 // int -> QUANT8_ASYMM map
644 .quant8AsymmOperands = {},
645 // int -> QUANT16_SYMM map
646 .quant16SymmOperands = {},
647 // int -> FLOAT16 map
648 .float16Operands = {{0, {0.800000011920929f, 0.8999999761581421f, 0.8500000238418579f, 0.8500000238418579f, 0.75f, 0.800000011920929f, 0.8999999761581421f, 0.949999988079071f}}, {1, {0.5f, 0.10000000149011612f, 0.10000000149011612f, 0.10000000149011612f, 0.5f, 0.10000000149011612f, 0.5f, 0.10000000149011612f, -0.25f, 0.10000000149011612f, -0.10000000149011612f, -0.10000000149011612f, -0.25f, 0.10000000149011612f, 0.20000000298023224f, 0.10000000149011612f, 0.4000000059604645f, -0.10000000149011612f, -0.20000000298023224f, 0.20000000298023224f, 0.4000000059604645f, -0.10000000149011612f, -0.20000000298023224f, 0.20000000298023224f, -0.20000000298023224f, -0.20000000298023224f, 0.20000000298023224f, 0.20000000298023224f, -0.20000000298023224f, -0.20000000298023224f, 0.20000000298023224f, 0.20000000298023224f}}, {2, {0.0f, 1.0f, 4.0f, 3.0f, 1.0f, 0.0f, 3.0f, 4.0f}}, {3, {32.0f, 32.0f}}},
649 // int -> BOOL8 map
650 .bool8Operands = {},
651 // int -> QUANT8_SYMM_PER_CHANNEL map
652 .quant8ChannelOperands = {},
653 // int -> QUANT16_ASYMM map
654 .quant16AsymmOperands = {},
655 // int -> QUANT8_SYMM map
656 .quant8SymmOperands = {},
657 },
658 //Output(s)
659 { // See tools/test_generator/include/TestHarness.h:MixedTyped
660 // int -> Dimensions map
661 .operandDimensions = {{0, {4}}, {1, {4, 4}}, {2, {4}}},
662 // int -> FLOAT32 map
663 .float32Operands = {},
664 // int -> INT32 map
665 .int32Operands = {{2, {0, 0, 0, 0}}},
666 // int -> QUANT8_ASYMM map
667 .quant8AsymmOperands = {},
668 // int -> QUANT16_SYMM map
669 .quant16SymmOperands = {},
670 // int -> FLOAT16 map
671 .float16Operands = {{0, {0.949999988079071f, 0.8999999761581421f, 0.8500000238418579f, 0.800000011920929f}}, {1, {4.378597259521484f, 2.7571942806243896f, 6.821402549743652f, 7.642805099487305f, 1.3512787818908691f, 0.18965816497802734f, 4.648721218109131f, 4.610342025756836f, 3.1903252601623535f, 1.2951626777648926f, 6.8096747398376465f, 3.104837417602539f, 1.981269121170044f, 3.1571943759918213f, 3.6187307834625244f, 8.042805671691895f}}},
672 // int -> BOOL8 map
673 .bool8Operands = {},
674 // int -> QUANT8_SYMM_PER_CHANNEL map
675 .quant8ChannelOperands = {},
676 // int -> QUANT16_ASYMM map
677 .quant16AsymmOperands = {},
678 // int -> QUANT8_SYMM map
679 .quant8SymmOperands = {},
680 }
681 },
682 }, // End of an example
683 };
684 return examples_dynamic_output_shape_nhwc_float16;
685 };
686
get_examples_dynamic_output_shape_nchw()687 std::vector<MixedTypedExample>& get_examples_dynamic_output_shape_nchw() {
688 static std::vector<MixedTypedExample> examples_dynamic_output_shape_nchw = {
689 // Begin of an example
690 {
691 .operands = {
692 //Input(s)
693 { // See tools/test_generator/include/TestHarness.h:MixedTyped
694 // int -> Dimensions map
695 .operandDimensions = {{0, {1, 2, 2, 2}}, {1, {1, 8, 2, 2}}, {2, {2, 4}}, {3, {1, 2}}},
696 // int -> FLOAT32 map
697 .float32Operands = {{0, {0.8f, 0.85f, 0.75f, 0.9f, 0.9f, 0.85f, 0.8f, 0.95f}}, {1, {0.5f, -0.25f, 0.4f, -0.2f, 0.1f, 0.1f, -0.1f, -0.2f, 0.1f, -0.1f, -0.2f, 0.2f, 0.1f, -0.1f, 0.2f, 0.2f, 0.5f, -0.25f, 0.4f, -0.2f, 0.1f, 0.1f, -0.1f, -0.2f, 0.5f, 0.2f, -0.2f, 0.2f, 0.1f, 0.1f, 0.2f, 0.2f}}, {2, {0.0f, 1.0f, 4.0f, 3.0f, 1.0f, 0.0f, 3.0f, 4.0f}}, {3, {32.0f, 32.0f}}},
698 // int -> INT32 map
699 .int32Operands = {},
700 // int -> QUANT8_ASYMM map
701 .quant8AsymmOperands = {},
702 // int -> QUANT16_SYMM map
703 .quant16SymmOperands = {},
704 // int -> FLOAT16 map
705 .float16Operands = {},
706 // int -> BOOL8 map
707 .bool8Operands = {},
708 // int -> QUANT8_SYMM_PER_CHANNEL map
709 .quant8ChannelOperands = {},
710 // int -> QUANT16_ASYMM map
711 .quant16AsymmOperands = {},
712 // int -> QUANT8_SYMM map
713 .quant8SymmOperands = {},
714 },
715 //Output(s)
716 { // See tools/test_generator/include/TestHarness.h:MixedTyped
717 // int -> Dimensions map
718 .operandDimensions = {{0, {4}}, {1, {4, 4}}, {2, {4}}},
719 // int -> FLOAT32 map
720 .float32Operands = {{0, {0.95f, 0.9f, 0.85f, 0.8f}}, {1, {4.3785973f, 2.7571943f, 6.8214025f, 7.642805f, 1.3512788f, 0.18965816f, 4.648721f, 4.610342f, 3.1903253f, 1.2951627f, 6.8096747f, 3.1048374f, 1.9812691f, 3.1571944f, 3.6187308f, 8.042806f}}},
721 // int -> INT32 map
722 .int32Operands = {{2, {0, 0, 0, 0}}},
723 // int -> QUANT8_ASYMM map
724 .quant8AsymmOperands = {},
725 // int -> QUANT16_SYMM map
726 .quant16SymmOperands = {},
727 // int -> FLOAT16 map
728 .float16Operands = {},
729 // int -> BOOL8 map
730 .bool8Operands = {},
731 // int -> QUANT8_SYMM_PER_CHANNEL map
732 .quant8ChannelOperands = {},
733 // int -> QUANT16_ASYMM map
734 .quant16AsymmOperands = {},
735 // int -> QUANT8_SYMM map
736 .quant8SymmOperands = {},
737 }
738 },
739 }, // End of an example
740 };
741 return examples_dynamic_output_shape_nchw;
742 };
743
get_examples_dynamic_output_shape_nchw_relaxed()744 std::vector<MixedTypedExample>& get_examples_dynamic_output_shape_nchw_relaxed() {
745 static std::vector<MixedTypedExample> examples_dynamic_output_shape_nchw_relaxed = {
746 // Begin of an example
747 {
748 .operands = {
749 //Input(s)
750 { // See tools/test_generator/include/TestHarness.h:MixedTyped
751 // int -> Dimensions map
752 .operandDimensions = {{0, {1, 2, 2, 2}}, {1, {1, 8, 2, 2}}, {2, {2, 4}}, {3, {1, 2}}},
753 // int -> FLOAT32 map
754 .float32Operands = {{0, {0.8f, 0.85f, 0.75f, 0.9f, 0.9f, 0.85f, 0.8f, 0.95f}}, {1, {0.5f, -0.25f, 0.4f, -0.2f, 0.1f, 0.1f, -0.1f, -0.2f, 0.1f, -0.1f, -0.2f, 0.2f, 0.1f, -0.1f, 0.2f, 0.2f, 0.5f, -0.25f, 0.4f, -0.2f, 0.1f, 0.1f, -0.1f, -0.2f, 0.5f, 0.2f, -0.2f, 0.2f, 0.1f, 0.1f, 0.2f, 0.2f}}, {2, {0.0f, 1.0f, 4.0f, 3.0f, 1.0f, 0.0f, 3.0f, 4.0f}}, {3, {32.0f, 32.0f}}},
755 // int -> INT32 map
756 .int32Operands = {},
757 // int -> QUANT8_ASYMM map
758 .quant8AsymmOperands = {},
759 // int -> QUANT16_SYMM map
760 .quant16SymmOperands = {},
761 // int -> FLOAT16 map
762 .float16Operands = {},
763 // int -> BOOL8 map
764 .bool8Operands = {},
765 // int -> QUANT8_SYMM_PER_CHANNEL map
766 .quant8ChannelOperands = {},
767 // int -> QUANT16_ASYMM map
768 .quant16AsymmOperands = {},
769 // int -> QUANT8_SYMM map
770 .quant8SymmOperands = {},
771 },
772 //Output(s)
773 { // See tools/test_generator/include/TestHarness.h:MixedTyped
774 // int -> Dimensions map
775 .operandDimensions = {{0, {4}}, {1, {4, 4}}, {2, {4}}},
776 // int -> FLOAT32 map
777 .float32Operands = {{0, {0.95f, 0.9f, 0.85f, 0.8f}}, {1, {4.3785973f, 2.7571943f, 6.8214025f, 7.642805f, 1.3512788f, 0.18965816f, 4.648721f, 4.610342f, 3.1903253f, 1.2951627f, 6.8096747f, 3.1048374f, 1.9812691f, 3.1571944f, 3.6187308f, 8.042806f}}},
778 // int -> INT32 map
779 .int32Operands = {{2, {0, 0, 0, 0}}},
780 // int -> QUANT8_ASYMM map
781 .quant8AsymmOperands = {},
782 // int -> QUANT16_SYMM map
783 .quant16SymmOperands = {},
784 // int -> FLOAT16 map
785 .float16Operands = {},
786 // int -> BOOL8 map
787 .bool8Operands = {},
788 // int -> QUANT8_SYMM_PER_CHANNEL map
789 .quant8ChannelOperands = {},
790 // int -> QUANT16_ASYMM map
791 .quant16AsymmOperands = {},
792 // int -> QUANT8_SYMM map
793 .quant8SymmOperands = {},
794 }
795 },
796 }, // End of an example
797 };
798 return examples_dynamic_output_shape_nchw_relaxed;
799 };
800
get_examples_dynamic_output_shape_nchw_quant8()801 std::vector<MixedTypedExample>& get_examples_dynamic_output_shape_nchw_quant8() {
802 static std::vector<MixedTypedExample> examples_dynamic_output_shape_nchw_quant8 = {
803 // Begin of an example
804 {
805 .operands = {
806 //Input(s)
807 { // See tools/test_generator/include/TestHarness.h:MixedTyped
808 // int -> Dimensions map
809 .operandDimensions = {{0, {1, 2, 2, 2}}, {1, {1, 8, 2, 2}}, {2, {2, 4}}, {3, {1, 2}}},
810 // int -> FLOAT32 map
811 .float32Operands = {},
812 // int -> INT32 map
813 .int32Operands = {},
814 // int -> QUANT8_ASYMM map
815 .quant8AsymmOperands = {{0, {180, 185, 175, 190, 190, 185, 180, 195}}, {1, {138, 123, 136, 124, 130, 130, 126, 124, 130, 126, 124, 132, 130, 126, 132, 132, 138, 123, 136, 124, 130, 130, 126, 124, 138, 132, 124, 132, 130, 130, 132, 132}}},
816 // int -> QUANT16_SYMM map
817 .quant16SymmOperands = {{2, {0, 8, 32, 24, 8, 0, 24, 32}}},
818 // int -> FLOAT16 map
819 .float16Operands = {},
820 // int -> BOOL8 map
821 .bool8Operands = {},
822 // int -> QUANT8_SYMM_PER_CHANNEL map
823 .quant8ChannelOperands = {},
824 // int -> QUANT16_ASYMM map
825 .quant16AsymmOperands = {{3, {256, 256}}},
826 // int -> QUANT8_SYMM map
827 .quant8SymmOperands = {},
828 },
829 //Output(s)
830 { // See tools/test_generator/include/TestHarness.h:MixedTyped
831 // int -> Dimensions map
832 .operandDimensions = {{0, {4}}, {1, {4, 4}}, {2, {4}}},
833 // int -> FLOAT32 map
834 .float32Operands = {},
835 // int -> INT32 map
836 .int32Operands = {{2, {0, 0, 0, 0}}},
837 // int -> QUANT8_ASYMM map
838 .quant8AsymmOperands = {{0, {195, 190, 185, 180}}},
839 // int -> QUANT16_SYMM map
840 .quant16SymmOperands = {},
841 // int -> FLOAT16 map
842 .float16Operands = {},
843 // int -> BOOL8 map
844 .bool8Operands = {},
845 // int -> QUANT8_SYMM_PER_CHANNEL map
846 .quant8ChannelOperands = {},
847 // int -> QUANT16_ASYMM map
848 .quant16AsymmOperands = {{1, {35, 22, 55, 61, 11, 2, 37, 37, 26, 10, 54, 25, 16, 25, 29, 64}}},
849 // int -> QUANT8_SYMM map
850 .quant8SymmOperands = {},
851 }
852 },
853 }, // End of an example
854 };
855 return examples_dynamic_output_shape_nchw_quant8;
856 };
857
get_examples_dynamic_output_shape_nchw_float16()858 std::vector<MixedTypedExample>& get_examples_dynamic_output_shape_nchw_float16() {
859 static std::vector<MixedTypedExample> examples_dynamic_output_shape_nchw_float16 = {
860 // Begin of an example
861 {
862 .operands = {
863 //Input(s)
864 { // See tools/test_generator/include/TestHarness.h:MixedTyped
865 // int -> Dimensions map
866 .operandDimensions = {{0, {1, 2, 2, 2}}, {1, {1, 8, 2, 2}}, {2, {2, 4}}, {3, {1, 2}}},
867 // int -> FLOAT32 map
868 .float32Operands = {},
869 // int -> INT32 map
870 .int32Operands = {},
871 // int -> QUANT8_ASYMM map
872 .quant8AsymmOperands = {},
873 // int -> QUANT16_SYMM map
874 .quant16SymmOperands = {},
875 // int -> FLOAT16 map
876 .float16Operands = {{0, {0.800000011920929f, 0.8500000238418579f, 0.75f, 0.8999999761581421f, 0.8999999761581421f, 0.8500000238418579f, 0.800000011920929f, 0.949999988079071f}}, {1, {0.5f, -0.25f, 0.4000000059604645f, -0.20000000298023224f, 0.10000000149011612f, 0.10000000149011612f, -0.10000000149011612f, -0.20000000298023224f, 0.10000000149011612f, -0.10000000149011612f, -0.20000000298023224f, 0.20000000298023224f, 0.10000000149011612f, -0.10000000149011612f, 0.20000000298023224f, 0.20000000298023224f, 0.5f, -0.25f, 0.4000000059604645f, -0.20000000298023224f, 0.10000000149011612f, 0.10000000149011612f, -0.10000000149011612f, -0.20000000298023224f, 0.5f, 0.20000000298023224f, -0.20000000298023224f, 0.20000000298023224f, 0.10000000149011612f, 0.10000000149011612f, 0.20000000298023224f, 0.20000000298023224f}}, {2, {0.0f, 1.0f, 4.0f, 3.0f, 1.0f, 0.0f, 3.0f, 4.0f}}, {3, {32.0f, 32.0f}}},
877 // int -> BOOL8 map
878 .bool8Operands = {},
879 // int -> QUANT8_SYMM_PER_CHANNEL map
880 .quant8ChannelOperands = {},
881 // int -> QUANT16_ASYMM map
882 .quant16AsymmOperands = {},
883 // int -> QUANT8_SYMM map
884 .quant8SymmOperands = {},
885 },
886 //Output(s)
887 { // See tools/test_generator/include/TestHarness.h:MixedTyped
888 // int -> Dimensions map
889 .operandDimensions = {{0, {4}}, {1, {4, 4}}, {2, {4}}},
890 // int -> FLOAT32 map
891 .float32Operands = {},
892 // int -> INT32 map
893 .int32Operands = {{2, {0, 0, 0, 0}}},
894 // int -> QUANT8_ASYMM map
895 .quant8AsymmOperands = {},
896 // int -> QUANT16_SYMM map
897 .quant16SymmOperands = {},
898 // int -> FLOAT16 map
899 .float16Operands = {{0, {0.949999988079071f, 0.8999999761581421f, 0.8500000238418579f, 0.800000011920929f}}, {1, {4.378597259521484f, 2.7571942806243896f, 6.821402549743652f, 7.642805099487305f, 1.3512787818908691f, 0.18965816497802734f, 4.648721218109131f, 4.610342025756836f, 3.1903252601623535f, 1.2951626777648926f, 6.8096747398376465f, 3.104837417602539f, 1.981269121170044f, 3.1571943759918213f, 3.6187307834625244f, 8.042805671691895f}}},
900 // int -> BOOL8 map
901 .bool8Operands = {},
902 // int -> QUANT8_SYMM_PER_CHANNEL map
903 .quant8ChannelOperands = {},
904 // int -> QUANT16_ASYMM map
905 .quant16AsymmOperands = {},
906 // int -> QUANT8_SYMM map
907 .quant8SymmOperands = {},
908 }
909 },
910 }, // End of an example
911 };
912 return examples_dynamic_output_shape_nchw_float16;
913 };
914
get_examples_nhwc_2()915 std::vector<MixedTypedExample>& get_examples_nhwc_2() {
916 static std::vector<MixedTypedExample> examples_nhwc_2 = {
917 // Begin of an example
918 {
919 .operands = {
920 //Input(s)
921 { // See tools/test_generator/include/TestHarness.h:MixedTyped
922 // int -> Dimensions map
923 .operandDimensions = {{0, {2, 4, 4, 4}}, {1, {2, 4, 4, 16}}, {2, {4, 4}}, {3, {2, 2}}},
924 // int -> FLOAT32 map
925 .float32Operands = {{0, {0.885f, 0.21f, 0.78f, 0.57f, 0.795f, 0.66f, 0.915f, 0.615f, 0.27f, 0.69f, 0.645f, 0.945f, 0.465f, 0.345f, 0.855f, 0.555f, 0.48f, 0.6f, 0.735f, 0.63f, 0.495f, 0.03f, 0.12f, 0.225f, 0.24f, 0.285f, 0.51f, 0.315f, 0.435f, 0.255f, 0.585f, 0.06f, 0.9f, 0.75f, 0.18f, 0.45f, 0.36f, 0.09f, 0.405f, 0.15f, 0.0f, 0.195f, 0.075f, 0.81f, 0.87f, 0.93f, 0.39f, 0.165f, 0.825f, 0.525f, 0.765f, 0.105f, 0.54f, 0.705f, 0.675f, 0.3f, 0.42f, 0.045f, 0.33f, 0.015f, 0.84f, 0.135f, 0.72f, 0.375f, 0.495f, 0.315f, 0.195f, 0.24f, 0.21f, 0.54f, 0.78f, 0.72f, 0.045f, 0.93f, 0.27f, 0.735f, 0.135f, 0.09f, 0.81f, 0.705f, 0.39f, 0.885f, 0.42f, 0.945f, 0.9f, 0.225f, 0.75f, 0.3f, 0.375f, 0.63f, 0.825f, 0.675f, 0.015f, 0.48f, 0.645f, 0.615f, 0.33f, 0.465f, 0.66f, 0.6f, 0.075f, 0.84f, 0.285f, 0.57f, 0.585f, 0.165f, 0.06f, 0.36f, 0.795f, 0.855f, 0.105f, 0.45f, 0.0f, 0.87f, 0.525f, 0.255f, 0.69f, 0.555f, 0.15f, 0.345f, 0.03f, 0.915f, 0.405f, 0.435f, 0.765f, 0.12f, 0.51f, 0.18f}}, {1, {-1.9f, 0.4f, 1.4f, 0.5f, -1.5f, -0.2f, 0.3f, 1.2f, 0.0f, -0.6f, 0.4f, -1.3f, 0.8f, 0.9f, -0.2f, 0.8f, -0.2f, 0.0f, 0.4f, 0.1f, -0.2f, -1.6f, -0.6f, -0.1f, -1.0f, 0.6f, 0.5f, -0.2f, -1.7f, -1.4f, 0.5f, -0.1f, -1.5f, 1.3f, -0.7f, -0.9f, 0.9f, 0.2f, -0.2f, 0.0f, -0.7f, 0.3f, -0.4f, -0.3f, -0.5f, -0.3f, 1.0f, -0.7f, 1.2f, -0.3f, 0.0f, 0.3f, -0.7f, 1.0f, -0.2f, -0.6f, -1.3f, 0.0f, 0.3f, 0.1f, 0.4f, 0.2f, 2.4f, 0.0f, 0.1f, 0.0f, 0.7f, -0.9f, 0.1f, -0.4f, 0.3f, -0.3f, -0.7f, 0.1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-0.3f, -0.8f, 0.7f, -0.9f, -0.3f, -0.3f, -2.8f, 1.0f, 1.4f, 0.0f, -2.6f, 1.1f, -1.1f, 0.5f, 0.1f, -0.4f, -1.5f, 0.0f, 0.3f, -0.3f, -0.2f, 0.7f, -0.8f, -0.1f, 0.5f, 0.7f, 1.4f, -1.2f, -1.0f, -0.6f, 0.2f, 1.1f, -0.9f, 0.7f, -0.4f, 0.0f, 0.0f, -0.2f, -0.2f, 0.1f, 0.0f, 0.0f, -0.7f, -0.7f, -1.4f, -0.9f, -0.5f, -0.6f, 0.4f, 0.3f, 0.0f, 0.9f, -0.2f, 0.7f, 1.2f, 0.5f, 0.8f, -0.5f, 1.0f, 0.2f, -0.5f, 1.3f, -0.5f, 0.3f, 1.2f, -0.3f, -0.1f, 1.3f, 0.2f, 0.6f, -1.4f, -0.1f, -0.2f, -0.4f, -0.9f, 1.2f, -0.9f, -0.2f, -1.2f, -1.0f, -0.2f, -1.6f, 2.1f, -0.6f, -0.2f, -0.3f, 0.5f, 0.9f, -0.4f, 0.0f, -0.1f, 0.1f, -0.6f, -1.0f, -0.7f, 0.2f, -0.2f}}, {2, {0.0f, 6.0f, 16.0f, 10.0f, 6.0f, 0.0f, 10.0f, 16.0f, 3.0f, 5.0f, 13.0f, 11.0f, 5.0f, 3.0f, 11.0f, 13.0f}}, {3, {64.0f, 64.0f, 32.0f, 32.0f}}},
926 // int -> INT32 map
927 .int32Operands = {},
928 // int -> QUANT8_ASYMM map
929 .quant8AsymmOperands = {},
930 // int -> QUANT16_SYMM map
931 .quant16SymmOperands = {},
932 // int -> FLOAT16 map
933 .float16Operands = {},
934 // int -> BOOL8 map
935 .bool8Operands = {},
936 // int -> QUANT8_SYMM_PER_CHANNEL map
937 .quant8ChannelOperands = {},
938 // int -> QUANT16_ASYMM map
939 .quant16AsymmOperands = {},
940 // int -> QUANT8_SYMM map
941 .quant8SymmOperands = {},
942 },
943 //Output(s)
944 { // See tools/test_generator/include/TestHarness.h:MixedTyped
945 // int -> Dimensions map
946 .operandDimensions = {{0, {30}}, {1, {30, 4}}, {2, {30}}},
947 // int -> FLOAT32 map
948 .float32Operands = {{0, {0.945f, 0.93f, 0.915f, 0.9f, 0.87f, 0.84f, 0.81f, 0.795f, 0.78f, 0.765f, 0.75f, 0.735f, 0.72f, 0.705f, 0.69f, 0.675f, 0.945f, 0.915f, 0.9f, 0.885f, 0.87f, 0.84f, 0.81f, 0.78f, 0.735f, 0.72f, 0.63f, 0.6f, 0.585f, 0.54f}}, {1, {16.845154f, 2.5170734f, 33.154846f, 7.4829264f, 32.96344f, 40.747444f, 43.836563f, 47.252556f, 0.0f, 9.143808f, 16.243607f, 14.056192f, 0.0f, 25.789658f, 25.710022f, 30.210342f, 37.947445f, 20.791668f, 44.452557f, 32.80833f, 30.277609f, 32.21635f, 32.92239f, 38.18365f, 25.885489f, 29.086582f, 31.314512f, 30.913418f, 2.8654022f, 5.789658f, 26.734598f, 10.210342f, 0.5408764f, 3.5824041f, 15.459124f, 5.217595f, 10.753355f, 35.982403f, 15.246645f, 37.617596f, 1.4593601f, 23.050154f, 4.1406403f, 36.149845f, 0.0f, 15.6f, 11.068764f, 21.6f, 38.54088f, 35.28549f, 53.45912f, 40.71451f, 26.134256f, 48.358635f, 27.465742f, 64.0f, 29.96254f, 3.1999998f, 33.23746f, 19.2f, 11.653517f, 43.980293f, 48.34648f, 46.41971f, 0.0f, 26.967152f, 26.748941f, 31.032848f, 28.590324f, 9.050154f, 32.0f, 22.149847f, 17.828777f, 19.00683f, 32.0f, 20.99317f, 3.5724945f, 7.273454f, 11.627505f, 19.126545f, 4.989658f, 26.8f, 9.410341f, 32.0f, 15.157195f, 18.00537f, 20.042807f, 25.194632f, 30.889404f, 9.652013f, 32.0f, 12.347987f, 3.399414f, 3.8000002f, 32.0f, 9.8f, 24.980408f, 10.086582f, 28.61959f, 11.913418f, 13.950423f, 3.884349f, 22.049576f, 6.115651f, 24.259361f, 6.8f, 26.94064f, 22.8f, 3.6538367f, 19.475813f, 13.546164f, 28.524187f, 11.947443f, 29.318363f, 18.452557f, 32.0f, 17.318363f, 0.0f, 20.281635f, 16.17695f}}},
949 // int -> INT32 map
950 .int32Operands = {{2, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}}},
951 // int -> QUANT8_ASYMM map
952 .quant8AsymmOperands = {},
953 // int -> QUANT16_SYMM map
954 .quant16SymmOperands = {},
955 // int -> FLOAT16 map
956 .float16Operands = {},
957 // int -> BOOL8 map
958 .bool8Operands = {},
959 // int -> QUANT8_SYMM_PER_CHANNEL map
960 .quant8ChannelOperands = {},
961 // int -> QUANT16_ASYMM map
962 .quant16AsymmOperands = {},
963 // int -> QUANT8_SYMM map
964 .quant8SymmOperands = {},
965 }
966 },
967 }, // End of an example
968 };
969 return examples_nhwc_2;
970 };
971
get_examples_nhwc_relaxed_2()972 std::vector<MixedTypedExample>& get_examples_nhwc_relaxed_2() {
973 static std::vector<MixedTypedExample> examples_nhwc_relaxed_2 = {
974 // Begin of an example
975 {
976 .operands = {
977 //Input(s)
978 { // See tools/test_generator/include/TestHarness.h:MixedTyped
979 // int -> Dimensions map
980 .operandDimensions = {{0, {2, 4, 4, 4}}, {1, {2, 4, 4, 16}}, {2, {4, 4}}, {3, {2, 2}}},
981 // int -> FLOAT32 map
982 .float32Operands = {{0, {0.885f, 0.21f, 0.78f, 0.57f, 0.795f, 0.66f, 0.915f, 0.615f, 0.27f, 0.69f, 0.645f, 0.945f, 0.465f, 0.345f, 0.855f, 0.555f, 0.48f, 0.6f, 0.735f, 0.63f, 0.495f, 0.03f, 0.12f, 0.225f, 0.24f, 0.285f, 0.51f, 0.315f, 0.435f, 0.255f, 0.585f, 0.06f, 0.9f, 0.75f, 0.18f, 0.45f, 0.36f, 0.09f, 0.405f, 0.15f, 0.0f, 0.195f, 0.075f, 0.81f, 0.87f, 0.93f, 0.39f, 0.165f, 0.825f, 0.525f, 0.765f, 0.105f, 0.54f, 0.705f, 0.675f, 0.3f, 0.42f, 0.045f, 0.33f, 0.015f, 0.84f, 0.135f, 0.72f, 0.375f, 0.495f, 0.315f, 0.195f, 0.24f, 0.21f, 0.54f, 0.78f, 0.72f, 0.045f, 0.93f, 0.27f, 0.735f, 0.135f, 0.09f, 0.81f, 0.705f, 0.39f, 0.885f, 0.42f, 0.945f, 0.9f, 0.225f, 0.75f, 0.3f, 0.375f, 0.63f, 0.825f, 0.675f, 0.015f, 0.48f, 0.645f, 0.615f, 0.33f, 0.465f, 0.66f, 0.6f, 0.075f, 0.84f, 0.285f, 0.57f, 0.585f, 0.165f, 0.06f, 0.36f, 0.795f, 0.855f, 0.105f, 0.45f, 0.0f, 0.87f, 0.525f, 0.255f, 0.69f, 0.555f, 0.15f, 0.345f, 0.03f, 0.915f, 0.405f, 0.435f, 0.765f, 0.12f, 0.51f, 0.18f}}, {1, {-1.9f, 0.4f, 1.4f, 0.5f, -1.5f, -0.2f, 0.3f, 1.2f, 0.0f, -0.6f, 0.4f, -1.3f, 0.8f, 0.9f, -0.2f, 0.8f, -0.2f, 0.0f, 0.4f, 0.1f, -0.2f, -1.6f, -0.6f, -0.1f, -1.0f, 0.6f, 0.5f, -0.2f, -1.7f, -1.4f, 0.5f, -0.1f, -1.5f, 1.3f, -0.7f, -0.9f, 0.9f, 0.2f, -0.2f, 0.0f, -0.7f, 0.3f, -0.4f, -0.3f, -0.5f, -0.3f, 1.0f, -0.7f, 1.2f, -0.3f, 0.0f, 0.3f, -0.7f, 1.0f, -0.2f, -0.6f, -1.3f, 0.0f, 0.3f, 0.1f, 0.4f, 0.2f, 2.4f, 0.0f, 0.1f, 0.0f, 0.7f, -0.9f, 0.1f, -0.4f, 0.3f, -0.3f, -0.7f, 0.1f, 0.7f, 0.0f, -0.3f, 1.6f, 0.0f, 1.1f, 0.4f, -0.7f, -0.9f, 0.0f, 0.0f, 0.4f, -0.6f, 0.4f, -1.9f, -1.2f, 0.0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 0.0f, 0.3f, -0.3f, -0.2f, 0.7f, -0.8f, -0.1f, 0.5f, 0.7f, 1.4f, -1.2f, -1.0f, -0.6f, 0.2f, 1.1f, -0.9f, 0.7f, -0.4f, 0.0f, 0.0f, -0.2f, -0.2f, 0.1f, 0.0f, 0.0f, -0.7f, -0.7f, -1.4f, -0.9f, -0.5f, -0.6f, 0.4f, 0.3f, 0.0f, 0.9f, -0.2f, 0.7f, 1.2f, 0.5f, 0.8f, -0.5f, 1.0f, 0.2f, -0.5f, 1.3f, -0.5f, 0.3f, 1.2f, -0.3f, -0.1f, 1.3f, 0.2f, 0.6f, -1.4f, -0.1f, -0.2f, -0.4f, -0.9f, 1.2f, -0.9f, -0.2f, -1.2f, -1.0f, -0.2f, -1.6f, 2.1f, -0.6f, -0.2f, -0.3f, 0.5f, 0.9f, -0.4f, 0.0f, -0.1f, 0.1f, -0.6f, -1.0f, -0.7f, 0.2f, -0.2f}}, {2, {0.0f, 6.0f, 16.0f, 10.0f, 6.0f, 0.0f, 10.0f, 16.0f, 3.0f, 5.0f, 13.0f, 11.0f, 5.0f, 3.0f, 11.0f, 13.0f}}, {3, {64.0f, 64.0f, 32.0f, 32.0f}}},
983 // int -> INT32 map
984 .int32Operands = {},
985 // int -> QUANT8_ASYMM map
986 .quant8AsymmOperands = {},
987 // int -> QUANT16_SYMM map
988 .quant16SymmOperands = {},
989 // int -> FLOAT16 map
990 .float16Operands = {},
991 // int -> BOOL8 map
992 .bool8Operands = {},
993 // int -> QUANT8_SYMM_PER_CHANNEL map
994 .quant8ChannelOperands = {},
995 // int -> QUANT16_ASYMM map
996 .quant16AsymmOperands = {},
997 // int -> QUANT8_SYMM map
998 .quant8SymmOperands = {},
999 },
1000 //Output(s)
1001 { // See tools/test_generator/include/TestHarness.h:MixedTyped
1002 // int -> Dimensions map
1003 .operandDimensions = {{0, {30}}, {1, {30, 4}}, {2, {30}}},
1004 // int -> FLOAT32 map
1005 .float32Operands = {{0, {0.945f, 0.93f, 0.915f, 0.9f, 0.87f, 0.84f, 0.81f, 0.795f, 0.78f, 0.765f, 0.75f, 0.735f, 0.72f, 0.705f, 0.69f, 0.675f, 0.945f, 0.915f, 0.9f, 0.885f, 0.87f, 0.84f, 0.81f, 0.78f, 0.735f, 0.72f, 0.63f, 0.6f, 0.585f, 0.54f}}, {1, {16.845154f, 2.5170734f, 33.154846f, 7.4829264f, 32.96344f, 40.747444f, 43.836563f, 47.252556f, 0.0f, 9.143808f, 16.243607f, 14.056192f, 0.0f, 25.789658f, 25.710022f, 30.210342f, 37.947445f, 20.791668f, 44.452557f, 32.80833f, 30.277609f, 32.21635f, 32.92239f, 38.18365f, 25.885489f, 29.086582f, 31.314512f, 30.913418f, 2.8654022f, 5.789658f, 26.734598f, 10.210342f, 0.5408764f, 3.5824041f, 15.459124f, 5.217595f, 10.753355f, 35.982403f, 15.246645f, 37.617596f, 1.4593601f, 23.050154f, 4.1406403f, 36.149845f, 0.0f, 15.6f, 11.068764f, 21.6f, 38.54088f, 35.28549f, 53.45912f, 40.71451f, 26.134256f, 48.358635f, 27.465742f, 64.0f, 29.96254f, 3.1999998f, 33.23746f, 19.2f, 11.653517f, 43.980293f, 48.34648f, 46.41971f, 0.0f, 26.967152f, 26.748941f, 31.032848f, 28.590324f, 9.050154f, 32.0f, 22.149847f, 17.828777f, 19.00683f, 32.0f, 20.99317f, 3.5724945f, 7.273454f, 11.627505f, 19.126545f, 4.989658f, 26.8f, 9.410341f, 32.0f, 15.157195f, 18.00537f, 20.042807f, 25.194632f, 30.889404f, 9.652013f, 32.0f, 12.347987f, 3.399414f, 3.8000002f, 32.0f, 9.8f, 24.980408f, 10.086582f, 28.61959f, 11.913418f, 13.950423f, 3.884349f, 22.049576f, 6.115651f, 24.259361f, 6.8f, 26.94064f, 22.8f, 3.6538367f, 19.475813f, 13.546164f, 28.524187f, 11.947443f, 29.318363f, 18.452557f, 32.0f, 17.318363f, 0.0f, 20.281635f, 16.17695f}}},
1006 // int -> INT32 map
1007 .int32Operands = {{2, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}}},
1008 // int -> QUANT8_ASYMM map
1009 .quant8AsymmOperands = {},
1010 // int -> QUANT16_SYMM map
1011 .quant16SymmOperands = {},
1012 // int -> FLOAT16 map
1013 .float16Operands = {},
1014 // int -> BOOL8 map
1015 .bool8Operands = {},
1016 // int -> QUANT8_SYMM_PER_CHANNEL map
1017 .quant8ChannelOperands = {},
1018 // int -> QUANT16_ASYMM map
1019 .quant16AsymmOperands = {},
1020 // int -> QUANT8_SYMM map
1021 .quant8SymmOperands = {},
1022 }
1023 },
1024 }, // End of an example
1025 };
1026 return examples_nhwc_relaxed_2;
1027 };
1028
get_examples_nhwc_quant8_2()1029 std::vector<MixedTypedExample>& get_examples_nhwc_quant8_2() {
1030 static std::vector<MixedTypedExample> examples_nhwc_quant8_2 = {
1031 // Begin of an example
1032 {
1033 .operands = {
1034 //Input(s)
1035 { // See tools/test_generator/include/TestHarness.h:MixedTyped
1036 // int -> Dimensions map
1037 .operandDimensions = {{0, {2, 4, 4, 4}}, {1, {2, 4, 4, 16}}, {2, {4, 4}}, {3, {2, 2}}},
1038 // int -> FLOAT32 map
1039 .float32Operands = {},
1040 // int -> INT32 map
1041 .int32Operands = {},
1042 // int -> QUANT8_ASYMM map
1043 .quant8AsymmOperands = {{0, {177, 42, 156, 114, 159, 132, 183, 123, 54, 138, 129, 189, 93, 69, 171, 111, 96, 120, 147, 126, 99, 6, 24, 45, 48, 57, 102, 63, 87, 51, 117, 12, 180, 150, 36, 90, 72, 18, 81, 30, 0, 39, 15, 162, 174, 186, 78, 33, 165, 105, 153, 21, 108, 141, 135, 60, 84, 9, 66, 3, 168, 27, 144, 75, 99, 63, 39, 48, 42, 108, 156, 144, 9, 186, 54, 147, 27, 18, 162, 141, 78, 177, 84, 189, 180, 45, 150, 60, 75, 126, 165, 135, 3, 96, 129, 123, 66, 93, 132, 120, 15, 168, 57, 114, 117, 33, 12, 72, 159, 171, 21, 90, 0, 174, 105, 51, 138, 111, 30, 69, 6, 183, 81, 87, 153, 24, 102, 36}}, {1, {109, 132, 142, 133, 113, 126, 131, 140, 128, 122, 132, 115, 136, 137, 126, 136, 126, 128, 132, 129, 126, 112, 122, 127, 118, 134, 133, 126, 111, 114, 133, 127, 113, 141, 121, 119, 137, 130, 126, 128, 121, 131, 124, 125, 123, 125, 138, 121, 140, 125, 128, 131, 121, 138, 126, 122, 115, 128, 131, 129, 132, 130, 152, 128, 129, 128, 135, 119, 129, 124, 131, 125, 121, 129, 135, 128, 125, 144, 128, 139, 132, 121, 119, 128, 128, 132, 122, 132, 109, 116, 128, 125, 130, 128, 129, 136, 128, 137, 111, 131, 135, 121, 135, 140, 124, 127, 122, 134, 124, 126, 131, 123, 128, 138, 127, 125, 120, 129, 116, 104, 129, 142, 132, 129, 117, 132, 124, 126, 129, 128, 135, 129, 115, 129, 124, 126, 130, 129, 120, 128, 114, 148, 122, 123, 128, 138, 114, 117, 134, 121, 132, 139, 117, 144, 125, 128, 121, 131, 115, 128, 128, 128, 125, 128, 117, 113, 137, 114, 121, 129, 114, 137, 129, 130, 127, 111, 130, 125, 119, 139, 129, 138, 138, 119, 135, 128, 125, 130, 120, 123, 134, 116, 138, 134, 128, 112, 129, 116, 135, 136, 133, 126, 120, 115, 125, 128, 128, 131, 122, 125, 141, 129, 150, 140, 117, 129, 140, 140, 141, 119, 129, 123, 129, 121, 115, 141, 129, 148, 128, 130, 134, 128, 127, 124, 123, 129, 122, 125, 130, 124, 124, 121, 110, 132, 121, 132, 142, 125, 136, 128, 132, 127, 118, 130, 133, 122, 117, 130, 144, 126, 124, 119, 128, 131, 128, 131, 125, 131, 131, 147, 131, 123, 120, 115, 120, 130, 130, 124, 125, 134, 130, 126, 140, 128, 128, 125, 131, 113, 118, 125, 121, 125, 124, 118, 122, 121, 126, 134, 125, 133, 126, 131, 123, 111, 128, 121, 127, 113, 119, 134, 131, 127, 130, 133, 134, 120, 125, 134, 137, 125, 129, 111, 113, 128, 127, 125, 135, 125, 124, 128, 124, 125, 129, 139, 146, 119, 134, 133, 130, 121, 130, 129, 140, 150, 131, 134, 132, 129, 130, 128, 117, 126, 121, 128, 116, 134, 122, 126, 124, 128, 135, 116, 136, 128, 125, 130, 134, 118, 127, 127, 128, 124, 126, 132, 114, 131, 129, 141, 126, 121, 134, 135, 134, 129, 124, 129, 126, 120, 128, 115, 140, 142, 139, 133, 131, 128, 129, 124, 133, 127, 123, 131, 121, 137, 127, 124, 130, 120, 138, 138, 129, 129, 126, 128, 124, 125, 120, 135, 119, 125, 125, 100, 138, 142, 128, 102, 139, 117, 133, 129, 124, 113, 128, 131, 125, 126, 135, 120, 127, 133, 135, 142, 116, 118, 122, 130, 139, 119, 135, 124, 128, 128, 126, 126, 129, 128, 128, 121, 121, 114, 119, 123, 122, 132, 131, 128, 137, 126, 135, 140, 133, 136, 123, 138, 130, 123, 141, 123, 131, 140, 125, 127, 141, 130, 134, 114, 127, 126, 124, 119, 140, 119, 126, 116, 118, 126, 112, 149, 122, 126, 125, 133, 137, 124, 128, 127, 129, 122, 118, 121, 130, 126}}},
1044 // int -> QUANT16_SYMM map
1045 .quant16SymmOperands = {{2, {0, 48, 128, 80, 48, 0, 80, 128, 24, 40, 104, 88, 40, 24, 88, 104}}},
1046 // int -> FLOAT16 map
1047 .float16Operands = {},
1048 // int -> BOOL8 map
1049 .bool8Operands = {},
1050 // int -> QUANT8_SYMM_PER_CHANNEL map
1051 .quant8ChannelOperands = {},
1052 // int -> QUANT16_ASYMM map
1053 .quant16AsymmOperands = {{3, {512, 512, 256, 256}}},
1054 // int -> QUANT8_SYMM map
1055 .quant8SymmOperands = {},
1056 },
1057 //Output(s)
1058 { // See tools/test_generator/include/TestHarness.h:MixedTyped
1059 // int -> Dimensions map
1060 .operandDimensions = {{0, {30}}, {1, {30, 4}}, {2, {30}}},
1061 // int -> FLOAT32 map
1062 .float32Operands = {},
1063 // int -> INT32 map
1064 .int32Operands = {{2, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}}},
1065 // int -> QUANT8_ASYMM map
1066 .quant8AsymmOperands = {{0, {189, 186, 183, 180, 174, 168, 162, 159, 156, 153, 150, 147, 144, 141, 138, 135, 189, 183, 180, 177, 174, 168, 162, 156, 147, 144, 126, 120, 117, 108}}},
1067 // int -> QUANT16_SYMM map
1068 .quant16SymmOperands = {},
1069 // int -> FLOAT16 map
1070 .float16Operands = {},
1071 // int -> BOOL8 map
1072 .bool8Operands = {},
1073 // int -> QUANT8_SYMM_PER_CHANNEL map
1074 .quant8ChannelOperands = {},
1075 // int -> QUANT16_ASYMM map
1076 .quant16AsymmOperands = {{1, {135, 20, 265, 60, 264, 326, 351, 378, 0, 73, 130, 112, 0, 206, 206, 242, 304, 166, 356, 262, 242, 258, 263, 305, 207, 233, 251, 247, 23, 46, 214, 82, 4, 29, 124, 42, 86, 288, 122, 301, 12, 184, 33, 289, 0, 125, 89, 173, 308, 282, 428, 326, 209, 387, 220, 512, 240, 26, 266, 154, 93, 352, 387, 371, 0, 216, 214, 248, 229, 72, 256, 177, 143, 152, 256, 168, 29, 58, 93, 153, 40, 214, 75, 256, 121, 144, 160, 202, 247, 77, 256, 99, 27, 30, 256, 78, 200, 81, 229, 95, 112, 31, 176, 49, 194, 54, 216, 182, 29, 156, 108, 228, 96, 235, 148, 256, 139, 0, 162, 129}}},
1077 // int -> QUANT8_SYMM map
1078 .quant8SymmOperands = {},
1079 }
1080 },
1081 }, // End of an example
1082 };
1083 return examples_nhwc_quant8_2;
1084 };
1085
get_examples_nhwc_float16_2()1086 std::vector<MixedTypedExample>& get_examples_nhwc_float16_2() {
1087 static std::vector<MixedTypedExample> examples_nhwc_float16_2 = {
1088 // Begin of an example
1089 {
1090 .operands = {
1091 //Input(s)
1092 { // See tools/test_generator/include/TestHarness.h:MixedTyped
1093 // int -> Dimensions map
1094 .operandDimensions = {{0, {2, 4, 4, 4}}, {1, {2, 4, 4, 16}}, {2, {4, 4}}, {3, {2, 2}}},
1095 // int -> FLOAT32 map
1096 .float32Operands = {},
1097 // int -> INT32 map
1098 .int32Operands = {},
1099 // int -> QUANT8_ASYMM map
1100 .quant8AsymmOperands = {},
1101 // int -> QUANT16_SYMM map
1102 .quant16SymmOperands = {},
1103 // int -> FLOAT16 map
1104 .float16Operands = {{0, {0.8849999904632568f, 0.20999999344348907f, 0.7799999713897705f, 0.5699999928474426f, 0.7950000166893005f, 0.6600000262260437f, 0.9150000214576721f, 0.6150000095367432f, 0.27000001072883606f, 0.6899999976158142f, 0.6449999809265137f, 0.9449999928474426f, 0.4650000035762787f, 0.3449999988079071f, 0.8550000190734863f, 0.5550000071525574f, 0.47999998927116394f, 0.6000000238418579f, 0.7350000143051147f, 0.6299999952316284f, 0.4950000047683716f, 0.029999999329447746f, 0.11999999731779099f, 0.22499999403953552f, 0.23999999463558197f, 0.2849999964237213f, 0.5099999904632568f, 0.3149999976158142f, 0.4350000023841858f, 0.2549999952316284f, 0.5849999785423279f, 0.05999999865889549f, 0.8999999761581421f, 0.75f, 0.18000000715255737f, 0.44999998807907104f, 0.36000001430511475f, 0.09000000357627869f, 0.4050000011920929f, 0.15000000596046448f, 0.0f, 0.19499999284744263f, 0.07500000298023224f, 0.8100000023841858f, 0.8700000047683716f, 0.9300000071525574f, 0.38999998569488525f, 0.16500000655651093f, 0.824999988079071f, 0.5249999761581421f, 0.7649999856948853f, 0.10499999672174454f, 0.5400000214576721f, 0.7049999833106995f, 0.675000011920929f, 0.30000001192092896f, 0.41999998688697815f, 0.04500000178813934f, 0.33000001311302185f, 0.014999999664723873f, 0.8399999737739563f, 0.13500000536441803f, 0.7200000286102295f, 0.375f, 0.4950000047683716f, 0.3149999976158142f, 0.19499999284744263f, 0.23999999463558197f, 0.20999999344348907f, 0.5400000214576721f, 0.7799999713897705f, 0.7200000286102295f, 0.04500000178813934f, 0.9300000071525574f, 0.27000001072883606f, 0.7350000143051147f, 0.13500000536441803f, 0.09000000357627869f, 0.8100000023841858f, 0.7049999833106995f, 0.38999998569488525f, 0.8849999904632568f, 0.41999998688697815f, 0.9449999928474426f, 0.8999999761581421f, 0.22499999403953552f, 0.75f, 0.30000001192092896f, 0.375f, 0.6299999952316284f, 0.824999988079071f, 0.675000011920929f, 0.014999999664723873f, 0.47999998927116394f, 0.6449999809265137f, 0.6150000095367432f, 0.33000001311302185f, 0.4650000035762787f, 0.6600000262260437f, 0.6000000238418579f, 0.07500000298023224f, 0.8399999737739563f, 0.2849999964237213f, 0.5699999928474426f, 0.5849999785423279f, 0.16500000655651093f, 0.05999999865889549f, 0.36000001430511475f, 0.7950000166893005f, 0.8550000190734863f, 0.10499999672174454f, 0.44999998807907104f, 0.0f, 0.8700000047683716f, 0.5249999761581421f, 0.2549999952316284f, 0.6899999976158142f, 0.5550000071525574f, 0.15000000596046448f, 0.3449999988079071f, 0.029999999329447746f, 0.9150000214576721f, 0.4050000011920929f, 0.4350000023841858f, 0.7649999856948853f, 0.11999999731779099f, 0.5099999904632568f, 0.18000000715255737f}}, {1, {-1.899999976158142f, 0.4000000059604645f, 1.399999976158142f, 0.5f, -1.5f, -0.20000000298023224f, 0.30000001192092896f, 1.2000000476837158f, 0.0f, -0.6000000238418579f, 0.4000000059604645f, -1.2999999523162842f, 0.800000011920929f, 0.8999999761581421f, -0.20000000298023224f, 0.800000011920929f, -0.20000000298023224f, 0.0f, 0.4000000059604645f, 0.10000000149011612f, -0.20000000298023224f, -1.600000023841858f, -0.6000000238418579f, -0.10000000149011612f, -1.0f, 0.6000000238418579f, 0.5f, -0.20000000298023224f, -1.7000000476837158f, -1.399999976158142f, 0.5f, -0.10000000149011612f, -1.5f, 1.2999999523162842f, -0.699999988079071f, -0.8999999761581421f, 0.8999999761581421f, 0.20000000298023224f, -0.20000000298023224f, 0.0f, -0.699999988079071f, 0.30000001192092896f, -0.4000000059604645f, -0.30000001192092896f, -0.5f, -0.30000001192092896f, 1.0f, -0.699999988079071f, 1.2000000476837158f, -0.30000001192092896f, 0.0f, 0.30000001192092896f, -0.699999988079071f, 1.0f, -0.20000000298023224f, -0.6000000238418579f, -1.2999999523162842f, 0.0f, 0.30000001192092896f, 0.10000000149011612f, 0.4000000059604645f, 0.20000000298023224f, 2.4000000953674316f, 0.0f, 0.10000000149011612f, 0.0f, 0.699999988079071f, -0.8999999761581421f, 0.10000000149011612f, -0.4000000059604645f, 0.30000001192092896f, -0.30000001192092896f, -0.699999988079071f, 0.10000000149011612f, 0.699999988079071f, 0.0f, -0.30000001192092896f, 1.600000023841858f, 0.0f, 1.100000023841858f, 0.4000000059604645f, -0.699999988079071f, -0.8999999761581421f, 0.0f, 0.0f, 0.4000000059604645f, -0.6000000238418579f, 0.4000000059604645f, -1.899999976158142f, -1.2000000476837158f, 0.0f, -0.30000001192092896f, 0.20000000298023224f, 0.0f, 0.10000000149011612f, 0.800000011920929f, 0.0f, 0.8999999761581421f, -1.7000000476837158f, 0.30000001192092896f, 0.699999988079071f, -0.699999988079071f, 0.699999988079071f, 1.2000000476837158f, -0.4000000059604645f, -0.10000000149011612f, -0.6000000238418579f, 0.6000000238418579f, -0.4000000059604645f, -0.20000000298023224f, 0.30000001192092896f, -0.5f, 0.0f, 1.0f, -0.10000000149011612f, -0.30000001192092896f, -0.800000011920929f, 0.10000000149011612f, -1.2000000476837158f, -2.4000000953674316f, 0.10000000149011612f, 1.399999976158142f, 0.4000000059604645f, 0.10000000149011612f, -1.100000023841858f, 0.4000000059604645f, -0.4000000059604645f, -0.20000000298023224f, 0.10000000149011612f, 0.0f, 0.699999988079071f, 0.10000000149011612f, -1.2999999523162842f, 0.10000000149011612f, -0.4000000059604645f, -0.20000000298023224f, 0.20000000298023224f, 0.10000000149011612f, -0.800000011920929f, 0.0f, -1.399999976158142f, 2.0f, -0.6000000238418579f, -0.5f, 0.0f, 1.0f, -1.399999976158142f, -1.100000023841858f, 0.6000000238418579f, -0.699999988079071f, 0.4000000059604645f, 1.100000023841858f, -1.100000023841858f, 1.600000023841858f, -0.30000001192092896f, 0.0f, -0.699999988079071f, 0.30000001192092896f, -1.2999999523162842f, 0.0f, 0.0f, 0.0f, -0.30000001192092896f, 0.0f, -1.100000023841858f, -1.5f, 0.8999999761581421f, -1.399999976158142f, -0.699999988079071f, 0.10000000149011612f, -1.399999976158142f, 0.8999999761581421f, 0.10000000149011612f, 0.20000000298023224f, -0.10000000149011612f, -1.7000000476837158f, 0.20000000298023224f, -0.30000001192092896f, -0.8999999761581421f, 1.100000023841858f, 0.10000000149011612f, 1.0f, 1.0f, -0.8999999761581421f, 0.699999988079071f, 0.0f, -0.30000001192092896f, 0.20000000298023224f, -0.800000011920929f, -0.5f, 0.6000000238418579f, -1.2000000476837158f, 1.0f, 0.6000000238418579f, 0.0f, -1.600000023841858f, 0.10000000149011612f, -1.2000000476837158f, 0.699999988079071f, 0.800000011920929f, 0.5f, -0.20000000298023224f, -0.800000011920929f, -1.2999999523162842f, -0.30000001192092896f, 0.0f, 0.0f, 0.30000001192092896f, -0.6000000238418579f, -0.30000001192092896f, 1.2999999523162842f, 0.10000000149011612f, 2.200000047683716f, 1.2000000476837158f, -1.100000023841858f, 0.10000000149011612f, 1.2000000476837158f, 1.2000000476837158f, 1.2999999523162842f, -0.8999999761581421f, 0.10000000149011612f, -0.5f, 0.10000000149011612f, -0.699999988079071f, -1.2999999523162842f, 1.2999999523162842f, 0.10000000149011612f, 2.0f, 0.0f, 0.20000000298023224f, 0.6000000238418579f, 0.0f, -0.10000000149011612f, -0.4000000059604645f, -0.5f, 0.10000000149011612f, -0.6000000238418579f, -0.30000001192092896f, 0.20000000298023224f, -0.4000000059604645f, -0.4000000059604645f, -0.699999988079071f, -1.7999999523162842f, 0.4000000059604645f, -0.699999988079071f, 0.4000000059604645f, 1.399999976158142f, -0.30000001192092896f, 0.800000011920929f, 0.0f, 0.4000000059604645f, -0.10000000149011612f, -1.0f, 0.20000000298023224f, 0.5f, -0.6000000238418579f, -1.100000023841858f, 0.20000000298023224f, 1.600000023841858f, -0.20000000298023224f, -0.4000000059604645f, -0.8999999761581421f, 0.0f, 0.30000001192092896f, 0.0f, 0.30000001192092896f, -0.30000001192092896f, 0.30000001192092896f, 0.30000001192092896f, 1.899999976158142f, 0.30000001192092896f, -0.5f, -0.800000011920929f, -1.2999999523162842f, -0.800000011920929f, 0.20000000298023224f, 0.20000000298023224f, -0.4000000059604645f, -0.30000001192092896f, 0.6000000238418579f, 0.20000000298023224f, -0.20000000298023224f, 1.2000000476837158f, 0.0f, 0.0f, -0.30000001192092896f, 0.30000001192092896f, -1.5f, -1.0f, -0.30000001192092896f, -0.699999988079071f, -0.30000001192092896f, -0.4000000059604645f, -1.0f, -0.6000000238418579f, -0.699999988079071f, -0.20000000298023224f, 0.6000000238418579f, -0.30000001192092896f, 0.5f, -0.20000000298023224f, 0.30000001192092896f, -0.5f, -1.7000000476837158f, 0.0f, -0.699999988079071f, -0.10000000149011612f, -1.5f, -0.8999999761581421f, 0.6000000238418579f, 0.30000001192092896f, -0.10000000149011612f, 0.20000000298023224f, 0.5f, 0.6000000238418579f, -0.800000011920929f, -0.30000001192092896f, 0.6000000238418579f, 0.8999999761581421f, -0.30000001192092896f, 0.10000000149011612f, -1.7000000476837158f, -1.5f, 0.0f, -0.10000000149011612f, -0.30000001192092896f, 0.699999988079071f, -0.30000001192092896f, -0.4000000059604645f, 0.0f, -0.4000000059604645f, -0.30000001192092896f, 0.10000000149011612f, 1.100000023841858f, 1.7999999523162842f, -0.8999999761581421f, 0.6000000238418579f, 0.5f, 0.20000000298023224f, -0.699999988079071f, 0.20000000298023224f, 0.10000000149011612f, 1.2000000476837158f, 2.200000047683716f, 0.30000001192092896f, 0.6000000238418579f, 0.4000000059604645f, 0.10000000149011612f, 0.20000000298023224f, 0.0f, -1.100000023841858f, -0.20000000298023224f, -0.699999988079071f, 0.0f, -1.2000000476837158f, 0.6000000238418579f, -0.6000000238418579f, -0.20000000298023224f, -0.4000000059604645f, 0.0f, 0.699999988079071f, -1.2000000476837158f, 0.800000011920929f, 0.0f, -0.30000001192092896f, 0.20000000298023224f, 0.6000000238418579f, -1.0f, -0.10000000149011612f, -0.10000000149011612f, 0.0f, -0.4000000059604645f, -0.20000000298023224f, 0.4000000059604645f, -1.399999976158142f, 0.30000001192092896f, 0.10000000149011612f, 1.2999999523162842f, -0.20000000298023224f, -0.699999988079071f, 0.6000000238418579f, 0.699999988079071f, 0.6000000238418579f, 0.10000000149011612f, -0.4000000059604645f, 0.10000000149011612f, -0.20000000298023224f, -0.800000011920929f, 0.0f, -1.2999999523162842f, 1.2000000476837158f, 1.399999976158142f, 1.100000023841858f, 0.5f, 0.30000001192092896f, 0.0f, 0.10000000149011612f, -0.4000000059604645f, 0.5f, -0.10000000149011612f, -0.5f, 0.30000001192092896f, -0.699999988079071f, 0.8999999761581421f, -0.10000000149011612f, -0.4000000059604645f, 0.20000000298023224f, -0.800000011920929f, 1.0f, 1.0f, 0.10000000149011612f, 0.10000000149011612f, -0.20000000298023224f, 0.0f, -0.4000000059604645f, -0.30000001192092896f, -0.800000011920929f, 0.699999988079071f, -0.8999999761581421f, -0.30000001192092896f, -0.30000001192092896f, -2.799999952316284f, 1.0f, 1.399999976158142f, 0.0f, -2.5999999046325684f, 1.100000023841858f, -1.100000023841858f, 0.5f, 0.10000000149011612f, -0.4000000059604645f, -1.5f, 0.0f, 0.30000001192092896f, -0.30000001192092896f, -0.20000000298023224f, 0.699999988079071f, -0.800000011920929f, -0.10000000149011612f, 0.5f, 0.699999988079071f, 1.399999976158142f, -1.2000000476837158f, -1.0f, -0.6000000238418579f, 0.20000000298023224f, 1.100000023841858f, -0.8999999761581421f, 0.699999988079071f, -0.4000000059604645f, 0.0f, 0.0f, -0.20000000298023224f, -0.20000000298023224f, 0.10000000149011612f, 0.0f, 0.0f, -0.699999988079071f, -0.699999988079071f, -1.399999976158142f, -0.8999999761581421f, -0.5f, -0.6000000238418579f, 0.4000000059604645f, 0.30000001192092896f, 0.0f, 0.8999999761581421f, -0.20000000298023224f, 0.699999988079071f, 1.2000000476837158f, 0.5f, 0.800000011920929f, -0.5f, 1.0f, 0.20000000298023224f, -0.5f, 1.2999999523162842f, -0.5f, 0.30000001192092896f, 1.2000000476837158f, -0.30000001192092896f, -0.10000000149011612f, 1.2999999523162842f, 0.20000000298023224f, 0.6000000238418579f, -1.399999976158142f, -0.10000000149011612f, -0.20000000298023224f, -0.4000000059604645f, -0.8999999761581421f, 1.2000000476837158f, -0.8999999761581421f, -0.20000000298023224f, -1.2000000476837158f, -1.0f, -0.20000000298023224f, -1.600000023841858f, 2.0999999046325684f, -0.6000000238418579f, -0.20000000298023224f, -0.30000001192092896f, 0.5f, 0.8999999761581421f, -0.4000000059604645f, 0.0f, -0.10000000149011612f, 0.10000000149011612f, -0.6000000238418579f, -1.0f, -0.699999988079071f, 0.20000000298023224f, -0.20000000298023224f}}, {2, {0.0f, 6.0f, 16.0f, 10.0f, 6.0f, 0.0f, 10.0f, 16.0f, 3.0f, 5.0f, 13.0f, 11.0f, 5.0f, 3.0f, 11.0f, 13.0f}}, {3, {64.0f, 64.0f, 32.0f, 32.0f}}},
1105 // int -> BOOL8 map
1106 .bool8Operands = {},
1107 // int -> QUANT8_SYMM_PER_CHANNEL map
1108 .quant8ChannelOperands = {},
1109 // int -> QUANT16_ASYMM map
1110 .quant16AsymmOperands = {},
1111 // int -> QUANT8_SYMM map
1112 .quant8SymmOperands = {},
1113 },
1114 //Output(s)
1115 { // See tools/test_generator/include/TestHarness.h:MixedTyped
1116 // int -> Dimensions map
1117 .operandDimensions = {{0, {30}}, {1, {30, 4}}, {2, {30}}},
1118 // int -> FLOAT32 map
1119 .float32Operands = {},
1120 // int -> INT32 map
1121 .int32Operands = {{2, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}}},
1122 // int -> QUANT8_ASYMM map
1123 .quant8AsymmOperands = {},
1124 // int -> QUANT16_SYMM map
1125 .quant16SymmOperands = {},
1126 // int -> FLOAT16 map
1127 .float16Operands = {{0, {0.9449999928474426f, 0.9300000071525574f, 0.9150000214576721f, 0.8999999761581421f, 0.8700000047683716f, 0.8399999737739563f, 0.8100000023841858f, 0.7950000166893005f, 0.7799999713897705f, 0.7649999856948853f, 0.75f, 0.7350000143051147f, 0.7200000286102295f, 0.7049999833106995f, 0.6899999976158142f, 0.675000011920929f, 0.9449999928474426f, 0.9150000214576721f, 0.8999999761581421f, 0.8849999904632568f, 0.8700000047683716f, 0.8399999737739563f, 0.8100000023841858f, 0.7799999713897705f, 0.7350000143051147f, 0.7200000286102295f, 0.6299999952316284f, 0.6000000238418579f, 0.5849999785423279f, 0.5400000214576721f}}, {1, {16.84515380859375f, 2.517073392868042f, 33.15484619140625f, 7.482926368713379f, 32.96343994140625f, 40.74744415283203f, 43.83656311035156f, 47.25255584716797f, 0.0f, 9.143808364868164f, 16.243606567382812f, 14.056192398071289f, 0.0f, 25.789657592773438f, 25.71002197265625f, 30.210342407226562f, 37.947444915771484f, 20.791667938232422f, 44.45255661010742f, 32.80833053588867f, 30.27760887145996f, 32.21635055541992f, 32.92238998413086f, 38.183650970458984f, 25.885488510131836f, 29.08658218383789f, 31.314512252807617f, 30.91341781616211f, 2.8654022216796875f, 5.789658069610596f, 26.73459815979004f, 10.210342407226562f, 0.5408763885498047f, 3.582404136657715f, 15.459123611450195f, 5.217595100402832f, 10.753355026245117f, 35.98240280151367f, 15.246644973754883f, 37.61759567260742f, 1.459360122680664f, 23.050153732299805f, 4.1406402587890625f, 36.149845123291016f, 0.0f, 15.600000381469727f, 11.068763732910156f, 21.600000381469727f, 38.54087829589844f, 35.28548812866211f, 53.45912170410156f, 40.71451187133789f, 26.13425636291504f, 48.35863494873047f, 27.465742111206055f, 64.0f, 29.962539672851562f, 3.1999998092651367f, 33.23746109008789f, 19.200000762939453f, 11.65351676940918f, 43.98029327392578f, 48.34648132324219f, 46.419708251953125f, 0.0f, 26.967151641845703f, 26.74894142150879f, 31.032848358154297f, 28.59032440185547f, 9.050153732299805f, 32.0f, 22.14984703063965f, 17.828777313232422f, 19.0068302154541f, 32.0f, 20.9931697845459f, 3.5724945068359375f, 7.273454189300537f, 11.6275053024292f, 19.126544952392578f, 4.989657878875732f, 26.799999237060547f, 9.410341262817383f, 32.0f, 15.157195091247559f, 18.005369186401367f, 20.04280662536621f, 25.194631576538086f, 30.889404296875f, 9.652012825012207f, 32.0f, 12.347987174987793f, 3.3994140625f, 3.8000001907348633f, 32.0f, 9.800000190734863f, 24.98040771484375f, 10.08658218383789f, 28.619590759277344f, 11.91341781616211f, 13.950423240661621f, 3.8843491077423096f, 22.049575805664062f, 6.1156511306762695f, 24.259361267089844f, 6.800000190734863f, 26.94063949584961f, 22.799999237060547f, 3.653836727142334f, 19.475812911987305f, 13.546163558959961f, 28.524187088012695f, 11.947443008422852f, 29.318363189697266f, 18.452556610107422f, 32.0f, 17.318363189697266f, 0.0f, 20.281635284423828f, 16.176950454711914f}}},
1128 // int -> BOOL8 map
1129 .bool8Operands = {},
1130 // int -> QUANT8_SYMM_PER_CHANNEL map
1131 .quant8ChannelOperands = {},
1132 // int -> QUANT16_ASYMM map
1133 .quant16AsymmOperands = {},
1134 // int -> QUANT8_SYMM map
1135 .quant8SymmOperands = {},
1136 }
1137 },
1138 }, // End of an example
1139 };
1140 return examples_nhwc_float16_2;
1141 };
1142
get_examples_nchw_2()1143 std::vector<MixedTypedExample>& get_examples_nchw_2() {
1144 static std::vector<MixedTypedExample> examples_nchw_2 = {
1145 // Begin of an example
1146 {
1147 .operands = {
1148 //Input(s)
1149 { // See tools/test_generator/include/TestHarness.h:MixedTyped
1150 // int -> Dimensions map
1151 .operandDimensions = {{0, {2, 4, 4, 4}}, {1, {2, 16, 4, 4}}, {2, {4, 4}}, {3, {2, 2}}},
1152 // int -> FLOAT32 map
1153 .float32Operands = {{0, {0.885f, 0.795f, 0.27f, 0.465f, 0.48f, 0.495f, 0.24f, 0.435f, 0.9f, 0.36f, 0.0f, 0.87f, 0.825f, 0.54f, 0.42f, 0.84f, 0.21f, 0.66f, 0.69f, 0.345f, 0.6f, 0.03f, 0.285f, 0.255f, 0.75f, 0.09f, 0.195f, 0.93f, 0.525f, 0.705f, 0.045f, 0.135f, 0.78f, 0.915f, 0.645f, 0.855f, 0.735f, 0.12f, 0.51f, 0.585f, 0.18f, 0.405f, 0.075f, 0.39f, 0.765f, 0.675f, 0.33f, 0.72f, 0.57f, 0.615f, 0.945f, 0.555f, 0.63f, 0.225f, 0.315f, 0.06f, 0.45f, 0.15f, 0.81f, 0.165f, 0.105f, 0.3f, 0.015f, 0.375f, 0.495f, 0.21f, 0.045f, 0.135f, 0.39f, 0.9f, 0.375f, 0.015f, 0.33f, 0.075f, 0.585f, 0.795f, 0.0f, 0.69f, 0.03f, 0.765f, 0.315f, 0.54f, 0.93f, 0.09f, 0.885f, 0.225f, 0.63f, 0.48f, 0.465f, 0.84f, 0.165f, 0.855f, 0.87f, 0.555f, 0.915f, 0.12f, 0.195f, 0.78f, 0.27f, 0.81f, 0.42f, 0.75f, 0.825f, 0.645f, 0.66f, 0.285f, 0.06f, 0.105f, 0.525f, 0.15f, 0.405f, 0.51f, 0.24f, 0.72f, 0.735f, 0.705f, 0.945f, 0.3f, 0.675f, 0.615f, 0.6f, 0.57f, 0.36f, 0.45f, 0.255f, 0.345f, 0.435f, 0.18f}}, {1, {-1.9f, -0.2f, -1.5f, 1.2f, 0.1f, 0.4f, 0.0f, 0.0f, 0.1f, 0.0f, 0.0f, 0.2f, 1.0f, -0.6f, -1.3f, -0.4f, 0.4f, 0.0f, 1.3f, -0.3f, 0.0f, -0.7f, 0.9f, 1.0f, 0.0f, 1.0f, 0.0f, -0.3f, 0.6f, -0.3f, 1.3f, -0.7f, 1.4f, 0.4f, -0.7f, 0.0f, 0.7f, -0.9f, -1.7f, -0.1f, 0.7f, -1.4f, -0.3f,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.0f, 0.2f, -0.2f, 0.2f, -0.4f, 0.3f, 0.7f, 0.1f, 1.1f, 1.0f, 0.0f, 0.7f, 0.0f, -0.5f, -0.4f, 0.0f, 0.3f, -0.2f, 0.6f, 0.5f, 0.0f, 0.6f, -1.2f, 1.3f, 0.5f, 1.0f, -2.6f, 1.4f, -0.7f, 1.0f, -0.9f, -0.1f, -0.3f, 1.2f, -0.3f, 0.6f, -0.4f, 0.4f, 0.8f, -0.2f, 0.3f, 0.1f, 1.1f, -1.2f, -0.7f, 0.2f, 1.2f, 0.1f, 0.3f, 0.0f, 0.5f, -0.8f, -0.3f, 0.1f, 0.0f, -0.7f, 0.0f, 0.1f, -1.1f, -1.0f, -1.4f, -0.5f, -0.9f, -0.6f, 0.3f, 0.0f, -0.2f, -0.3f, 0.1f, 0.2f, -0.3f, 0.6f, 0.1f, -0.2f, 0.5f, -0.6f, -0.9f, 1.3f, -0.2f, -1.0f, 1.9f, -0.3f, 0.3f, 0.6f, 1.1f, 0.0f, 0.2f, 0.7f, -0.4f, 0.0f, 0.1f, 0.2f, -0.5f, -0.5f, -1.2f, -0.7f, 0.3f, 0.3f, -0.5f, 0.9f, 1.8f, -1.1f, 0.6f, 0.6f, 0.5f, -0.4f, -0.4f, 1.1f, -0.6f, 0.3f, -1.0f, 0.2f, -0.5f, -1.5f, -1.7f, -0.3f, -0.9f, -0.2f, -1.0f, 0.1f, -0.1f, -0.3f, -1.5f, -0.9f, 0.4f, 1.2f, -0.2f, -0.2f}}, {2, {0.0f, 6.0f, 16.0f, 10.0f, 6.0f, 0.0f, 10.0f, 16.0f, 3.0f, 5.0f, 13.0f, 11.0f, 5.0f, 3.0f, 11.0f, 13.0f}}, {3, {64.0f, 64.0f, 32.0f, 32.0f}}},
1154 // int -> INT32 map
1155 .int32Operands = {},
1156 // int -> QUANT8_ASYMM map
1157 .quant8AsymmOperands = {},
1158 // int -> QUANT16_SYMM map
1159 .quant16SymmOperands = {},
1160 // int -> FLOAT16 map
1161 .float16Operands = {},
1162 // int -> BOOL8 map
1163 .bool8Operands = {},
1164 // int -> QUANT8_SYMM_PER_CHANNEL map
1165 .quant8ChannelOperands = {},
1166 // int -> QUANT16_ASYMM map
1167 .quant16AsymmOperands = {},
1168 // int -> QUANT8_SYMM map
1169 .quant8SymmOperands = {},
1170 },
1171 //Output(s)
1172 { // See tools/test_generator/include/TestHarness.h:MixedTyped
1173 // int -> Dimensions map
1174 .operandDimensions = {{0, {30}}, {1, {30, 4}}, {2, {30}}},
1175 // int -> FLOAT32 map
1176 .float32Operands = {{0, {0.945f, 0.93f, 0.915f, 0.9f, 0.87f, 0.84f, 0.81f, 0.795f, 0.78f, 0.765f, 0.75f, 0.735f, 0.72f, 0.705f, 0.69f, 0.675f, 0.945f, 0.915f, 0.9f, 0.885f, 0.87f, 0.84f, 0.81f, 0.78f, 0.735f, 0.72f, 0.63f, 0.6f, 0.585f, 0.54f}}, {1, {16.845154f, 2.5170734f, 33.154846f, 7.4829264f, 32.96344f, 40.747444f, 43.836563f, 47.252556f, 0.0f, 9.143808f, 16.243607f, 14.056192f, 0.0f, 25.789658f, 25.710022f, 30.210342f, 37.947445f, 20.791668f, 44.452557f, 32.80833f, 30.277609f, 32.21635f, 32.92239f, 38.18365f, 25.885489f, 29.086582f, 31.314512f, 30.913418f, 2.8654022f, 5.789658f, 26.734598f, 10.210342f, 0.5408764f, 3.5824041f, 15.459124f, 5.217595f, 10.753355f, 35.982403f, 15.246645f, 37.617596f, 1.4593601f, 23.050154f, 4.1406403f, 36.149845f, 0.0f, 15.6f, 11.068764f, 21.6f, 38.54088f, 35.28549f, 53.45912f, 40.71451f, 26.134256f, 48.358635f, 27.465742f, 64.0f, 29.96254f, 3.1999998f, 33.23746f, 19.2f, 11.653517f, 43.980293f, 48.34648f, 46.41971f, 0.0f, 26.967152f, 26.748941f, 31.032848f, 28.590324f, 9.050154f, 32.0f, 22.149847f, 17.828777f, 19.00683f, 32.0f, 20.99317f, 3.5724945f, 7.273454f, 11.627505f, 19.126545f, 4.989658f, 26.8f, 9.410341f, 32.0f, 15.157195f, 18.00537f, 20.042807f, 25.194632f, 30.889404f, 9.652013f, 32.0f, 12.347987f, 3.399414f, 3.8000002f, 32.0f, 9.8f, 24.980408f, 10.086582f, 28.61959f, 11.913418f, 13.950423f, 3.884349f, 22.049576f, 6.115651f, 24.259361f, 6.8f, 26.94064f, 22.8f, 3.6538367f, 19.475813f, 13.546164f, 28.524187f, 11.947443f, 29.318363f, 18.452557f, 32.0f, 17.318363f, 0.0f, 20.281635f, 16.17695f}}},
1177 // int -> INT32 map
1178 .int32Operands = {{2, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}}},
1179 // int -> QUANT8_ASYMM map
1180 .quant8AsymmOperands = {},
1181 // int -> QUANT16_SYMM map
1182 .quant16SymmOperands = {},
1183 // int -> FLOAT16 map
1184 .float16Operands = {},
1185 // int -> BOOL8 map
1186 .bool8Operands = {},
1187 // int -> QUANT8_SYMM_PER_CHANNEL map
1188 .quant8ChannelOperands = {},
1189 // int -> QUANT16_ASYMM map
1190 .quant16AsymmOperands = {},
1191 // int -> QUANT8_SYMM map
1192 .quant8SymmOperands = {},
1193 }
1194 },
1195 }, // End of an example
1196 };
1197 return examples_nchw_2;
1198 };
1199
get_examples_nchw_relaxed_2()1200 std::vector<MixedTypedExample>& get_examples_nchw_relaxed_2() {
1201 static std::vector<MixedTypedExample> examples_nchw_relaxed_2 = {
1202 // Begin of an example
1203 {
1204 .operands = {
1205 //Input(s)
1206 { // See tools/test_generator/include/TestHarness.h:MixedTyped
1207 // int -> Dimensions map
1208 .operandDimensions = {{0, {2, 4, 4, 4}}, {1, {2, 16, 4, 4}}, {2, {4, 4}}, {3, {2, 2}}},
1209 // int -> FLOAT32 map
1210 .float32Operands = {{0, {0.885f, 0.795f, 0.27f, 0.465f, 0.48f, 0.495f, 0.24f, 0.435f, 0.9f, 0.36f, 0.0f, 0.87f, 0.825f, 0.54f, 0.42f, 0.84f, 0.21f, 0.66f, 0.69f, 0.345f, 0.6f, 0.03f, 0.285f, 0.255f, 0.75f, 0.09f, 0.195f, 0.93f, 0.525f, 0.705f, 0.045f, 0.135f, 0.78f, 0.915f, 0.645f, 0.855f, 0.735f, 0.12f, 0.51f, 0.585f, 0.18f, 0.405f, 0.075f, 0.39f, 0.765f, 0.675f, 0.33f, 0.72f, 0.57f, 0.615f, 0.945f, 0.555f, 0.63f, 0.225f, 0.315f, 0.06f, 0.45f, 0.15f, 0.81f, 0.165f, 0.105f, 0.3f, 0.015f, 0.375f, 0.495f, 0.21f, 0.045f, 0.135f, 0.39f, 0.9f, 0.375f, 0.015f, 0.33f, 0.075f, 0.585f, 0.795f, 0.0f, 0.69f, 0.03f, 0.765f, 0.315f, 0.54f, 0.93f, 0.09f, 0.885f, 0.225f, 0.63f, 0.48f, 0.465f, 0.84f, 0.165f, 0.855f, 0.87f, 0.555f, 0.915f, 0.12f, 0.195f, 0.78f, 0.27f, 0.81f, 0.42f, 0.75f, 0.825f, 0.645f, 0.66f, 0.285f, 0.06f, 0.105f, 0.525f, 0.15f, 0.405f, 0.51f, 0.24f, 0.72f, 0.735f, 0.705f, 0.945f, 0.3f, 0.675f, 0.615f, 0.6f, 0.57f, 0.36f, 0.45f, 0.255f, 0.345f, 0.435f, 0.18f}}, {1, {-1.9f, -0.2f, -1.5f, 1.2f, 0.1f, 0.4f, 0.0f, 0.0f, 0.1f, 0.0f, 0.0f, 0.2f, 1.0f, -0.6f, -1.3f, -0.4f, 0.4f, 0.0f, 1.3f, -0.3f, 0.0f, -0.7f, 0.9f, 1.0f, 0.0f, 1.0f, 0.0f, -0.3f, 0.6f, -0.3f, 1.3f, -0.7f, 1.4f, 0.4f, -0.7f, 0.0f, 0.7f, -0.9f, -1.7f, -0.1f, 0.7f, -1.4f, -0.3f, -0.9f, 0.0f, 1.3f, 0.1f, -1.8f, 0.5f, 0.1f, -0.9f, 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1f, 1.0f, 0.0f, 0.7f, 0.0f, -0.5f, -0.4f, 0.0f, 0.3f, -0.2f, 0.6f, 0.5f, 0.0f, 0.6f, -1.2f, 1.3f, 0.5f, 1.0f, -2.6f, 1.4f, -0.7f, 1.0f, -0.9f, -0.1f, -0.3f, 1.2f, -0.3f, 0.6f, -0.4f, 0.4f, 0.8f, -0.2f, 0.3f, 0.1f, 1.1f, -1.2f, -0.7f, 0.2f, 1.2f, 0.1f, 0.3f, 0.0f, 0.5f, -0.8f, -0.3f, 0.1f, 0.0f, -0.7f, 0.0f, 0.1f, -1.1f, -1.0f, -1.4f, -0.5f, -0.9f, -0.6f, 0.3f, 0.0f, -0.2f, -0.3f, 0.1f, 0.2f, -0.3f, 0.6f, 0.1f, -0.2f, 0.5f, -0.6f, -0.9f, 1.3f, -0.2f, -1.0f, 1.9f, -0.3f, 0.3f, 0.6f, 1.1f, 0.0f, 0.2f, 0.7f, -0.4f, 0.0f, 0.1f, 0.2f, -0.5f, -0.5f, -1.2f, -0.7f, 0.3f, 0.3f, -0.5f, 0.9f, 1.8f, -1.1f, 0.6f, 0.6f, 0.5f, -0.4f, -0.4f, 1.1f, -0.6f, 0.3f, -1.0f, 0.2f, -0.5f, -1.5f, -1.7f, -0.3f, -0.9f, -0.2f, -1.0f, 0.1f, -0.1f, -0.3f, -1.5f, -0.9f, 0.4f, 1.2f, -0.2f, -0.2f}}, {2, {0.0f, 6.0f, 16.0f, 10.0f, 6.0f, 0.0f, 10.0f, 16.0f, 3.0f, 5.0f, 13.0f, 11.0f, 5.0f, 3.0f, 11.0f, 13.0f}}, {3, {64.0f, 64.0f, 32.0f, 32.0f}}},
1211 // int -> INT32 map
1212 .int32Operands = {},
1213 // int -> QUANT8_ASYMM map
1214 .quant8AsymmOperands = {},
1215 // int -> QUANT16_SYMM map
1216 .quant16SymmOperands = {},
1217 // int -> FLOAT16 map
1218 .float16Operands = {},
1219 // int -> BOOL8 map
1220 .bool8Operands = {},
1221 // int -> QUANT8_SYMM_PER_CHANNEL map
1222 .quant8ChannelOperands = {},
1223 // int -> QUANT16_ASYMM map
1224 .quant16AsymmOperands = {},
1225 // int -> QUANT8_SYMM map
1226 .quant8SymmOperands = {},
1227 },
1228 //Output(s)
1229 { // See tools/test_generator/include/TestHarness.h:MixedTyped
1230 // int -> Dimensions map
1231 .operandDimensions = {{0, {30}}, {1, {30, 4}}, {2, {30}}},
1232 // int -> FLOAT32 map
1233 .float32Operands = {{0, {0.945f, 0.93f, 0.915f, 0.9f, 0.87f, 0.84f, 0.81f, 0.795f, 0.78f, 0.765f, 0.75f, 0.735f, 0.72f, 0.705f, 0.69f, 0.675f, 0.945f, 0.915f, 0.9f, 0.885f, 0.87f, 0.84f, 0.81f, 0.78f, 0.735f, 0.72f, 0.63f, 0.6f, 0.585f, 0.54f}}, {1, {16.845154f, 2.5170734f, 33.154846f, 7.4829264f, 32.96344f, 40.747444f, 43.836563f, 47.252556f, 0.0f, 9.143808f, 16.243607f, 14.056192f, 0.0f, 25.789658f, 25.710022f, 30.210342f, 37.947445f, 20.791668f, 44.452557f, 32.80833f, 30.277609f, 32.21635f, 32.92239f, 38.18365f, 25.885489f, 29.086582f, 31.314512f, 30.913418f, 2.8654022f, 5.789658f, 26.734598f, 10.210342f, 0.5408764f, 3.5824041f, 15.459124f, 5.217595f, 10.753355f, 35.982403f, 15.246645f, 37.617596f, 1.4593601f, 23.050154f, 4.1406403f, 36.149845f, 0.0f, 15.6f, 11.068764f, 21.6f, 38.54088f, 35.28549f, 53.45912f, 40.71451f, 26.134256f, 48.358635f, 27.465742f, 64.0f, 29.96254f, 3.1999998f, 33.23746f, 19.2f, 11.653517f, 43.980293f, 48.34648f, 46.41971f, 0.0f, 26.967152f, 26.748941f, 31.032848f, 28.590324f, 9.050154f, 32.0f, 22.149847f, 17.828777f, 19.00683f, 32.0f, 20.99317f, 3.5724945f, 7.273454f, 11.627505f, 19.126545f, 4.989658f, 26.8f, 9.410341f, 32.0f, 15.157195f, 18.00537f, 20.042807f, 25.194632f, 30.889404f, 9.652013f, 32.0f, 12.347987f, 3.399414f, 3.8000002f, 32.0f, 9.8f, 24.980408f, 10.086582f, 28.61959f, 11.913418f, 13.950423f, 3.884349f, 22.049576f, 6.115651f, 24.259361f, 6.8f, 26.94064f, 22.8f, 3.6538367f, 19.475813f, 13.546164f, 28.524187f, 11.947443f, 29.318363f, 18.452557f, 32.0f, 17.318363f, 0.0f, 20.281635f, 16.17695f}}},
1234 // int -> INT32 map
1235 .int32Operands = {{2, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}}},
1236 // int -> QUANT8_ASYMM map
1237 .quant8AsymmOperands = {},
1238 // int -> QUANT16_SYMM map
1239 .quant16SymmOperands = {},
1240 // int -> FLOAT16 map
1241 .float16Operands = {},
1242 // int -> BOOL8 map
1243 .bool8Operands = {},
1244 // int -> QUANT8_SYMM_PER_CHANNEL map
1245 .quant8ChannelOperands = {},
1246 // int -> QUANT16_ASYMM map
1247 .quant16AsymmOperands = {},
1248 // int -> QUANT8_SYMM map
1249 .quant8SymmOperands = {},
1250 }
1251 },
1252 }, // End of an example
1253 };
1254 return examples_nchw_relaxed_2;
1255 };
1256
get_examples_nchw_quant8_2()1257 std::vector<MixedTypedExample>& get_examples_nchw_quant8_2() {
1258 static std::vector<MixedTypedExample> examples_nchw_quant8_2 = {
1259 // Begin of an example
1260 {
1261 .operands = {
1262 //Input(s)
1263 { // See tools/test_generator/include/TestHarness.h:MixedTyped
1264 // int -> Dimensions map
1265 .operandDimensions = {{0, {2, 4, 4, 4}}, {1, {2, 16, 4, 4}}, {2, {4, 4}}, {3, {2, 2}}},
1266 // int -> FLOAT32 map
1267 .float32Operands = {},
1268 // int -> INT32 map
1269 .int32Operands = {},
1270 // int -> QUANT8_ASYMM map
1271 .quant8AsymmOperands = {{0, {177, 159, 54, 93, 96, 99, 48, 87, 180, 72, 0, 174, 165, 108, 84, 168, 42, 132, 138, 69, 120, 6, 57, 51, 150, 18, 39, 186, 105, 141, 9, 27, 156, 183, 129, 171, 147, 24, 102, 117, 36, 81, 15, 78, 153, 135, 66, 144, 114, 123, 189, 111, 126, 45, 63, 12, 90, 30, 162, 33, 21, 60, 3, 75, 99, 42, 9, 27, 78, 180, 75, 3, 66, 15, 117, 159, 0, 138, 6, 153, 63, 108, 186, 18, 177, 45, 126, 96, 93, 168, 33, 171, 174, 111, 183, 24, 39, 156, 54, 162, 84, 150, 165, 129, 132, 57, 12, 21, 105, 30, 81, 102, 48, 144, 147, 141, 189, 60, 135, 123, 120, 114, 72, 90, 51, 69, 87, 36}}, {1, {109, 126, 113, 140, 129, 132, 128, 128, 129, 128, 128, 130, 138, 122, 115, 124, 132, 128, 141, 125, 128, 121, 137, 138, 128, 138, 128, 125, 134, 125, 141, 121, 142, 132, 121, 128, 135, 119, 111, 127, 135, 114, 125, 119, 128, 141, 129, 110, 133, 129, 119, 131, 119, 128, 131, 125, 129, 117, 128, 139, 112, 129, 148, 132, 113, 126, 137, 121, 129, 128, 135, 120, 115, 134, 117, 129, 129, 150, 128, 121, 126, 112, 130, 138, 124, 132, 121, 129, 129, 121, 113, 138, 116, 140, 130, 132, 131, 122, 126, 126, 131, 122, 135, 116, 124, 132, 137, 138, 135, 117, 134, 142, 140, 127, 128, 122, 125, 132, 140, 104, 126, 139, 114, 119, 136, 129, 128, 125, 128, 118, 121, 115, 121, 109, 124, 129, 130, 117, 121, 135, 133, 140, 127, 136, 122, 134, 131, 128, 129, 116, 127, 142, 129, 144, 129, 128, 126, 140, 124, 128, 132, 133, 124, 131, 135, 128, 122, 132, 120, 125, 114, 125, 120, 141, 123, 132, 115, 126, 125, 129, 128, 125, 134, 129, 128, 128, 137, 130, 115, 119, 129, 127, 136, 111, 123, 132, 125, 130, 124, 117, 114, 121, 129, 120, 125, 129, 122, 118, 137, 114, 125, 130, 144, 128, 126, 132, 148, 131, 130, 123, 128, 123, 125, 130, 126, 133, 138, 152, 128, 129, 131, 124, 122, 115, 127, 134, 128, 129, 130, 133, 136, 127, 121, 128, 139, 136, 123, 126, 123, 128, 111, 116, 131, 121, 124, 122, 117, 120, 118, 128, 129, 134, 121, 127, 124, 123, 120, 128, 135, 131, 125, 112, 130, 115, 125, 121, 111, 133, 128, 127, 129, 131, 135, 131, 124, 128, 127, 149, 144, 120, 121, 127, 113, 130, 116, 128, 126, 121, 119, 125, 128, 137, 141, 122, 126, 130, 125, 113, 128, 121, 134, 124, 120, 137, 125, 126, 128, 126, 130, 126, 124, 130, 124, 119, 127, 130, 122, 126, 128, 127, 125, 135, 126, 135, 134, 125, 119, 124, 118, 134, 125, 129, 126, 132, 115, 124, 100, 120, 126, 140, 114, 133, 128, 125, 122, 131, 135, 140, 124, 114, 140, 130, 138, 127, 129, 133, 127, 137, 131, 134, 121, 127, 125, 150, 128, 131, 142, 120, 142, 133, 128, 136, 126, 124, 128, 130, 126, 130, 124, 131, 135, 129, 139, 138, 128, 135, 128, 123, 124, 128, 131, 126, 134, 133, 128, 134, 116, 141, 133, 138, 102, 142, 121, 138, 119, 127, 125, 140, 125, 134, 124, 132, 136, 126, 131, 129, 139, 116, 121, 130, 140, 129, 131, 128, 133, 120, 125, 129, 128, 121, 128, 129, 117, 118, 114, 123, 119, 122, 131, 128, 126, 125, 129, 130, 125, 134, 129, 126, 133, 122, 119, 141, 126, 118, 147, 125, 131, 134, 139, 128, 130, 135, 124, 128, 129, 130, 123, 123, 116, 121, 131, 131, 123, 137, 146, 117, 134, 134, 133, 124, 124, 139, 122, 131, 118, 130, 123, 113, 111, 125, 119, 126, 118, 129, 127, 125, 113, 119, 132, 140, 126, 126}}},
1272 // int -> QUANT16_SYMM map
1273 .quant16SymmOperands = {{2, {0, 48, 128, 80, 48, 0, 80, 128, 24, 40, 104, 88, 40, 24, 88, 104}}},
1274 // int -> FLOAT16 map
1275 .float16Operands = {},
1276 // int -> BOOL8 map
1277 .bool8Operands = {},
1278 // int -> QUANT8_SYMM_PER_CHANNEL map
1279 .quant8ChannelOperands = {},
1280 // int -> QUANT16_ASYMM map
1281 .quant16AsymmOperands = {{3, {512, 512, 256, 256}}},
1282 // int -> QUANT8_SYMM map
1283 .quant8SymmOperands = {},
1284 },
1285 //Output(s)
1286 { // See tools/test_generator/include/TestHarness.h:MixedTyped
1287 // int -> Dimensions map
1288 .operandDimensions = {{0, {30}}, {1, {30, 4}}, {2, {30}}},
1289 // int -> FLOAT32 map
1290 .float32Operands = {},
1291 // int -> INT32 map
1292 .int32Operands = {{2, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}}},
1293 // int -> QUANT8_ASYMM map
1294 .quant8AsymmOperands = {{0, {189, 186, 183, 180, 174, 168, 162, 159, 156, 153, 150, 147, 144, 141, 138, 135, 189, 183, 180, 177, 174, 168, 162, 156, 147, 144, 126, 120, 117, 108}}},
1295 // int -> QUANT16_SYMM map
1296 .quant16SymmOperands = {},
1297 // int -> FLOAT16 map
1298 .float16Operands = {},
1299 // int -> BOOL8 map
1300 .bool8Operands = {},
1301 // int -> QUANT8_SYMM_PER_CHANNEL map
1302 .quant8ChannelOperands = {},
1303 // int -> QUANT16_ASYMM map
1304 .quant16AsymmOperands = {{1, {135, 20, 265, 60, 264, 326, 351, 378, 0, 73, 130, 112, 0, 206, 206, 242, 304, 166, 356, 262, 242, 258, 263, 305, 207, 233, 251, 247, 23, 46, 214, 82, 4, 29, 124, 42, 86, 288, 122, 301, 12, 184, 33, 289, 0, 125, 89, 173, 308, 282, 428, 326, 209, 387, 220, 512, 240, 26, 266, 154, 93, 352, 387, 371, 0, 216, 214, 248, 229, 72, 256, 177, 143, 152, 256, 168, 29, 58, 93, 153, 40, 214, 75, 256, 121, 144, 160, 202, 247, 77, 256, 99, 27, 30, 256, 78, 200, 81, 229, 95, 112, 31, 176, 49, 194, 54, 216, 182, 29, 156, 108, 228, 96, 235, 148, 256, 139, 0, 162, 129}}},
1305 // int -> QUANT8_SYMM map
1306 .quant8SymmOperands = {},
1307 }
1308 },
1309 }, // End of an example
1310 };
1311 return examples_nchw_quant8_2;
1312 };
1313
get_examples_nchw_float16_2()1314 std::vector<MixedTypedExample>& get_examples_nchw_float16_2() {
1315 static std::vector<MixedTypedExample> examples_nchw_float16_2 = {
1316 // Begin of an example
1317 {
1318 .operands = {
1319 //Input(s)
1320 { // See tools/test_generator/include/TestHarness.h:MixedTyped
1321 // int -> Dimensions map
1322 .operandDimensions = {{0, {2, 4, 4, 4}}, {1, {2, 16, 4, 4}}, {2, {4, 4}}, {3, {2, 2}}},
1323 // int -> FLOAT32 map
1324 .float32Operands = {},
1325 // int -> INT32 map
1326 .int32Operands = {},
1327 // int -> QUANT8_ASYMM map
1328 .quant8AsymmOperands = {},
1329 // int -> QUANT16_SYMM map
1330 .quant16SymmOperands = {},
1331 // int -> FLOAT16 map
1332 .float16Operands = {{0, {0.8849999904632568f, 0.7950000166893005f, 0.27000001072883606f, 0.4650000035762787f, 0.47999998927116394f, 0.4950000047683716f, 0.23999999463558197f, 0.4350000023841858f, 0.8999999761581421f, 0.36000001430511475f, 0.0f, 0.8700000047683716f, 0.824999988079071f, 0.5400000214576721f, 0.41999998688697815f, 0.8399999737739563f, 0.20999999344348907f, 0.6600000262260437f, 0.6899999976158142f, 0.3449999988079071f, 0.6000000238418579f, 0.029999999329447746f, 0.2849999964237213f, 0.2549999952316284f, 0.75f, 0.09000000357627869f, 0.19499999284744263f, 0.9300000071525574f, 0.5249999761581421f, 0.7049999833106995f, 0.04500000178813934f, 0.13500000536441803f, 0.7799999713897705f, 0.9150000214576721f, 0.6449999809265137f, 0.8550000190734863f, 0.7350000143051147f, 0.11999999731779099f, 0.5099999904632568f, 0.5849999785423279f, 0.18000000715255737f, 0.4050000011920929f, 0.07500000298023224f, 0.38999998569488525f, 0.7649999856948853f, 0.675000011920929f, 0.33000001311302185f, 0.7200000286102295f, 0.5699999928474426f, 0.6150000095367432f, 0.9449999928474426f, 0.5550000071525574f, 0.6299999952316284f, 0.22499999403953552f, 0.3149999976158142f, 0.05999999865889549f, 0.44999998807907104f, 0.15000000596046448f, 0.8100000023841858f, 0.16500000655651093f, 0.10499999672174454f, 0.30000001192092896f, 0.014999999664723873f, 0.375f, 0.4950000047683716f, 0.20999999344348907f, 0.04500000178813934f, 0.13500000536441803f, 0.38999998569488525f, 0.8999999761581421f, 0.375f, 0.014999999664723873f, 0.33000001311302185f, 0.07500000298023224f, 0.5849999785423279f, 0.7950000166893005f, 0.0f, 0.6899999976158142f, 0.029999999329447746f, 0.7649999856948853f, 0.3149999976158142f, 0.5400000214576721f, 0.9300000071525574f, 0.09000000357627869f, 0.8849999904632568f, 0.22499999403953552f, 0.6299999952316284f, 0.47999998927116394f, 0.4650000035762787f, 0.8399999737739563f, 0.16500000655651093f, 0.8550000190734863f, 0.8700000047683716f, 0.5550000071525574f, 0.9150000214576721f, 0.11999999731779099f, 0.19499999284744263f, 0.7799999713897705f, 0.27000001072883606f, 0.8100000023841858f, 0.41999998688697815f, 0.75f, 0.824999988079071f, 0.6449999809265137f, 0.6600000262260437f, 0.2849999964237213f, 0.05999999865889549f, 0.10499999672174454f, 0.5249999761581421f, 0.15000000596046448f, 0.4050000011920929f, 0.5099999904632568f, 0.23999999463558197f, 0.7200000286102295f, 0.7350000143051147f, 0.7049999833106995f, 0.9449999928474426f, 0.30000001192092896f, 0.675000011920929f, 0.6150000095367432f, 0.6000000238418579f, 0.5699999928474426f, 0.36000001430511475f, 0.44999998807907104f, 0.2549999952316284f, 0.3449999988079071f, 0.4350000023841858f, 0.18000000715255737f}}, {1, {-1.899999976158142f, -0.20000000298023224f, -1.5f, 1.2000000476837158f, 0.10000000149011612f, 0.4000000059604645f, 0.0f, 0.0f, 0.10000000149011612f, 0.0f, 0.0f, 0.20000000298023224f, 1.0f, -0.6000000238418579f, -1.2999999523162842f, -0.4000000059604645f, 0.4000000059604645f, 0.0f, 1.2999999523162842f, -0.30000001192092896f, 0.0f, -0.699999988079071f, 0.8999999761581421f, 1.0f, 0.0f, 1.0f, 0.0f, -0.30000001192092896f, 0.6000000238418579f, -0.30000001192092896f, 1.2999999523162842f, -0.699999988079071f, 1.399999976158142f, 0.4000000059604645f, -0.699999988079071f, 0.0f, 0.699999988079071f, -0.8999999761581421f, -1.7000000476837158f, -0.10000000149011612f, 0.699999988079071f, -1.399999976158142f, -0.30000001192092896f, -0.8999999761581421f, 0.0f, 1.2999999523162842f, 0.10000000149011612f, -1.7999999523162842f, 0.5f, 0.10000000149011612f, -0.8999999761581421f, 0.30000001192092896f, -0.8999999761581421f, 0.0f, 0.30000001192092896f, -0.30000001192092896f, 0.10000000149011612f, -1.100000023841858f, 0.0f, 1.100000023841858f, -1.600000023841858f, 0.10000000149011612f, 2.0f, 0.4000000059604645f, -1.5f, -0.20000000298023224f, 0.8999999761581421f, -0.699999988079071f, 0.10000000149011612f, 0.0f, 0.699999988079071f, -0.800000011920929f, -1.2999999523162842f, 0.6000000238418579f, -1.100000023841858f, 0.10000000149011612f, 0.10000000149011612f, 2.200000047683716f, 0.0f, -0.699999988079071f, -0.20000000298023224f, -1.600000023841858f, 0.20000000298023224f, 1.0f, -0.4000000059604645f, 0.4000000059604645f, -0.699999988079071f, 0.10000000149011612f, 0.10000000149011612f, -0.699999988079071f, -1.5f, 1.0f, -1.2000000476837158f, 1.2000000476837158f, 0.20000000298023224f, 0.4000000059604645f, 0.30000001192092896f, -0.6000000238418579f, -0.20000000298023224f, -0.20000000298023224f, 0.30000001192092896f, -0.6000000238418579f, 0.699999988079071f, -1.2000000476837158f, -0.4000000059604645f, 0.4000000059604645f, 0.8999999761581421f, 1.0f, 0.699999988079071f, -1.100000023841858f, 0.6000000238418579f, 1.399999976158142f, 1.2000000476837158f, -0.10000000149011612f, 0.0f, -0.6000000238418579f, -0.30000001192092896f, 0.4000000059604645f, 1.2000000476837158f, -2.4000000953674316f, -0.20000000298023224f, 1.100000023841858f, -1.399999976158142f, -0.8999999761581421f, 0.800000011920929f, 0.10000000149011612f, 0.0f, -0.30000001192092896f, 0.0f, -1.0f, -0.699999988079071f, -1.2999999523162842f, -0.699999988079071f, -1.899999976158142f, -0.4000000059604645f, 0.10000000149011612f, 0.20000000298023224f, -1.100000023841858f, -0.699999988079071f, 0.699999988079071f, 0.5f, 1.2000000476837158f, -0.10000000149011612f, 0.800000011920929f, -0.6000000238418579f, 0.6000000238418579f, 0.30000001192092896f, 0.0f, 0.10000000149011612f, -1.2000000476837158f, -0.10000000149011612f, 1.399999976158142f, 0.10000000149011612f, 1.600000023841858f, 0.10000000149011612f, 0.0f, -0.20000000298023224f, 1.2000000476837158f, -0.4000000059604645f, 0.0f, 0.4000000059604645f, 0.5f, -0.4000000059604645f, 0.30000001192092896f, 0.699999988079071f, 0.0f, -0.6000000238418579f, 0.4000000059604645f, -0.800000011920929f, -0.30000001192092896f, -1.399999976158142f, -0.30000001192092896f, -0.800000011920929f, 1.2999999523162842f, -0.5f, 0.4000000059604645f, -1.2999999523162842f, -0.20000000298023224f, -0.30000001192092896f, 0.10000000149011612f, 0.0f, -0.30000001192092896f, 0.6000000238418579f, 0.10000000149011612f, 0.0f, 0.0f, 0.8999999761581421f, 0.20000000298023224f, -1.2999999523162842f, -0.8999999761581421f, 0.10000000149011612f, -0.10000000149011612f, 0.800000011920929f, -1.7000000476837158f, -0.5f, 0.4000000059604645f, -0.30000001192092896f, 0.20000000298023224f, -0.4000000059604645f, -1.100000023841858f, -1.399999976158142f, -0.699999988079071f, 0.10000000149011612f, -0.800000011920929f, -0.30000001192092896f, 0.10000000149011612f, -0.6000000238418579f, -1.0f, 0.8999999761581421f, -1.399999976158142f, -0.30000001192092896f, 0.20000000298023224f, 1.600000023841858f, 0.0f, -0.20000000298023224f, 0.4000000059604645f, 2.0f, 0.30000001192092896f, 0.20000000298023224f, -0.5f, 0.0f, -0.5f, -0.30000001192092896f, 0.20000000298023224f, -0.20000000298023224f, 0.5f, 1.0f, 2.4000000953674316f, 0.0f, 0.10000000149011612f, 0.30000001192092896f, -0.4000000059604645f, -0.6000000238418579f, -1.2999999523162842f, -0.10000000149011612f, 0.6000000238418579f, 0.0f, 0.10000000149011612f, 0.20000000298023224f, 0.5f, 0.800000011920929f, -0.10000000149011612f, -0.699999988079071f, 0.0f, 1.100000023841858f, 0.800000011920929f, -0.5f, -0.20000000298023224f, -0.5f, 0.0f, -1.7000000476837158f, -1.2000000476837158f, 0.30000001192092896f, -0.699999988079071f, -0.4000000059604645f, -0.6000000238418579f, -1.100000023841858f, -0.800000011920929f, -1.0f, 0.0f, 0.10000000149011612f, 0.6000000238418579f, -0.699999988079071f, -0.10000000149011612f, -0.4000000059604645f, -0.5f, -0.800000011920929f, 0.0f, 0.699999988079071f, 0.30000001192092896f, -0.30000001192092896f, -1.600000023841858f, 0.20000000298023224f, -1.2999999523162842f, -0.30000001192092896f, -0.699999988079071f, -1.7000000476837158f, 0.5f, 0.0f, -0.10000000149011612f, 0.10000000149011612f, 0.30000001192092896f, 0.699999988079071f, 0.30000001192092896f, -0.4000000059604645f, 0.0f, -0.10000000149011612f, 2.0999999046325684f, 1.600000023841858f, -0.800000011920929f, -0.699999988079071f, -0.10000000149011612f, -1.5f, 0.20000000298023224f, -1.2000000476837158f, 0.0f, -0.20000000298023224f, -0.699999988079071f, -0.8999999761581421f, -0.30000001192092896f, 0.0f, 0.8999999761581421f, 1.2999999523162842f, -0.6000000238418579f, -0.20000000298023224f, 0.20000000298023224f, -0.30000001192092896f, -1.5f, 0.0f, -0.699999988079071f, 0.6000000238418579f, -0.4000000059604645f, -0.800000011920929f, 0.8999999761581421f, -0.30000001192092896f, -0.20000000298023224f, 0.0f, -0.20000000298023224f, 0.20000000298023224f, -0.20000000298023224f, -0.4000000059604645f, 0.20000000298023224f, -0.4000000059604645f, -0.8999999761581421f, -0.10000000149011612f, 0.20000000298023224f, -0.6000000238418579f, -0.20000000298023224f, 0.0f, -0.10000000149011612f, -0.30000001192092896f, 0.699999988079071f, -0.20000000298023224f, 0.699999988079071f, 0.6000000238418579f, -0.30000001192092896f, -0.8999999761581421f, -0.4000000059604645f, -1.0f, 0.6000000238418579f, -0.30000001192092896f, 0.10000000149011612f, -0.20000000298023224f, 0.4000000059604645f, -1.2999999523162842f, -0.4000000059604645f, -2.799999952316284f, -0.800000011920929f, -0.20000000298023224f, 1.2000000476837158f, -1.399999976158142f, 0.5f, 0.0f, -0.30000001192092896f, -0.6000000238418579f, 0.30000001192092896f, 0.699999988079071f, 1.2000000476837158f, -0.4000000059604645f, -1.399999976158142f, 1.2000000476837158f, 0.20000000298023224f, 1.0f, -0.10000000149011612f, 0.10000000149011612f, 0.5f, -0.10000000149011612f, 0.8999999761581421f, 0.30000001192092896f, 0.6000000238418579f, -0.699999988079071f, -0.10000000149011612f, -0.30000001192092896f, 2.200000047683716f, 0.0f, 0.30000001192092896f, 1.399999976158142f, -0.800000011920929f, 1.399999976158142f, 0.5f, 0.0f, 0.800000011920929f, -0.20000000298023224f, -0.4000000059604645f, 0.0f, 0.20000000298023224f, -0.20000000298023224f, 0.20000000298023224f, -0.4000000059604645f, 0.30000001192092896f, 0.699999988079071f, 0.10000000149011612f, 1.100000023841858f, 1.0f, 0.0f, 0.699999988079071f, 0.0f, -0.5f, -0.4000000059604645f, 0.0f, 0.30000001192092896f, -0.20000000298023224f, 0.6000000238418579f, 0.5f, 0.0f, 0.6000000238418579f, -1.2000000476837158f, 1.2999999523162842f, 0.5f, 1.0f, -2.5999999046325684f, 1.399999976158142f, -0.699999988079071f, 1.0f, -0.8999999761581421f, -0.10000000149011612f, -0.30000001192092896f, 1.2000000476837158f, -0.30000001192092896f, 0.6000000238418579f, -0.4000000059604645f, 0.4000000059604645f, 0.800000011920929f, -0.20000000298023224f, 0.30000001192092896f, 0.10000000149011612f, 1.100000023841858f, -1.2000000476837158f, -0.699999988079071f, 0.20000000298023224f, 1.2000000476837158f, 0.10000000149011612f, 0.30000001192092896f, 0.0f, 0.5f, -0.800000011920929f, -0.30000001192092896f, 0.10000000149011612f, 0.0f, -0.699999988079071f, 0.0f, 0.10000000149011612f, -1.100000023841858f, -1.0f, -1.399999976158142f, -0.5f, -0.8999999761581421f, -0.6000000238418579f, 0.30000001192092896f, 0.0f, -0.20000000298023224f, -0.30000001192092896f, 0.10000000149011612f, 0.20000000298023224f, -0.30000001192092896f, 0.6000000238418579f, 0.10000000149011612f, -0.20000000298023224f, 0.5f, -0.6000000238418579f, -0.8999999761581421f, 1.2999999523162842f, -0.20000000298023224f, -1.0f, 1.899999976158142f, -0.30000001192092896f, 0.30000001192092896f, 0.6000000238418579f, 1.100000023841858f, 0.0f, 0.20000000298023224f, 0.699999988079071f, -0.4000000059604645f, 0.0f, 0.10000000149011612f, 0.20000000298023224f, -0.5f, -0.5f, -1.2000000476837158f, -0.699999988079071f, 0.30000001192092896f, 0.30000001192092896f, -0.5f, 0.8999999761581421f, 1.7999999523162842f, -1.100000023841858f, 0.6000000238418579f, 0.6000000238418579f, 0.5f, -0.4000000059604645f, -0.4000000059604645f, 1.100000023841858f, -0.6000000238418579f, 0.30000001192092896f, -1.0f, 0.20000000298023224f, -0.5f, -1.5f, -1.7000000476837158f, -0.30000001192092896f, -0.8999999761581421f, -0.20000000298023224f, -1.0f, 0.10000000149011612f, -0.10000000149011612f, -0.30000001192092896f, -1.5f, -0.8999999761581421f, 0.4000000059604645f, 1.2000000476837158f, -0.20000000298023224f, -0.20000000298023224f}}, {2, {0.0f, 6.0f, 16.0f, 10.0f, 6.0f, 0.0f, 10.0f, 16.0f, 3.0f, 5.0f, 13.0f, 11.0f, 5.0f, 3.0f, 11.0f, 13.0f}}, {3, {64.0f, 64.0f, 32.0f, 32.0f}}},
1333 // int -> BOOL8 map
1334 .bool8Operands = {},
1335 // int -> QUANT8_SYMM_PER_CHANNEL map
1336 .quant8ChannelOperands = {},
1337 // int -> QUANT16_ASYMM map
1338 .quant16AsymmOperands = {},
1339 // int -> QUANT8_SYMM map
1340 .quant8SymmOperands = {},
1341 },
1342 //Output(s)
1343 { // See tools/test_generator/include/TestHarness.h:MixedTyped
1344 // int -> Dimensions map
1345 .operandDimensions = {{0, {30}}, {1, {30, 4}}, {2, {30}}},
1346 // int -> FLOAT32 map
1347 .float32Operands = {},
1348 // int -> INT32 map
1349 .int32Operands = {{2, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}}},
1350 // int -> QUANT8_ASYMM map
1351 .quant8AsymmOperands = {},
1352 // int -> QUANT16_SYMM map
1353 .quant16SymmOperands = {},
1354 // int -> FLOAT16 map
1355 .float16Operands = {{0, {0.9449999928474426f, 0.9300000071525574f, 0.9150000214576721f, 0.8999999761581421f, 0.8700000047683716f, 0.8399999737739563f, 0.8100000023841858f, 0.7950000166893005f, 0.7799999713897705f, 0.7649999856948853f, 0.75f, 0.7350000143051147f, 0.7200000286102295f, 0.7049999833106995f, 0.6899999976158142f, 0.675000011920929f, 0.9449999928474426f, 0.9150000214576721f, 0.8999999761581421f, 0.8849999904632568f, 0.8700000047683716f, 0.8399999737739563f, 0.8100000023841858f, 0.7799999713897705f, 0.7350000143051147f, 0.7200000286102295f, 0.6299999952316284f, 0.6000000238418579f, 0.5849999785423279f, 0.5400000214576721f}}, {1, {16.84515380859375f, 2.517073392868042f, 33.15484619140625f, 7.482926368713379f, 32.96343994140625f, 40.74744415283203f, 43.83656311035156f, 47.25255584716797f, 0.0f, 9.143808364868164f, 16.243606567382812f, 14.056192398071289f, 0.0f, 25.789657592773438f, 25.71002197265625f, 30.210342407226562f, 37.947444915771484f, 20.791667938232422f, 44.45255661010742f, 32.80833053588867f, 30.27760887145996f, 32.21635055541992f, 32.92238998413086f, 38.183650970458984f, 25.885488510131836f, 29.08658218383789f, 31.314512252807617f, 30.91341781616211f, 2.8654022216796875f, 5.789658069610596f, 26.73459815979004f, 10.210342407226562f, 0.5408763885498047f, 3.582404136657715f, 15.459123611450195f, 5.217595100402832f, 10.753355026245117f, 35.98240280151367f, 15.246644973754883f, 37.61759567260742f, 1.459360122680664f, 23.050153732299805f, 4.1406402587890625f, 36.149845123291016f, 0.0f, 15.600000381469727f, 11.068763732910156f, 21.600000381469727f, 38.54087829589844f, 35.28548812866211f, 53.45912170410156f, 40.71451187133789f, 26.13425636291504f, 48.35863494873047f, 27.465742111206055f, 64.0f, 29.962539672851562f, 3.1999998092651367f, 33.23746109008789f, 19.200000762939453f, 11.65351676940918f, 43.98029327392578f, 48.34648132324219f, 46.419708251953125f, 0.0f, 26.967151641845703f, 26.74894142150879f, 31.032848358154297f, 28.59032440185547f, 9.050153732299805f, 32.0f, 22.14984703063965f, 17.828777313232422f, 19.0068302154541f, 32.0f, 20.9931697845459f, 3.5724945068359375f, 7.273454189300537f, 11.6275053024292f, 19.126544952392578f, 4.989657878875732f, 26.799999237060547f, 9.410341262817383f, 32.0f, 15.157195091247559f, 18.005369186401367f, 20.04280662536621f, 25.194631576538086f, 30.889404296875f, 9.652012825012207f, 32.0f, 12.347987174987793f, 3.3994140625f, 3.8000001907348633f, 32.0f, 9.800000190734863f, 24.98040771484375f, 10.08658218383789f, 28.619590759277344f, 11.91341781616211f, 13.950423240661621f, 3.8843491077423096f, 22.049575805664062f, 6.1156511306762695f, 24.259361267089844f, 6.800000190734863f, 26.94063949584961f, 22.799999237060547f, 3.653836727142334f, 19.475812911987305f, 13.546163558959961f, 28.524187088012695f, 11.947443008422852f, 29.318363189697266f, 18.452556610107422f, 32.0f, 17.318363189697266f, 0.0f, 20.281635284423828f, 16.176950454711914f}}},
1356 // int -> BOOL8 map
1357 .bool8Operands = {},
1358 // int -> QUANT8_SYMM_PER_CHANNEL map
1359 .quant8ChannelOperands = {},
1360 // int -> QUANT16_ASYMM map
1361 .quant16AsymmOperands = {},
1362 // int -> QUANT8_SYMM map
1363 .quant8SymmOperands = {},
1364 }
1365 },
1366 }, // End of an example
1367 };
1368 return examples_nchw_float16_2;
1369 };
1370
get_examples_dynamic_output_shape_nhwc_2()1371 std::vector<MixedTypedExample>& get_examples_dynamic_output_shape_nhwc_2() {
1372 static std::vector<MixedTypedExample> examples_dynamic_output_shape_nhwc_2 = {
1373 // Begin of an example
1374 {
1375 .operands = {
1376 //Input(s)
1377 { // See tools/test_generator/include/TestHarness.h:MixedTyped
1378 // int -> Dimensions map
1379 .operandDimensions = {{0, {2, 4, 4, 4}}, {1, {2, 4, 4, 16}}, {2, {4, 4}}, {3, {2, 2}}},
1380 // int -> FLOAT32 map
1381 .float32Operands = {{0, {0.885f, 0.21f, 0.78f, 0.57f, 0.795f, 0.66f, 0.915f, 0.615f, 0.27f, 0.69f, 0.645f, 0.945f, 0.465f, 0.345f, 0.855f, 0.555f, 0.48f, 0.6f, 0.735f, 0.63f, 0.495f, 0.03f, 0.12f, 0.225f, 0.24f, 0.285f, 0.51f, 0.315f, 0.435f, 0.255f, 0.585f, 0.06f, 0.9f, 0.75f, 0.18f, 0.45f, 0.36f, 0.09f, 0.405f, 0.15f, 0.0f, 0.195f, 0.075f, 0.81f, 0.87f, 0.93f, 0.39f, 0.165f, 0.825f, 0.525f, 0.765f, 0.105f, 0.54f, 0.705f, 0.675f, 0.3f, 0.42f, 0.045f, 0.33f, 0.015f, 0.84f, 0.135f, 0.72f, 0.375f, 0.495f, 0.315f, 0.195f, 0.24f, 0.21f, 0.54f, 0.78f, 0.72f, 0.045f, 0.93f, 0.27f, 0.735f, 0.135f, 0.09f, 0.81f, 0.705f, 0.39f, 0.885f, 0.42f, 0.945f, 0.9f, 0.225f, 0.75f, 0.3f, 0.375f, 0.63f, 0.825f, 0.675f, 0.015f, 0.48f, 0.645f, 0.615f, 0.33f, 0.465f, 0.66f, 0.6f, 0.075f, 0.84f, 0.285f, 0.57f, 0.585f, 0.165f, 0.06f, 0.36f, 0.795f, 0.855f, 0.105f, 0.45f, 0.0f, 0.87f, 0.525f, 0.255f, 0.69f, 0.555f, 0.15f, 0.345f, 0.03f, 0.915f, 0.405f, 0.435f, 0.765f, 0.12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f, -0.7f, 0.2f, -0.2f}}, {2, {0.0f, 6.0f, 16.0f, 10.0f, 6.0f, 0.0f, 10.0f, 16.0f, 3.0f, 5.0f, 13.0f, 11.0f, 5.0f, 3.0f, 11.0f, 13.0f}}, {3, {64.0f, 64.0f, 32.0f, 32.0f}}},
1382 // int -> INT32 map
1383 .int32Operands = {},
1384 // int -> QUANT8_ASYMM map
1385 .quant8AsymmOperands = {},
1386 // int -> QUANT16_SYMM map
1387 .quant16SymmOperands = {},
1388 // int -> FLOAT16 map
1389 .float16Operands = {},
1390 // int -> BOOL8 map
1391 .bool8Operands = {},
1392 // int -> QUANT8_SYMM_PER_CHANNEL map
1393 .quant8ChannelOperands = {},
1394 // int -> QUANT16_ASYMM map
1395 .quant16AsymmOperands = {},
1396 // int -> QUANT8_SYMM map
1397 .quant8SymmOperands = {},
1398 },
1399 //Output(s)
1400 { // See tools/test_generator/include/TestHarness.h:MixedTyped
1401 // int -> Dimensions map
1402 .operandDimensions = {{0, {30}}, {1, {30, 4}}, {2, {30}}},
1403 // int -> FLOAT32 map
1404 .float32Operands = {{0, {0.945f, 0.93f, 0.915f, 0.9f, 0.87f, 0.84f, 0.81f, 0.795f, 0.78f, 0.765f, 0.75f, 0.735f, 0.72f, 0.705f, 0.69f, 0.675f, 0.945f, 0.915f, 0.9f, 0.885f, 0.87f, 0.84f, 0.81f, 0.78f, 0.735f, 0.72f, 0.63f, 0.6f, 0.585f, 0.54f}}, {1, {16.845154f, 2.5170734f, 33.154846f, 7.4829264f, 32.96344f, 40.747444f, 43.836563f, 47.252556f, 0.0f, 9.143808f, 16.243607f, 14.056192f, 0.0f, 25.789658f, 25.710022f, 30.210342f, 37.947445f, 20.791668f, 44.452557f, 32.80833f, 30.277609f, 32.21635f, 32.92239f, 38.18365f, 25.885489f, 29.086582f, 31.314512f, 30.913418f, 2.8654022f, 5.789658f, 26.734598f, 10.210342f, 0.5408764f, 3.5824041f, 15.459124f, 5.217595f, 10.753355f, 35.982403f, 15.246645f, 37.617596f, 1.4593601f, 23.050154f, 4.1406403f, 36.149845f, 0.0f, 15.6f, 11.068764f, 21.6f, 38.54088f, 35.28549f, 53.45912f, 40.71451f, 26.134256f, 48.358635f, 27.465742f, 64.0f, 29.96254f, 3.1999998f, 33.23746f, 19.2f, 11.653517f, 43.980293f, 48.34648f, 46.41971f, 0.0f, 26.967152f, 26.748941f, 31.032848f, 28.590324f, 9.050154f, 32.0f, 22.149847f, 17.828777f, 19.00683f, 32.0f, 20.99317f, 3.5724945f, 7.273454f, 11.627505f, 19.126545f, 4.989658f, 26.8f, 9.410341f, 32.0f, 15.157195f, 18.00537f, 20.042807f, 25.194632f, 30.889404f, 9.652013f, 32.0f, 12.347987f, 3.399414f, 3.8000002f, 32.0f, 9.8f, 24.980408f, 10.086582f, 28.61959f, 11.913418f, 13.950423f, 3.884349f, 22.049576f, 6.115651f, 24.259361f, 6.8f, 26.94064f, 22.8f, 3.6538367f, 19.475813f, 13.546164f, 28.524187f, 11.947443f, 29.318363f, 18.452557f, 32.0f, 17.318363f, 0.0f, 20.281635f, 16.17695f}}},
1405 // int -> INT32 map
1406 .int32Operands = {{2, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}}},
1407 // int -> QUANT8_ASYMM map
1408 .quant8AsymmOperands = {},
1409 // int -> QUANT16_SYMM map
1410 .quant16SymmOperands = {},
1411 // int -> FLOAT16 map
1412 .float16Operands = {},
1413 // int -> BOOL8 map
1414 .bool8Operands = {},
1415 // int -> QUANT8_SYMM_PER_CHANNEL map
1416 .quant8ChannelOperands = {},
1417 // int -> QUANT16_ASYMM map
1418 .quant16AsymmOperands = {},
1419 // int -> QUANT8_SYMM map
1420 .quant8SymmOperands = {},
1421 }
1422 },
1423 }, // End of an example
1424 };
1425 return examples_dynamic_output_shape_nhwc_2;
1426 };
1427
get_examples_dynamic_output_shape_nhwc_relaxed_2()1428 std::vector<MixedTypedExample>& get_examples_dynamic_output_shape_nhwc_relaxed_2() {
1429 static std::vector<MixedTypedExample> examples_dynamic_output_shape_nhwc_relaxed_2 = {
1430 // Begin of an example
1431 {
1432 .operands = {
1433 //Input(s)
1434 { // See tools/test_generator/include/TestHarness.h:MixedTyped
1435 // int -> Dimensions map
1436 .operandDimensions = {{0, {2, 4, 4, 4}}, {1, {2, 4, 4, 16}}, {2, {4, 4}}, {3, {2, 2}}},
1437 // int -> FLOAT32 map
1438 .float32Operands = {{0, {0.885f, 0.21f, 0.78f, 0.57f, 0.795f, 0.66f, 0.915f, 0.615f, 0.27f, 0.69f, 0.645f, 0.945f, 0.465f, 0.345f, 0.855f, 0.555f, 0.48f, 0.6f, 0.735f, 0.63f, 0.495f, 0.03f, 0.12f, 0.225f, 0.24f, 0.285f, 0.51f, 0.315f, 0.435f, 0.255f, 0.585f, 0.06f, 0.9f, 0.75f, 0.18f, 0.45f, 0.36f, 0.09f, 0.405f, 0.15f, 0.0f, 0.195f, 0.075f, 0.81f, 0.87f, 0.93f, 0.39f, 0.165f, 0.825f, 0.525f, 0.765f, 0.105f, 0.54f, 0.705f, 0.675f, 0.3f, 0.42f, 0.045f, 0.33f, 0.015f, 0.84f, 0.135f, 0.72f, 0.375f, 0.495f, 0.315f, 0.195f, 0.24f, 0.21f, 0.54f, 0.78f, 0.72f, 0.045f, 0.93f, 0.27f, 0.735f, 0.135f, 0.09f, 0.81f, 0.705f, 0.39f, 0.885f, 0.42f, 0.945f, 0.9f, 0.225f, 0.75f, 0.3f, 0.375f, 0.63f, 0.825f, 0.675f, 0.015f, 0.48f, 0.645f, 0.615f, 0.33f, 0.465f, 0.66f, 0.6f, 0.075f, 0.84f, 0.285f, 0.57f, 0.585f, 0.165f, 0.06f, 0.36f, 0.795f, 0.855f, 0.105f, 0.45f, 0.0f, 0.87f, 0.525f, 0.255f, 0.69f, 0.555f, 0.15f, 0.345f, 0.03f, 0.915f, 0.405f, 0.435f, 0.765f, 0.12f, 0.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7f, 0.2f, -0.2f}}, {2, {0.0f, 6.0f, 16.0f, 10.0f, 6.0f, 0.0f, 10.0f, 16.0f, 3.0f, 5.0f, 13.0f, 11.0f, 5.0f, 3.0f, 11.0f, 13.0f}}, {3, {64.0f, 64.0f, 32.0f, 32.0f}}},
1439 // int -> INT32 map
1440 .int32Operands = {},
1441 // int -> QUANT8_ASYMM map
1442 .quant8AsymmOperands = {},
1443 // int -> QUANT16_SYMM map
1444 .quant16SymmOperands = {},
1445 // int -> FLOAT16 map
1446 .float16Operands = {},
1447 // int -> BOOL8 map
1448 .bool8Operands = {},
1449 // int -> QUANT8_SYMM_PER_CHANNEL map
1450 .quant8ChannelOperands = {},
1451 // int -> QUANT16_ASYMM map
1452 .quant16AsymmOperands = {},
1453 // int -> QUANT8_SYMM map
1454 .quant8SymmOperands = {},
1455 },
1456 //Output(s)
1457 { // See tools/test_generator/include/TestHarness.h:MixedTyped
1458 // int -> Dimensions map
1459 .operandDimensions = {{0, {30}}, {1, {30, 4}}, {2, {30}}},
1460 // int -> FLOAT32 map
1461 .float32Operands = {{0, {0.945f, 0.93f, 0.915f, 0.9f, 0.87f, 0.84f, 0.81f, 0.795f, 0.78f, 0.765f, 0.75f, 0.735f, 0.72f, 0.705f, 0.69f, 0.675f, 0.945f, 0.915f, 0.9f, 0.885f, 0.87f, 0.84f, 0.81f, 0.78f, 0.735f, 0.72f, 0.63f, 0.6f, 0.585f, 0.54f}}, {1, {16.845154f, 2.5170734f, 33.154846f, 7.4829264f, 32.96344f, 40.747444f, 43.836563f, 47.252556f, 0.0f, 9.143808f, 16.243607f, 14.056192f, 0.0f, 25.789658f, 25.710022f, 30.210342f, 37.947445f, 20.791668f, 44.452557f, 32.80833f, 30.277609f, 32.21635f, 32.92239f, 38.18365f, 25.885489f, 29.086582f, 31.314512f, 30.913418f, 2.8654022f, 5.789658f, 26.734598f, 10.210342f, 0.5408764f, 3.5824041f, 15.459124f, 5.217595f, 10.753355f, 35.982403f, 15.246645f, 37.617596f, 1.4593601f, 23.050154f, 4.1406403f, 36.149845f, 0.0f, 15.6f, 11.068764f, 21.6f, 38.54088f, 35.28549f, 53.45912f, 40.71451f, 26.134256f, 48.358635f, 27.465742f, 64.0f, 29.96254f, 3.1999998f, 33.23746f, 19.2f, 11.653517f, 43.980293f, 48.34648f, 46.41971f, 0.0f, 26.967152f, 26.748941f, 31.032848f, 28.590324f, 9.050154f, 32.0f, 22.149847f, 17.828777f, 19.00683f, 32.0f, 20.99317f, 3.5724945f, 7.273454f, 11.627505f, 19.126545f, 4.989658f, 26.8f, 9.410341f, 32.0f, 15.157195f, 18.00537f, 20.042807f, 25.194632f, 30.889404f, 9.652013f, 32.0f, 12.347987f, 3.399414f, 3.8000002f, 32.0f, 9.8f, 24.980408f, 10.086582f, 28.61959f, 11.913418f, 13.950423f, 3.884349f, 22.049576f, 6.115651f, 24.259361f, 6.8f, 26.94064f, 22.8f, 3.6538367f, 19.475813f, 13.546164f, 28.524187f, 11.947443f, 29.318363f, 18.452557f, 32.0f, 17.318363f, 0.0f, 20.281635f, 16.17695f}}},
1462 // int -> INT32 map
1463 .int32Operands = {{2, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}}},
1464 // int -> QUANT8_ASYMM map
1465 .quant8AsymmOperands = {},
1466 // int -> QUANT16_SYMM map
1467 .quant16SymmOperands = {},
1468 // int -> FLOAT16 map
1469 .float16Operands = {},
1470 // int -> BOOL8 map
1471 .bool8Operands = {},
1472 // int -> QUANT8_SYMM_PER_CHANNEL map
1473 .quant8ChannelOperands = {},
1474 // int -> QUANT16_ASYMM map
1475 .quant16AsymmOperands = {},
1476 // int -> QUANT8_SYMM map
1477 .quant8SymmOperands = {},
1478 }
1479 },
1480 }, // End of an example
1481 };
1482 return examples_dynamic_output_shape_nhwc_relaxed_2;
1483 };
1484
get_examples_dynamic_output_shape_nhwc_quant8_2()1485 std::vector<MixedTypedExample>& get_examples_dynamic_output_shape_nhwc_quant8_2() {
1486 static std::vector<MixedTypedExample> examples_dynamic_output_shape_nhwc_quant8_2 = {
1487 // Begin of an example
1488 {
1489 .operands = {
1490 //Input(s)
1491 { // See tools/test_generator/include/TestHarness.h:MixedTyped
1492 // int -> Dimensions map
1493 .operandDimensions = {{0, {2, 4, 4, 4}}, {1, {2, 4, 4, 16}}, {2, {4, 4}}, {3, {2, 2}}},
1494 // int -> FLOAT32 map
1495 .float32Operands = {},
1496 // int -> INT32 map
1497 .int32Operands = {},
1498 // int -> QUANT8_ASYMM map
1499 .quant8AsymmOperands = {{0, {177, 42, 156, 114, 159, 132, 183, 123, 54, 138, 129, 189, 93, 69, 171, 111, 96, 120, 147, 126, 99, 6, 24, 45, 48, 57, 102, 63, 87, 51, 117, 12, 180, 150, 36, 90, 72, 18, 81, 30, 0, 39, 15, 162, 174, 186, 78, 33, 165, 105, 153, 21, 108, 141, 135, 60, 84, 9, 66, 3, 168, 27, 144, 75, 99, 63, 39, 48, 42, 108, 156, 144, 9, 186, 54, 147, 27, 18, 162, 141, 78, 177, 84, 189, 180, 45, 150, 60, 75, 126, 165, 135, 3, 96, 129, 123, 66, 93, 132, 120, 15, 168, 57, 114, 117, 33, 12, 72, 159, 171, 21, 90, 0, 174, 105, 51, 138, 111, 30, 69, 6, 183, 81, 87, 153, 24, 102, 36}}, {1, {109, 132, 142, 133, 113, 126, 131, 140, 128, 122, 132, 115, 136, 137, 126, 136, 126, 128, 132, 129, 126, 112, 122, 127, 118, 134, 133, 126, 111, 114, 133, 127, 113, 141, 121, 119, 137, 130, 126, 128, 121, 131, 124, 125, 123, 125, 138, 121, 140, 125, 128, 131, 121, 138, 126, 122, 115, 128, 131, 129, 132, 130, 152, 128, 129, 128, 135, 119, 129, 124, 131, 125, 121, 129, 135, 128, 125, 144, 128, 139, 132, 121, 119, 128, 128, 132, 122, 132, 109, 116, 128, 125, 130, 128, 129, 136, 128, 137, 111, 131, 135, 121, 135, 140, 124, 127, 122, 134, 124, 126, 131, 123, 128, 138, 127, 125, 120, 129, 116, 104, 129, 142, 132, 129, 117, 132, 124, 126, 129, 128, 135, 129, 115, 129, 124, 126, 130, 129, 120, 128, 114, 148, 122, 123, 128, 138, 114, 117, 134, 121, 132, 139, 117, 144, 125, 128, 121, 131, 115, 128, 128, 128, 125, 128, 117, 113, 137, 114, 121, 129, 114, 137, 129, 130, 127, 111, 130, 125, 119, 139, 129, 138, 138, 119, 135, 128, 125, 130, 120, 123, 134, 116, 138, 134, 128, 112, 129, 116, 135, 136, 133, 126, 120, 115, 125, 128, 128, 131, 122, 125, 141, 129, 150, 140, 117, 129, 140, 140, 141, 119, 129, 123, 129, 121, 115, 141, 129, 148, 128, 130, 134, 128, 127, 124, 123, 129, 122, 125, 130, 124, 124, 121, 110, 132, 121, 132, 142, 125, 136, 128, 132, 127, 118, 130, 133, 122, 117, 130, 144, 126, 124, 119, 128, 131, 128, 131, 125, 131, 131, 147, 131, 123, 120, 115, 120, 130, 130, 124, 125, 134, 130, 126, 140, 128, 128, 125, 131, 113, 118, 125, 121, 125, 124, 118, 122, 121, 126, 134, 125, 133, 126, 131, 123, 111, 128, 121, 127, 113, 119, 134, 131, 127, 130, 133, 134, 120, 125, 134, 137, 125, 129, 111, 113, 128, 127, 125, 135, 125, 124, 128, 124, 125, 129, 139, 146, 119, 134, 133, 130, 121, 130, 129, 140, 150, 131, 134, 132, 129, 130, 128, 117, 126, 121, 128, 116, 134, 122, 126, 124, 128, 135, 116, 136, 128, 125, 130, 134, 118, 127, 127, 128, 124, 126, 132, 114, 131, 129, 141, 126, 121, 134, 135, 134, 129, 124, 129, 126, 120, 128, 115, 140, 142, 139, 133, 131, 128, 129, 124, 133, 127, 123, 131, 121, 137, 127, 124, 130, 120, 138, 138, 129, 129, 126, 128, 124, 125, 120, 135, 119, 125, 125, 100, 138, 142, 128, 102, 139, 117, 133, 129, 124, 113, 128, 131, 125, 126, 135, 120, 127, 133, 135, 142, 116, 118, 122, 130, 139, 119, 135, 124, 128, 128, 126, 126, 129, 128, 128, 121, 121, 114, 119, 123, 122, 132, 131, 128, 137, 126, 135, 140, 133, 136, 123, 138, 130, 123, 141, 123, 131, 140, 125, 127, 141, 130, 134, 114, 127, 126, 124, 119, 140, 119, 126, 116, 118, 126, 112, 149, 122, 126, 125, 133, 137, 124, 128, 127, 129, 122, 118, 121, 130, 126}}},
1500 // int -> QUANT16_SYMM map
1501 .quant16SymmOperands = {{2, {0, 48, 128, 80, 48, 0, 80, 128, 24, 40, 104, 88, 40, 24, 88, 104}}},
1502 // int -> FLOAT16 map
1503 .float16Operands = {},
1504 // int -> BOOL8 map
1505 .bool8Operands = {},
1506 // int -> QUANT8_SYMM_PER_CHANNEL map
1507 .quant8ChannelOperands = {},
1508 // int -> QUANT16_ASYMM map
1509 .quant16AsymmOperands = {{3, {512, 512, 256, 256}}},
1510 // int -> QUANT8_SYMM map
1511 .quant8SymmOperands = {},
1512 },
1513 //Output(s)
1514 { // See tools/test_generator/include/TestHarness.h:MixedTyped
1515 // int -> Dimensions map
1516 .operandDimensions = {{0, {30}}, {1, {30, 4}}, {2, {30}}},
1517 // int -> FLOAT32 map
1518 .float32Operands = {},
1519 // int -> INT32 map
1520 .int32Operands = {{2, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}}},
1521 // int -> QUANT8_ASYMM map
1522 .quant8AsymmOperands = {{0, {189, 186, 183, 180, 174, 168, 162, 159, 156, 153, 150, 147, 144, 141, 138, 135, 189, 183, 180, 177, 174, 168, 162, 156, 147, 144, 126, 120, 117, 108}}},
1523 // int -> QUANT16_SYMM map
1524 .quant16SymmOperands = {},
1525 // int -> FLOAT16 map
1526 .float16Operands = {},
1527 // int -> BOOL8 map
1528 .bool8Operands = {},
1529 // int -> QUANT8_SYMM_PER_CHANNEL map
1530 .quant8ChannelOperands = {},
1531 // int -> QUANT16_ASYMM map
1532 .quant16AsymmOperands = {{1, {135, 20, 265, 60, 264, 326, 351, 378, 0, 73, 130, 112, 0, 206, 206, 242, 304, 166, 356, 262, 242, 258, 263, 305, 207, 233, 251, 247, 23, 46, 214, 82, 4, 29, 124, 42, 86, 288, 122, 301, 12, 184, 33, 289, 0, 125, 89, 173, 308, 282, 428, 326, 209, 387, 220, 512, 240, 26, 266, 154, 93, 352, 387, 371, 0, 216, 214, 248, 229, 72, 256, 177, 143, 152, 256, 168, 29, 58, 93, 153, 40, 214, 75, 256, 121, 144, 160, 202, 247, 77, 256, 99, 27, 30, 256, 78, 200, 81, 229, 95, 112, 31, 176, 49, 194, 54, 216, 182, 29, 156, 108, 228, 96, 235, 148, 256, 139, 0, 162, 129}}},
1533 // int -> QUANT8_SYMM map
1534 .quant8SymmOperands = {},
1535 }
1536 },
1537 }, // End of an example
1538 };
1539 return examples_dynamic_output_shape_nhwc_quant8_2;
1540 };
1541
get_examples_dynamic_output_shape_nhwc_float16_2()1542 std::vector<MixedTypedExample>& get_examples_dynamic_output_shape_nhwc_float16_2() {
1543 static std::vector<MixedTypedExample> examples_dynamic_output_shape_nhwc_float16_2 = {
1544 // Begin of an example
1545 {
1546 .operands = {
1547 //Input(s)
1548 { // See tools/test_generator/include/TestHarness.h:MixedTyped
1549 // int -> Dimensions map
1550 .operandDimensions = {{0, {2, 4, 4, 4}}, {1, {2, 4, 4, 16}}, {2, {4, 4}}, {3, {2, 2}}},
1551 // int -> FLOAT32 map
1552 .float32Operands = {},
1553 // int -> INT32 map
1554 .int32Operands = {},
1555 // int -> QUANT8_ASYMM map
1556 .quant8AsymmOperands = {},
1557 // int -> QUANT16_SYMM map
1558 .quant16SymmOperands = {},
1559 // int -> FLOAT16 map
1560 .float16Operands = {{0, {0.8849999904632568f, 0.20999999344348907f, 0.7799999713897705f, 0.5699999928474426f, 0.7950000166893005f, 0.6600000262260437f, 0.9150000214576721f, 0.6150000095367432f, 0.27000001072883606f, 0.6899999976158142f, 0.6449999809265137f, 0.9449999928474426f, 0.4650000035762787f, 0.3449999988079071f, 0.8550000190734863f, 0.5550000071525574f, 0.47999998927116394f, 0.6000000238418579f, 0.7350000143051147f, 0.6299999952316284f, 0.4950000047683716f, 0.029999999329447746f, 0.11999999731779099f, 0.22499999403953552f, 0.23999999463558197f, 0.2849999964237213f, 0.5099999904632568f, 0.3149999976158142f, 0.4350000023841858f, 0.2549999952316284f, 0.5849999785423279f, 0.05999999865889549f, 0.8999999761581421f, 0.75f, 0.18000000715255737f, 0.44999998807907104f, 0.36000001430511475f, 0.09000000357627869f, 0.4050000011920929f, 0.15000000596046448f, 0.0f, 0.19499999284744263f, 0.07500000298023224f, 0.8100000023841858f, 0.8700000047683716f, 0.9300000071525574f, 0.38999998569488525f, 0.16500000655651093f, 0.824999988079071f, 0.5249999761581421f, 0.7649999856948853f, 0.10499999672174454f, 0.5400000214576721f, 0.7049999833106995f, 0.675000011920929f, 0.30000001192092896f, 0.41999998688697815f, 0.04500000178813934f, 0.33000001311302185f, 0.014999999664723873f, 0.8399999737739563f, 0.13500000536441803f, 0.7200000286102295f, 0.375f, 0.4950000047683716f, 0.3149999976158142f, 0.19499999284744263f, 0.23999999463558197f, 0.20999999344348907f, 0.5400000214576721f, 0.7799999713897705f, 0.7200000286102295f, 0.04500000178813934f, 0.9300000071525574f, 0.27000001072883606f, 0.7350000143051147f, 0.13500000536441803f, 0.09000000357627869f, 0.8100000023841858f, 0.7049999833106995f, 0.38999998569488525f, 0.8849999904632568f, 0.41999998688697815f, 0.9449999928474426f, 0.8999999761581421f, 0.22499999403953552f, 0.75f, 0.30000001192092896f, 0.375f, 0.6299999952316284f, 0.824999988079071f, 0.675000011920929f, 0.014999999664723873f, 0.47999998927116394f, 0.6449999809265137f, 0.6150000095367432f, 0.33000001311302185f, 0.4650000035762787f, 0.6600000262260437f, 0.6000000238418579f, 0.07500000298023224f, 0.8399999737739563f, 0.2849999964237213f, 0.5699999928474426f, 0.5849999785423279f, 0.16500000655651093f, 0.05999999865889549f, 0.36000001430511475f, 0.7950000166893005f, 0.8550000190734863f, 0.10499999672174454f, 0.44999998807907104f, 0.0f, 0.8700000047683716f, 0.5249999761581421f, 0.2549999952316284f, 0.6899999976158142f, 0.5550000071525574f, 0.15000000596046448f, 0.3449999988079071f, 0.029999999329447746f, 0.9150000214576721f, 0.4050000011920929f, 0.4350000023841858f, 0.7649999856948853f, 0.11999999731779099f, 0.5099999904632568f, 0.18000000715255737f}}, {1, {-1.899999976158142f, 0.4000000059604645f, 1.399999976158142f, 0.5f, -1.5f, -0.20000000298023224f, 0.30000001192092896f, 1.2000000476837158f, 0.0f, -0.6000000238418579f, 0.4000000059604645f, -1.2999999523162842f, 0.800000011920929f, 0.8999999761581421f, -0.20000000298023224f, 0.800000011920929f, -0.20000000298023224f, 0.0f, 0.4000000059604645f, 0.10000000149011612f, -0.20000000298023224f, -1.600000023841858f, -0.6000000238418579f, -0.10000000149011612f, -1.0f, 0.6000000238418579f, 0.5f, -0.20000000298023224f, -1.7000000476837158f, -1.399999976158142f, 0.5f, -0.10000000149011612f, -1.5f, 1.2999999523162842f, -0.699999988079071f, -0.8999999761581421f, 0.8999999761581421f, 0.20000000298023224f, -0.20000000298023224f, 0.0f, -0.699999988079071f, 0.30000001192092896f, -0.4000000059604645f, -0.30000001192092896f, -0.5f, -0.30000001192092896f, 1.0f, -0.699999988079071f, 1.2000000476837158f, -0.30000001192092896f, 0.0f, 0.30000001192092896f, -0.699999988079071f, 1.0f, -0.20000000298023224f, -0.6000000238418579f, -1.2999999523162842f, 0.0f, 0.30000001192092896f, 0.10000000149011612f, 0.4000000059604645f, 0.20000000298023224f, 2.4000000953674316f, 0.0f, 0.10000000149011612f, 0.0f, 0.699999988079071f, -0.8999999761581421f, 0.10000000149011612f, -0.4000000059604645f, 0.30000001192092896f, -0.30000001192092896f, -0.699999988079071f, 0.10000000149011612f, 0.699999988079071f, 0.0f, -0.30000001192092896f, 1.600000023841858f, 0.0f, 1.100000023841858f, 0.4000000059604645f, -0.699999988079071f, -0.8999999761581421f, 0.0f, 0.0f, 0.4000000059604645f, -0.6000000238418579f, 0.4000000059604645f, -1.899999976158142f, -1.2000000476837158f, 0.0f, -0.30000001192092896f, 0.20000000298023224f, 0.0f, 0.10000000149011612f, 0.800000011920929f, 0.0f, 0.8999999761581421f, -1.7000000476837158f, 0.30000001192092896f, 0.699999988079071f, -0.699999988079071f, 0.699999988079071f, 1.2000000476837158f, -0.4000000059604645f, -0.10000000149011612f, -0.6000000238418579f, 0.6000000238418579f, -0.4000000059604645f, -0.20000000298023224f, 0.30000001192092896f, -0.5f, 0.0f, 1.0f, -0.10000000149011612f, -0.30000001192092896f, -0.800000011920929f, 0.10000000149011612f, -1.2000000476837158f, -2.4000000953674316f, 0.10000000149011612f, 1.399999976158142f, 0.4000000059604645f, 0.10000000149011612f, -1.100000023841858f, 0.4000000059604645f, -0.4000000059604645f, -0.20000000298023224f, 0.10000000149011612f, 0.0f, 0.699999988079071f, 0.10000000149011612f, -1.2999999523162842f, 0.10000000149011612f, -0.4000000059604645f, -0.20000000298023224f, 0.20000000298023224f, 0.10000000149011612f, -0.800000011920929f, 0.0f, -1.399999976158142f, 2.0f, -0.6000000238418579f, -0.5f, 0.0f, 1.0f, -1.399999976158142f, -1.100000023841858f, 0.6000000238418579f, -0.699999988079071f, 0.4000000059604645f, 1.100000023841858f, -1.100000023841858f, 1.600000023841858f, -0.30000001192092896f, 0.0f, -0.699999988079071f, 0.30000001192092896f, -1.2999999523162842f, 0.0f, 0.0f, 0.0f, -0.30000001192092896f, 0.0f, -1.100000023841858f, -1.5f, 0.8999999761581421f, -1.399999976158142f, -0.699999988079071f, 0.10000000149011612f, -1.399999976158142f, 0.8999999761581421f, 0.10000000149011612f, 0.20000000298023224f, -0.10000000149011612f, -1.7000000476837158f, 0.20000000298023224f, -0.30000001192092896f, -0.8999999761581421f, 1.100000023841858f, 0.10000000149011612f, 1.0f, 1.0f, -0.8999999761581421f, 0.699999988079071f, 0.0f, -0.30000001192092896f, 0.20000000298023224f, -0.800000011920929f, -0.5f, 0.6000000238418579f, -1.2000000476837158f, 1.0f, 0.6000000238418579f, 0.0f, -1.600000023841858f, 0.10000000149011612f, -1.2000000476837158f, 0.699999988079071f, 0.800000011920929f, 0.5f, -0.20000000298023224f, -0.800000011920929f, -1.2999999523162842f, -0.30000001192092896f, 0.0f, 0.0f, 0.30000001192092896f, -0.6000000238418579f, -0.30000001192092896f, 1.2999999523162842f, 0.10000000149011612f, 2.200000047683716f, 1.2000000476837158f, -1.100000023841858f, 0.10000000149011612f, 1.2000000476837158f, 1.2000000476837158f, 1.2999999523162842f, -0.8999999761581421f, 0.10000000149011612f, -0.5f, 0.10000000149011612f, -0.699999988079071f, -1.2999999523162842f, 1.2999999523162842f, 0.10000000149011612f, 2.0f, 0.0f, 0.20000000298023224f, 0.6000000238418579f, 0.0f, -0.10000000149011612f, -0.4000000059604645f, -0.5f, 0.10000000149011612f, -0.6000000238418579f, -0.30000001192092896f, 0.20000000298023224f, -0.4000000059604645f, -0.4000000059604645f, -0.699999988079071f, -1.7999999523162842f, 0.4000000059604645f, -0.699999988079071f, 0.4000000059604645f, 1.399999976158142f, -0.30000001192092896f, 0.800000011920929f, 0.0f, 0.4000000059604645f, -0.10000000149011612f, -1.0f, 0.20000000298023224f, 0.5f, -0.6000000238418579f, -1.100000023841858f, 0.20000000298023224f, 1.600000023841858f, -0.20000000298023224f, -0.4000000059604645f, -0.8999999761581421f, 0.0f, 0.30000001192092896f, 0.0f, 0.30000001192092896f, -0.30000001192092896f, 0.30000001192092896f, 0.30000001192092896f, 1.899999976158142f, 0.30000001192092896f, -0.5f, -0.800000011920929f, -1.2999999523162842f, -0.800000011920929f, 0.20000000298023224f, 0.20000000298023224f, -0.4000000059604645f, -0.30000001192092896f, 0.6000000238418579f, 0.20000000298023224f, -0.20000000298023224f, 1.2000000476837158f, 0.0f, 0.0f, -0.30000001192092896f, 0.30000001192092896f, -1.5f, -1.0f, -0.30000001192092896f, -0.699999988079071f, -0.30000001192092896f, -0.4000000059604645f, -1.0f, -0.6000000238418579f, -0.699999988079071f, -0.20000000298023224f, 0.6000000238418579f, -0.30000001192092896f, 0.5f, -0.20000000298023224f, 0.30000001192092896f, -0.5f, -1.7000000476837158f, 0.0f, -0.699999988079071f, -0.10000000149011612f, -1.5f, -0.8999999761581421f, 0.6000000238418579f, 0.30000001192092896f, -0.10000000149011612f, 0.20000000298023224f, 0.5f, 0.6000000238418579f, -0.800000011920929f, -0.30000001192092896f, 0.6000000238418579f, 0.8999999761581421f, -0.30000001192092896f, 0.10000000149011612f, -1.7000000476837158f, -1.5f, 0.0f, -0.10000000149011612f, -0.30000001192092896f, 0.699999988079071f, -0.30000001192092896f, -0.4000000059604645f, 0.0f, -0.4000000059604645f, -0.30000001192092896f, 0.10000000149011612f, 1.100000023841858f, 1.7999999523162842f, -0.8999999761581421f, 0.6000000238418579f, 0.5f, 0.20000000298023224f, -0.699999988079071f, 0.20000000298023224f, 0.10000000149011612f, 1.2000000476837158f, 2.200000047683716f, 0.30000001192092896f, 0.6000000238418579f, 0.4000000059604645f, 0.10000000149011612f, 0.20000000298023224f, 0.0f, -1.100000023841858f, -0.20000000298023224f, -0.699999988079071f, 0.0f, -1.2000000476837158f, 0.6000000238418579f, -0.6000000238418579f, -0.20000000298023224f, -0.4000000059604645f, 0.0f, 0.699999988079071f, -1.2000000476837158f, 0.800000011920929f, 0.0f, -0.30000001192092896f, 0.20000000298023224f, 0.6000000238418579f, -1.0f, -0.10000000149011612f, -0.10000000149011612f, 0.0f, -0.4000000059604645f, -0.20000000298023224f, 0.4000000059604645f, -1.399999976158142f, 0.30000001192092896f, 0.10000000149011612f, 1.2999999523162842f, -0.20000000298023224f, -0.699999988079071f, 0.6000000238418579f, 0.699999988079071f, 0.6000000238418579f, 0.10000000149011612f, -0.4000000059604645f, 0.10000000149011612f, -0.20000000298023224f, -0.800000011920929f, 0.0f, -1.2999999523162842f, 1.2000000476837158f, 1.399999976158142f, 1.100000023841858f, 0.5f, 0.30000001192092896f, 0.0f, 0.10000000149011612f, -0.4000000059604645f, 0.5f, -0.10000000149011612f, -0.5f, 0.30000001192092896f, -0.699999988079071f, 0.8999999761581421f, -0.10000000149011612f, -0.4000000059604645f, 0.20000000298023224f, -0.800000011920929f, 1.0f, 1.0f, 0.10000000149011612f, 0.10000000149011612f, -0.20000000298023224f, 0.0f, -0.4000000059604645f, -0.30000001192092896f, -0.800000011920929f, 0.699999988079071f, -0.8999999761581421f, -0.30000001192092896f, -0.30000001192092896f, -2.799999952316284f, 1.0f, 1.399999976158142f, 0.0f, -2.5999999046325684f, 1.100000023841858f, -1.100000023841858f, 0.5f, 0.10000000149011612f, -0.4000000059604645f, -1.5f, 0.0f, 0.30000001192092896f, -0.30000001192092896f, -0.20000000298023224f, 0.699999988079071f, -0.800000011920929f, -0.10000000149011612f, 0.5f, 0.699999988079071f, 1.399999976158142f, -1.2000000476837158f, -1.0f, -0.6000000238418579f, 0.20000000298023224f, 1.100000023841858f, -0.8999999761581421f, 0.699999988079071f, -0.4000000059604645f, 0.0f, 0.0f, -0.20000000298023224f, -0.20000000298023224f, 0.10000000149011612f, 0.0f, 0.0f, -0.699999988079071f, -0.699999988079071f, -1.399999976158142f, -0.8999999761581421f, -0.5f, -0.6000000238418579f, 0.4000000059604645f, 0.30000001192092896f, 0.0f, 0.8999999761581421f, -0.20000000298023224f, 0.699999988079071f, 1.2000000476837158f, 0.5f, 0.800000011920929f, -0.5f, 1.0f, 0.20000000298023224f, -0.5f, 1.2999999523162842f, -0.5f, 0.30000001192092896f, 1.2000000476837158f, -0.30000001192092896f, -0.10000000149011612f, 1.2999999523162842f, 0.20000000298023224f, 0.6000000238418579f, -1.399999976158142f, -0.10000000149011612f, -0.20000000298023224f, -0.4000000059604645f, -0.8999999761581421f, 1.2000000476837158f, -0.8999999761581421f, -0.20000000298023224f, -1.2000000476837158f, -1.0f, -0.20000000298023224f, -1.600000023841858f, 2.0999999046325684f, -0.6000000238418579f, -0.20000000298023224f, -0.30000001192092896f, 0.5f, 0.8999999761581421f, -0.4000000059604645f, 0.0f, -0.10000000149011612f, 0.10000000149011612f, -0.6000000238418579f, -1.0f, -0.699999988079071f, 0.20000000298023224f, -0.20000000298023224f}}, {2, {0.0f, 6.0f, 16.0f, 10.0f, 6.0f, 0.0f, 10.0f, 16.0f, 3.0f, 5.0f, 13.0f, 11.0f, 5.0f, 3.0f, 11.0f, 13.0f}}, {3, {64.0f, 64.0f, 32.0f, 32.0f}}},
1561 // int -> BOOL8 map
1562 .bool8Operands = {},
1563 // int -> QUANT8_SYMM_PER_CHANNEL map
1564 .quant8ChannelOperands = {},
1565 // int -> QUANT16_ASYMM map
1566 .quant16AsymmOperands = {},
1567 // int -> QUANT8_SYMM map
1568 .quant8SymmOperands = {},
1569 },
1570 //Output(s)
1571 { // See tools/test_generator/include/TestHarness.h:MixedTyped
1572 // int -> Dimensions map
1573 .operandDimensions = {{0, {30}}, {1, {30, 4}}, {2, {30}}},
1574 // int -> FLOAT32 map
1575 .float32Operands = {},
1576 // int -> INT32 map
1577 .int32Operands = {{2, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}}},
1578 // int -> QUANT8_ASYMM map
1579 .quant8AsymmOperands = {},
1580 // int -> QUANT16_SYMM map
1581 .quant16SymmOperands = {},
1582 // int -> FLOAT16 map
1583 .float16Operands = {{0, {0.9449999928474426f, 0.9300000071525574f, 0.9150000214576721f, 0.8999999761581421f, 0.8700000047683716f, 0.8399999737739563f, 0.8100000023841858f, 0.7950000166893005f, 0.7799999713897705f, 0.7649999856948853f, 0.75f, 0.7350000143051147f, 0.7200000286102295f, 0.7049999833106995f, 0.6899999976158142f, 0.675000011920929f, 0.9449999928474426f, 0.9150000214576721f, 0.8999999761581421f, 0.8849999904632568f, 0.8700000047683716f, 0.8399999737739563f, 0.8100000023841858f, 0.7799999713897705f, 0.7350000143051147f, 0.7200000286102295f, 0.6299999952316284f, 0.6000000238418579f, 0.5849999785423279f, 0.5400000214576721f}}, {1, {16.84515380859375f, 2.517073392868042f, 33.15484619140625f, 7.482926368713379f, 32.96343994140625f, 40.74744415283203f, 43.83656311035156f, 47.25255584716797f, 0.0f, 9.143808364868164f, 16.243606567382812f, 14.056192398071289f, 0.0f, 25.789657592773438f, 25.71002197265625f, 30.210342407226562f, 37.947444915771484f, 20.791667938232422f, 44.45255661010742f, 32.80833053588867f, 30.27760887145996f, 32.21635055541992f, 32.92238998413086f, 38.183650970458984f, 25.885488510131836f, 29.08658218383789f, 31.314512252807617f, 30.91341781616211f, 2.8654022216796875f, 5.789658069610596f, 26.73459815979004f, 10.210342407226562f, 0.5408763885498047f, 3.582404136657715f, 15.459123611450195f, 5.217595100402832f, 10.753355026245117f, 35.98240280151367f, 15.246644973754883f, 37.61759567260742f, 1.459360122680664f, 23.050153732299805f, 4.1406402587890625f, 36.149845123291016f, 0.0f, 15.600000381469727f, 11.068763732910156f, 21.600000381469727f, 38.54087829589844f, 35.28548812866211f, 53.45912170410156f, 40.71451187133789f, 26.13425636291504f, 48.35863494873047f, 27.465742111206055f, 64.0f, 29.962539672851562f, 3.1999998092651367f, 33.23746109008789f, 19.200000762939453f, 11.65351676940918f, 43.98029327392578f, 48.34648132324219f, 46.419708251953125f, 0.0f, 26.967151641845703f, 26.74894142150879f, 31.032848358154297f, 28.59032440185547f, 9.050153732299805f, 32.0f, 22.14984703063965f, 17.828777313232422f, 19.0068302154541f, 32.0f, 20.9931697845459f, 3.5724945068359375f, 7.273454189300537f, 11.6275053024292f, 19.126544952392578f, 4.989657878875732f, 26.799999237060547f, 9.410341262817383f, 32.0f, 15.157195091247559f, 18.005369186401367f, 20.04280662536621f, 25.194631576538086f, 30.889404296875f, 9.652012825012207f, 32.0f, 12.347987174987793f, 3.3994140625f, 3.8000001907348633f, 32.0f, 9.800000190734863f, 24.98040771484375f, 10.08658218383789f, 28.619590759277344f, 11.91341781616211f, 13.950423240661621f, 3.8843491077423096f, 22.049575805664062f, 6.1156511306762695f, 24.259361267089844f, 6.800000190734863f, 26.94063949584961f, 22.799999237060547f, 3.653836727142334f, 19.475812911987305f, 13.546163558959961f, 28.524187088012695f, 11.947443008422852f, 29.318363189697266f, 18.452556610107422f, 32.0f, 17.318363189697266f, 0.0f, 20.281635284423828f, 16.176950454711914f}}},
1584 // int -> BOOL8 map
1585 .bool8Operands = {},
1586 // int -> QUANT8_SYMM_PER_CHANNEL map
1587 .quant8ChannelOperands = {},
1588 // int -> QUANT16_ASYMM map
1589 .quant16AsymmOperands = {},
1590 // int -> QUANT8_SYMM map
1591 .quant8SymmOperands = {},
1592 }
1593 },
1594 }, // End of an example
1595 };
1596 return examples_dynamic_output_shape_nhwc_float16_2;
1597 };
1598
get_examples_dynamic_output_shape_nchw_2()1599 std::vector<MixedTypedExample>& get_examples_dynamic_output_shape_nchw_2() {
1600 static std::vector<MixedTypedExample> examples_dynamic_output_shape_nchw_2 = {
1601 // Begin of an example
1602 {
1603 .operands = {
1604 //Input(s)
1605 { // See tools/test_generator/include/TestHarness.h:MixedTyped
1606 // int -> Dimensions map
1607 .operandDimensions = {{0, {2, 4, 4, 4}}, {1, {2, 16, 4, 4}}, {2, {4, 4}}, {3, {2, 2}}},
1608 // int -> FLOAT32 map
1609 .float32Operands = {{0, {0.885f, 0.795f, 0.27f, 0.465f, 0.48f, 0.495f, 0.24f, 0.435f, 0.9f, 0.36f, 0.0f, 0.87f, 0.825f, 0.54f, 0.42f, 0.84f, 0.21f, 0.66f, 0.69f, 0.345f, 0.6f, 0.03f, 0.285f, 0.255f, 0.75f, 0.09f, 0.195f, 0.93f, 0.525f, 0.705f, 0.045f, 0.135f, 0.78f, 0.915f, 0.645f, 0.855f, 0.735f, 0.12f, 0.51f, 0.585f, 0.18f, 0.405f, 0.075f, 0.39f, 0.765f, 0.675f, 0.33f, 0.72f, 0.57f, 0.615f, 0.945f, 0.555f, 0.63f, 0.225f, 0.315f, 0.06f, 0.45f, 0.15f, 0.81f, 0.165f, 0.105f, 0.3f, 0.015f, 0.375f, 0.495f, 0.21f, 0.045f, 0.135f, 0.39f, 0.9f, 0.375f, 0.015f, 0.33f, 0.075f, 0.585f, 0.795f, 0.0f, 0.69f, 0.03f, 0.765f, 0.315f, 0.54f, 0.93f, 0.09f, 0.885f, 0.225f, 0.63f, 0.48f, 0.465f, 0.84f, 0.165f, 0.855f, 0.87f, 0.555f, 0.915f, 0.12f, 0.195f, 0.78f, 0.27f, 0.81f, 0.42f, 0.75f, 0.825f, 0.645f, 0.66f, 0.285f, 0.06f, 0.105f, 0.525f, 0.15f, 0.405f, 0.51f, 0.24f, 0.72f, 0.735f, 0.705f, 0.945f, 0.3f, 0.675f, 0.615f, 0.6f, 0.57f, 0.36f, 0.45f, 0.255f, 0.345f, 0.435f, 0.18f}}, {1, {-1.9f, -0.2f, -1.5f, 1.2f, 0.1f, 0.4f, 0.0f, 0.0f, 0.1f, 0.0f, 0.0f, 0.2f, 1.0f, -0.6f, -1.3f, -0.4f, 0.4f, 0.0f, 1.3f, -0.3f, 0.0f, -0.7f, 0.9f, 1.0f, 0.0f, 1.0f, 0.0f, -0.3f, 0.6f, -0.3f, 1.3f, -0.7f, 1.4f, 0.4f, -0.7f, 0.0f, 0.7f, -0.9f, -1.7f, -0.1f, 0.7f, -1.4f, -0.3f, -0.9f, 0.0f, 1.3f, 0.1f, -1.8f, 0.5f, 0.1f, -0.9f, 0.3f, -0.9f, 0.0f, 0.3f, -0.3f, 0.1f, -1.1f, 0.0f, 1.1f, -1.6f, 0.1f, 2.0f, 0.4f, -1.5f, -0.2f, 0.9f, -0.7f, 0.1f, 0.0f, 0.7f, -0.8f, -1.3f, 0.6f, -1.1f, 0.1f, 0.1f, 2.2f, 0.0f, -0.7f, -0.2f, -1.6f, 0.2f, 1.0f, -0.4f, 0.4f, -0.7f, 0.1f, 0.1f, -0.7f, -1.5f, 1.0f, -1.2f, 1.2f, 0.2f, 0.4f, 0.3f, -0.6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-0.7f, 0.0f, 0.1f, -1.1f, -1.0f, -1.4f, -0.5f, -0.9f, -0.6f, 0.3f, 0.0f, -0.2f, -0.3f, 0.1f, 0.2f, -0.3f, 0.6f, 0.1f, -0.2f, 0.5f, -0.6f, -0.9f, 1.3f, -0.2f, -1.0f, 1.9f, -0.3f, 0.3f, 0.6f, 1.1f, 0.0f, 0.2f, 0.7f, -0.4f, 0.0f, 0.1f, 0.2f, -0.5f, -0.5f, -1.2f, -0.7f, 0.3f, 0.3f, -0.5f, 0.9f, 1.8f, -1.1f, 0.6f, 0.6f, 0.5f, -0.4f, -0.4f, 1.1f, -0.6f, 0.3f, -1.0f, 0.2f, -0.5f, -1.5f, -1.7f, -0.3f, -0.9f, -0.2f, -1.0f, 0.1f, -0.1f, -0.3f, -1.5f, -0.9f, 0.4f, 1.2f, -0.2f, -0.2f}}, {2, {0.0f, 6.0f, 16.0f, 10.0f, 6.0f, 0.0f, 10.0f, 16.0f, 3.0f, 5.0f, 13.0f, 11.0f, 5.0f, 3.0f, 11.0f, 13.0f}}, {3, {64.0f, 64.0f, 32.0f, 32.0f}}},
1610 // int -> INT32 map
1611 .int32Operands = {},
1612 // int -> QUANT8_ASYMM map
1613 .quant8AsymmOperands = {},
1614 // int -> QUANT16_SYMM map
1615 .quant16SymmOperands = {},
1616 // int -> FLOAT16 map
1617 .float16Operands = {},
1618 // int -> BOOL8 map
1619 .bool8Operands = {},
1620 // int -> QUANT8_SYMM_PER_CHANNEL map
1621 .quant8ChannelOperands = {},
1622 // int -> QUANT16_ASYMM map
1623 .quant16AsymmOperands = {},
1624 // int -> QUANT8_SYMM map
1625 .quant8SymmOperands = {},
1626 },
1627 //Output(s)
1628 { // See tools/test_generator/include/TestHarness.h:MixedTyped
1629 // int -> Dimensions map
1630 .operandDimensions = {{0, {30}}, {1, {30, 4}}, {2, {30}}},
1631 // int -> FLOAT32 map
1632 .float32Operands = {{0, {0.945f, 0.93f, 0.915f, 0.9f, 0.87f, 0.84f, 0.81f, 0.795f, 0.78f, 0.765f, 0.75f, 0.735f, 0.72f, 0.705f, 0.69f, 0.675f, 0.945f, 0.915f, 0.9f, 0.885f, 0.87f, 0.84f, 0.81f, 0.78f, 0.735f, 0.72f, 0.63f, 0.6f, 0.585f, 0.54f}}, {1, {16.845154f, 2.5170734f, 33.154846f, 7.4829264f, 32.96344f, 40.747444f, 43.836563f, 47.252556f, 0.0f, 9.143808f, 16.243607f, 14.056192f, 0.0f, 25.789658f, 25.710022f, 30.210342f, 37.947445f, 20.791668f, 44.452557f, 32.80833f, 30.277609f, 32.21635f, 32.92239f, 38.18365f, 25.885489f, 29.086582f, 31.314512f, 30.913418f, 2.8654022f, 5.789658f, 26.734598f, 10.210342f, 0.5408764f, 3.5824041f, 15.459124f, 5.217595f, 10.753355f, 35.982403f, 15.246645f, 37.617596f, 1.4593601f, 23.050154f, 4.1406403f, 36.149845f, 0.0f, 15.6f, 11.068764f, 21.6f, 38.54088f, 35.28549f, 53.45912f, 40.71451f, 26.134256f, 48.358635f, 27.465742f, 64.0f, 29.96254f, 3.1999998f, 33.23746f, 19.2f, 11.653517f, 43.980293f, 48.34648f, 46.41971f, 0.0f, 26.967152f, 26.748941f, 31.032848f, 28.590324f, 9.050154f, 32.0f, 22.149847f, 17.828777f, 19.00683f, 32.0f, 20.99317f, 3.5724945f, 7.273454f, 11.627505f, 19.126545f, 4.989658f, 26.8f, 9.410341f, 32.0f, 15.157195f, 18.00537f, 20.042807f, 25.194632f, 30.889404f, 9.652013f, 32.0f, 12.347987f, 3.399414f, 3.8000002f, 32.0f, 9.8f, 24.980408f, 10.086582f, 28.61959f, 11.913418f, 13.950423f, 3.884349f, 22.049576f, 6.115651f, 24.259361f, 6.8f, 26.94064f, 22.8f, 3.6538367f, 19.475813f, 13.546164f, 28.524187f, 11.947443f, 29.318363f, 18.452557f, 32.0f, 17.318363f, 0.0f, 20.281635f, 16.17695f}}},
1633 // int -> INT32 map
1634 .int32Operands = {{2, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}}},
1635 // int -> QUANT8_ASYMM map
1636 .quant8AsymmOperands = {},
1637 // int -> QUANT16_SYMM map
1638 .quant16SymmOperands = {},
1639 // int -> FLOAT16 map
1640 .float16Operands = {},
1641 // int -> BOOL8 map
1642 .bool8Operands = {},
1643 // int -> QUANT8_SYMM_PER_CHANNEL map
1644 .quant8ChannelOperands = {},
1645 // int -> QUANT16_ASYMM map
1646 .quant16AsymmOperands = {},
1647 // int -> QUANT8_SYMM map
1648 .quant8SymmOperands = {},
1649 }
1650 },
1651 }, // End of an example
1652 };
1653 return examples_dynamic_output_shape_nchw_2;
1654 };
1655
get_examples_dynamic_output_shape_nchw_relaxed_2()1656 std::vector<MixedTypedExample>& get_examples_dynamic_output_shape_nchw_relaxed_2() {
1657 static std::vector<MixedTypedExample> examples_dynamic_output_shape_nchw_relaxed_2 = {
1658 // Begin of an example
1659 {
1660 .operands = {
1661 //Input(s)
1662 { // See tools/test_generator/include/TestHarness.h:MixedTyped
1663 // int -> Dimensions map
1664 .operandDimensions = {{0, {2, 4, 4, 4}}, {1, {2, 16, 4, 4}}, {2, {4, 4}}, {3, {2, 2}}},
1665 // int -> FLOAT32 map
1666 .float32Operands = {{0, {0.885f, 0.795f, 0.27f, 0.465f, 0.48f, 0.495f, 0.24f, 0.435f, 0.9f, 0.36f, 0.0f, 0.87f, 0.825f, 0.54f, 0.42f, 0.84f, 0.21f, 0.66f, 0.69f, 0.345f, 0.6f, 0.03f, 0.285f, 0.255f, 0.75f, 0.09f, 0.195f, 0.93f, 0.525f, 0.705f, 0.045f, 0.135f, 0.78f, 0.915f, 0.645f, 0.855f, 0.735f, 0.12f, 0.51f, 0.585f, 0.18f, 0.405f, 0.075f, 0.39f, 0.765f, 0.675f, 0.33f, 0.72f, 0.57f, 0.615f, 0.945f, 0.555f, 0.63f, 0.225f, 0.315f, 0.06f, 0.45f, 0.15f, 0.81f, 0.165f, 0.105f, 0.3f, 0.015f, 0.375f, 0.495f, 0.21f, 0.045f, 0.135f, 0.39f, 0.9f, 0.375f, 0.015f, 0.33f, 0.075f, 0.585f, 0.795f, 0.0f, 0.69f, 0.03f, 0.765f, 0.315f, 0.54f, 0.93f, 0.09f, 0.885f, 0.225f, 0.63f, 0.48f, 0.465f, 0.84f, 0.165f, 0.855f, 0.87f, 0.555f, 0.915f, 0.12f, 0.195f, 0.78f, 0.27f, 0.81f, 0.42f, 0.75f, 0.825f, 0.645f, 0.66f, 0.285f, 0.06f, 0.105f, 0.525f, 0.15f, 0.405f, 0.51f, 0.24f, 0.72f, 0.735f, 0.705f, 0.945f, 0.3f, 0.675f, 0.615f, 0.6f, 0.57f, 0.36f, 0.45f, 0.255f, 0.345f, 0.435f, 0.18f}}, {1, {-1.9f, -0.2f, -1.5f, 1.2f, 0.1f, 0.4f, 0.0f, 0.0f, 0.1f, 0.0f, 0.0f, 0.2f, 1.0f, -0.6f, -1.3f, -0.4f, 0.4f, 0.0f, 1.3f, -0.3f, 0.0f, -0.7f, 0.9f, 1.0f, 0.0f, 1.0f, 0.0f, -0.3f, 0.6f, -0.3f, 1.3f, -0.7f, 1.4f, 0.4f, -0.7f, 0.0f, 0.7f, -0.9f, -1.7f, -0.1f, 0.7f, -1.4f, -0.3f, -0.9f, 0.0f, 1.3f, 0.1f, -1.8f, 0.5f, 0.1f, -0.9f, 0.3f, -0.9f, 0.0f, 0.3f, -0.3f, 0.1f, -1.1f, 0.0f, 1.1f, -1.6f, 0.1f, 2.0f, 0.4f, -1.5f, -0.2f, 0.9f, -0.7f, 0.1f, 0.0f, 0.7f, -0.8f, -1.3f, 0.6f, -1.1f, 0.1f, 0.1f, 2.2f, 0.0f, -0.7f, -0.2f, -1.6f, 0.2f, 1.0f, -0.4f, 0.4f, -0.7f, 0.1f, 0.1f, -0.7f, -1.5f, 1.0f, -1.2f, 1.2f, 0.2f, 0.4f, 0.3f, -0.6f, -0.2f, -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0f, 0.1f, -1.1f, -1.0f, -1.4f, -0.5f, -0.9f, -0.6f, 0.3f, 0.0f, -0.2f, -0.3f, 0.1f, 0.2f, -0.3f, 0.6f, 0.1f, -0.2f, 0.5f, -0.6f, -0.9f, 1.3f, -0.2f, -1.0f, 1.9f, -0.3f, 0.3f, 0.6f, 1.1f, 0.0f, 0.2f, 0.7f, -0.4f, 0.0f, 0.1f, 0.2f, -0.5f, -0.5f, -1.2f, -0.7f, 0.3f, 0.3f, -0.5f, 0.9f, 1.8f, -1.1f, 0.6f, 0.6f, 0.5f, -0.4f, -0.4f, 1.1f, -0.6f, 0.3f, -1.0f, 0.2f, -0.5f, -1.5f, -1.7f, -0.3f, -0.9f, -0.2f, -1.0f, 0.1f, -0.1f, -0.3f, -1.5f, -0.9f, 0.4f, 1.2f, -0.2f, -0.2f}}, {2, {0.0f, 6.0f, 16.0f, 10.0f, 6.0f, 0.0f, 10.0f, 16.0f, 3.0f, 5.0f, 13.0f, 11.0f, 5.0f, 3.0f, 11.0f, 13.0f}}, {3, {64.0f, 64.0f, 32.0f, 32.0f}}},
1667 // int -> INT32 map
1668 .int32Operands = {},
1669 // int -> QUANT8_ASYMM map
1670 .quant8AsymmOperands = {},
1671 // int -> QUANT16_SYMM map
1672 .quant16SymmOperands = {},
1673 // int -> FLOAT16 map
1674 .float16Operands = {},
1675 // int -> BOOL8 map
1676 .bool8Operands = {},
1677 // int -> QUANT8_SYMM_PER_CHANNEL map
1678 .quant8ChannelOperands = {},
1679 // int -> QUANT16_ASYMM map
1680 .quant16AsymmOperands = {},
1681 // int -> QUANT8_SYMM map
1682 .quant8SymmOperands = {},
1683 },
1684 //Output(s)
1685 { // See tools/test_generator/include/TestHarness.h:MixedTyped
1686 // int -> Dimensions map
1687 .operandDimensions = {{0, {30}}, {1, {30, 4}}, {2, {30}}},
1688 // int -> FLOAT32 map
1689 .float32Operands = {{0, {0.945f, 0.93f, 0.915f, 0.9f, 0.87f, 0.84f, 0.81f, 0.795f, 0.78f, 0.765f, 0.75f, 0.735f, 0.72f, 0.705f, 0.69f, 0.675f, 0.945f, 0.915f, 0.9f, 0.885f, 0.87f, 0.84f, 0.81f, 0.78f, 0.735f, 0.72f, 0.63f, 0.6f, 0.585f, 0.54f}}, {1, {16.845154f, 2.5170734f, 33.154846f, 7.4829264f, 32.96344f, 40.747444f, 43.836563f, 47.252556f, 0.0f, 9.143808f, 16.243607f, 14.056192f, 0.0f, 25.789658f, 25.710022f, 30.210342f, 37.947445f, 20.791668f, 44.452557f, 32.80833f, 30.277609f, 32.21635f, 32.92239f, 38.18365f, 25.885489f, 29.086582f, 31.314512f, 30.913418f, 2.8654022f, 5.789658f, 26.734598f, 10.210342f, 0.5408764f, 3.5824041f, 15.459124f, 5.217595f, 10.753355f, 35.982403f, 15.246645f, 37.617596f, 1.4593601f, 23.050154f, 4.1406403f, 36.149845f, 0.0f, 15.6f, 11.068764f, 21.6f, 38.54088f, 35.28549f, 53.45912f, 40.71451f, 26.134256f, 48.358635f, 27.465742f, 64.0f, 29.96254f, 3.1999998f, 33.23746f, 19.2f, 11.653517f, 43.980293f, 48.34648f, 46.41971f, 0.0f, 26.967152f, 26.748941f, 31.032848f, 28.590324f, 9.050154f, 32.0f, 22.149847f, 17.828777f, 19.00683f, 32.0f, 20.99317f, 3.5724945f, 7.273454f, 11.627505f, 19.126545f, 4.989658f, 26.8f, 9.410341f, 32.0f, 15.157195f, 18.00537f, 20.042807f, 25.194632f, 30.889404f, 9.652013f, 32.0f, 12.347987f, 3.399414f, 3.8000002f, 32.0f, 9.8f, 24.980408f, 10.086582f, 28.61959f, 11.913418f, 13.950423f, 3.884349f, 22.049576f, 6.115651f, 24.259361f, 6.8f, 26.94064f, 22.8f, 3.6538367f, 19.475813f, 13.546164f, 28.524187f, 11.947443f, 29.318363f, 18.452557f, 32.0f, 17.318363f, 0.0f, 20.281635f, 16.17695f}}},
1690 // int -> INT32 map
1691 .int32Operands = {{2, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}}},
1692 // int -> QUANT8_ASYMM map
1693 .quant8AsymmOperands = {},
1694 // int -> QUANT16_SYMM map
1695 .quant16SymmOperands = {},
1696 // int -> FLOAT16 map
1697 .float16Operands = {},
1698 // int -> BOOL8 map
1699 .bool8Operands = {},
1700 // int -> QUANT8_SYMM_PER_CHANNEL map
1701 .quant8ChannelOperands = {},
1702 // int -> QUANT16_ASYMM map
1703 .quant16AsymmOperands = {},
1704 // int -> QUANT8_SYMM map
1705 .quant8SymmOperands = {},
1706 }
1707 },
1708 }, // End of an example
1709 };
1710 return examples_dynamic_output_shape_nchw_relaxed_2;
1711 };
1712
get_examples_dynamic_output_shape_nchw_quant8_2()1713 std::vector<MixedTypedExample>& get_examples_dynamic_output_shape_nchw_quant8_2() {
1714 static std::vector<MixedTypedExample> examples_dynamic_output_shape_nchw_quant8_2 = {
1715 // Begin of an example
1716 {
1717 .operands = {
1718 //Input(s)
1719 { // See tools/test_generator/include/TestHarness.h:MixedTyped
1720 // int -> Dimensions map
1721 .operandDimensions = {{0, {2, 4, 4, 4}}, {1, {2, 16, 4, 4}}, {2, {4, 4}}, {3, {2, 2}}},
1722 // int -> FLOAT32 map
1723 .float32Operands = {},
1724 // int -> INT32 map
1725 .int32Operands = {},
1726 // int -> QUANT8_ASYMM map
1727 .quant8AsymmOperands = {{0, {177, 159, 54, 93, 96, 99, 48, 87, 180, 72, 0, 174, 165, 108, 84, 168, 42, 132, 138, 69, 120, 6, 57, 51, 150, 18, 39, 186, 105, 141, 9, 27, 156, 183, 129, 171, 147, 24, 102, 117, 36, 81, 15, 78, 153, 135, 66, 144, 114, 123, 189, 111, 126, 45, 63, 12, 90, 30, 162, 33, 21, 60, 3, 75, 99, 42, 9, 27, 78, 180, 75, 3, 66, 15, 117, 159, 0, 138, 6, 153, 63, 108, 186, 18, 177, 45, 126, 96, 93, 168, 33, 171, 174, 111, 183, 24, 39, 156, 54, 162, 84, 150, 165, 129, 132, 57, 12, 21, 105, 30, 81, 102, 48, 144, 147, 141, 189, 60, 135, 123, 120, 114, 72, 90, 51, 69, 87, 36}}, {1, {109, 126, 113, 140, 129, 132, 128, 128, 129, 128, 128, 130, 138, 122, 115, 124, 132, 128, 141, 125, 128, 121, 137, 138, 128, 138, 128, 125, 134, 125, 141, 121, 142, 132, 121, 128, 135, 119, 111, 127, 135, 114, 125, 119, 128, 141, 129, 110, 133, 129, 119, 131, 119, 128, 131, 125, 129, 117, 128, 139, 112, 129, 148, 132, 113, 126, 137, 121, 129, 128, 135, 120, 115, 134, 117, 129, 129, 150, 128, 121, 126, 112, 130, 138, 124, 132, 121, 129, 129, 121, 113, 138, 116, 140, 130, 132, 131, 122, 126, 126, 131, 122, 135, 116, 124, 132, 137, 138, 135, 117, 134, 142, 140, 127, 128, 122, 125, 132, 140, 104, 126, 139, 114, 119, 136, 129, 128, 125, 128, 118, 121, 115, 121, 109, 124, 129, 130, 117, 121, 135, 133, 140, 127, 136, 122, 134, 131, 128, 129, 116, 127, 142, 129, 144, 129, 128, 126, 140, 124, 128, 132, 133, 124, 131, 135, 128, 122, 132, 120, 125, 114, 125, 120, 141, 123, 132, 115, 126, 125, 129, 128, 125, 134, 129, 128, 128, 137, 130, 115, 119, 129, 127, 136, 111, 123, 132, 125, 130, 124, 117, 114, 121, 129, 120, 125, 129, 122, 118, 137, 114, 125, 130, 144, 128, 126, 132, 148, 131, 130, 123, 128, 123, 125, 130, 126, 133, 138, 152, 128, 129, 131, 124, 122, 115, 127, 134, 128, 129, 130, 133, 136, 127, 121, 128, 139, 136, 123, 126, 123, 128, 111, 116, 131, 121, 124, 122, 117, 120, 118, 128, 129, 134, 121, 127, 124, 123, 120, 128, 135, 131, 125, 112, 130, 115, 125, 121, 111, 133, 128, 127, 129, 131, 135, 131, 124, 128, 127, 149, 144, 120, 121, 127, 113, 130, 116, 128, 126, 121, 119, 125, 128, 137, 141, 122, 126, 130, 125, 113, 128, 121, 134, 124, 120, 137, 125, 126, 128, 126, 130, 126, 124, 130, 124, 119, 127, 130, 122, 126, 128, 127, 125, 135, 126, 135, 134, 125, 119, 124, 118, 134, 125, 129, 126, 132, 115, 124, 100, 120, 126, 140, 114, 133, 128, 125, 122, 131, 135, 140, 124, 114, 140, 130, 138, 127, 129, 133, 127, 137, 131, 134, 121, 127, 125, 150, 128, 131, 142, 120, 142, 133, 128, 136, 126, 124, 128, 130, 126, 130, 124, 131, 135, 129, 139, 138, 128, 135, 128, 123, 124, 128, 131, 126, 134, 133, 128, 134, 116, 141, 133, 138, 102, 142, 121, 138, 119, 127, 125, 140, 125, 134, 124, 132, 136, 126, 131, 129, 139, 116, 121, 130, 140, 129, 131, 128, 133, 120, 125, 129, 128, 121, 128, 129, 117, 118, 114, 123, 119, 122, 131, 128, 126, 125, 129, 130, 125, 134, 129, 126, 133, 122, 119, 141, 126, 118, 147, 125, 131, 134, 139, 128, 130, 135, 124, 128, 129, 130, 123, 123, 116, 121, 131, 131, 123, 137, 146, 117, 134, 134, 133, 124, 124, 139, 122, 131, 118, 130, 123, 113, 111, 125, 119, 126, 118, 129, 127, 125, 113, 119, 132, 140, 126, 126}}},
1728 // int -> QUANT16_SYMM map
1729 .quant16SymmOperands = {{2, {0, 48, 128, 80, 48, 0, 80, 128, 24, 40, 104, 88, 40, 24, 88, 104}}},
1730 // int -> FLOAT16 map
1731 .float16Operands = {},
1732 // int -> BOOL8 map
1733 .bool8Operands = {},
1734 // int -> QUANT8_SYMM_PER_CHANNEL map
1735 .quant8ChannelOperands = {},
1736 // int -> QUANT16_ASYMM map
1737 .quant16AsymmOperands = {{3, {512, 512, 256, 256}}},
1738 // int -> QUANT8_SYMM map
1739 .quant8SymmOperands = {},
1740 },
1741 //Output(s)
1742 { // See tools/test_generator/include/TestHarness.h:MixedTyped
1743 // int -> Dimensions map
1744 .operandDimensions = {{0, {30}}, {1, {30, 4}}, {2, {30}}},
1745 // int -> FLOAT32 map
1746 .float32Operands = {},
1747 // int -> INT32 map
1748 .int32Operands = {{2, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}}},
1749 // int -> QUANT8_ASYMM map
1750 .quant8AsymmOperands = {{0, {189, 186, 183, 180, 174, 168, 162, 159, 156, 153, 150, 147, 144, 141, 138, 135, 189, 183, 180, 177, 174, 168, 162, 156, 147, 144, 126, 120, 117, 108}}},
1751 // int -> QUANT16_SYMM map
1752 .quant16SymmOperands = {},
1753 // int -> FLOAT16 map
1754 .float16Operands = {},
1755 // int -> BOOL8 map
1756 .bool8Operands = {},
1757 // int -> QUANT8_SYMM_PER_CHANNEL map
1758 .quant8ChannelOperands = {},
1759 // int -> QUANT16_ASYMM map
1760 .quant16AsymmOperands = {{1, {135, 20, 265, 60, 264, 326, 351, 378, 0, 73, 130, 112, 0, 206, 206, 242, 304, 166, 356, 262, 242, 258, 263, 305, 207, 233, 251, 247, 23, 46, 214, 82, 4, 29, 124, 42, 86, 288, 122, 301, 12, 184, 33, 289, 0, 125, 89, 173, 308, 282, 428, 326, 209, 387, 220, 512, 240, 26, 266, 154, 93, 352, 387, 371, 0, 216, 214, 248, 229, 72, 256, 177, 143, 152, 256, 168, 29, 58, 93, 153, 40, 214, 75, 256, 121, 144, 160, 202, 247, 77, 256, 99, 27, 30, 256, 78, 200, 81, 229, 95, 112, 31, 176, 49, 194, 54, 216, 182, 29, 156, 108, 228, 96, 235, 148, 256, 139, 0, 162, 129}}},
1761 // int -> QUANT8_SYMM map
1762 .quant8SymmOperands = {},
1763 }
1764 },
1765 }, // End of an example
1766 };
1767 return examples_dynamic_output_shape_nchw_quant8_2;
1768 };
1769
get_examples_dynamic_output_shape_nchw_float16_2()1770 std::vector<MixedTypedExample>& get_examples_dynamic_output_shape_nchw_float16_2() {
1771 static std::vector<MixedTypedExample> examples_dynamic_output_shape_nchw_float16_2 = {
1772 // Begin of an example
1773 {
1774 .operands = {
1775 //Input(s)
1776 { // See tools/test_generator/include/TestHarness.h:MixedTyped
1777 // int -> Dimensions map
1778 .operandDimensions = {{0, {2, 4, 4, 4}}, {1, {2, 16, 4, 4}}, {2, {4, 4}}, {3, {2, 2}}},
1779 // int -> FLOAT32 map
1780 .float32Operands = {},
1781 // int -> INT32 map
1782 .int32Operands = {},
1783 // int -> QUANT8_ASYMM map
1784 .quant8AsymmOperands = {},
1785 // int -> QUANT16_SYMM map
1786 .quant16SymmOperands = {},
1787 // int -> FLOAT16 map
1788 .float16Operands = {{0, {0.8849999904632568f, 0.7950000166893005f, 0.27000001072883606f, 0.4650000035762787f, 0.47999998927116394f, 0.4950000047683716f, 0.23999999463558197f, 0.4350000023841858f, 0.8999999761581421f, 0.36000001430511475f, 0.0f, 0.8700000047683716f, 0.824999988079071f, 0.5400000214576721f, 0.41999998688697815f, 0.8399999737739563f, 0.20999999344348907f, 0.6600000262260437f, 0.6899999976158142f, 0.3449999988079071f, 0.6000000238418579f, 0.029999999329447746f, 0.2849999964237213f, 0.2549999952316284f, 0.75f, 0.09000000357627869f, 0.19499999284744263f, 0.9300000071525574f, 0.5249999761581421f, 0.7049999833106995f, 0.04500000178813934f, 0.13500000536441803f, 0.7799999713897705f, 0.9150000214576721f, 0.6449999809265137f, 0.8550000190734863f, 0.7350000143051147f, 0.11999999731779099f, 0.5099999904632568f, 0.5849999785423279f, 0.18000000715255737f, 0.4050000011920929f, 0.07500000298023224f, 0.38999998569488525f, 0.7649999856948853f, 0.675000011920929f, 0.33000001311302185f, 0.7200000286102295f, 0.5699999928474426f, 0.6150000095367432f, 0.9449999928474426f, 0.5550000071525574f, 0.6299999952316284f, 0.22499999403953552f, 0.3149999976158142f, 0.05999999865889549f, 0.44999998807907104f, 0.15000000596046448f, 0.8100000023841858f, 0.16500000655651093f, 0.10499999672174454f, 0.30000001192092896f, 0.014999999664723873f, 0.375f, 0.4950000047683716f, 0.20999999344348907f, 0.04500000178813934f, 0.13500000536441803f, 0.38999998569488525f, 0.8999999761581421f, 0.375f, 0.014999999664723873f, 0.33000001311302185f, 0.07500000298023224f, 0.5849999785423279f, 0.7950000166893005f, 0.0f, 0.6899999976158142f, 0.029999999329447746f, 0.7649999856948853f, 0.3149999976158142f, 0.5400000214576721f, 0.9300000071525574f, 0.09000000357627869f, 0.8849999904632568f, 0.22499999403953552f, 0.6299999952316284f, 0.47999998927116394f, 0.4650000035762787f, 0.8399999737739563f, 0.16500000655651093f, 0.8550000190734863f, 0.8700000047683716f, 0.5550000071525574f, 0.9150000214576721f, 0.11999999731779099f, 0.19499999284744263f, 0.7799999713897705f, 0.27000001072883606f, 0.8100000023841858f, 0.41999998688697815f, 0.75f, 0.824999988079071f, 0.6449999809265137f, 0.6600000262260437f, 0.2849999964237213f, 0.05999999865889549f, 0.10499999672174454f, 0.5249999761581421f, 0.15000000596046448f, 0.4050000011920929f, 0.5099999904632568f, 0.23999999463558197f, 0.7200000286102295f, 0.7350000143051147f, 0.7049999833106995f, 0.9449999928474426f, 0.30000001192092896f, 0.675000011920929f, 0.6150000095367432f, 0.6000000238418579f, 0.5699999928474426f, 0.36000001430511475f, 0.44999998807907104f, 0.2549999952316284f, 0.3449999988079071f, 0.4350000023841858f, 0.18000000715255737f}}, {1, {-1.899999976158142f, -0.20000000298023224f, -1.5f, 1.2000000476837158f, 0.10000000149011612f, 0.4000000059604645f, 0.0f, 0.0f, 0.10000000149011612f, 0.0f, 0.0f, 0.20000000298023224f, 1.0f, -0.6000000238418579f, -1.2999999523162842f, -0.4000000059604645f, 0.4000000059604645f, 0.0f, 1.2999999523162842f, -0.30000001192092896f, 0.0f, -0.699999988079071f, 0.8999999761581421f, 1.0f, 0.0f, 1.0f, 0.0f, -0.30000001192092896f, 0.6000000238418579f, -0.30000001192092896f, 1.2999999523162842f, -0.699999988079071f, 1.399999976158142f, 0.4000000059604645f, -0.699999988079071f, 0.0f, 0.699999988079071f, -0.8999999761581421f, -1.7000000476837158f, -0.10000000149011612f, 0.699999988079071f, -1.399999976158142f, -0.30000001192092896f, -0.8999999761581421f, 0.0f, 1.2999999523162842f, 0.10000000149011612f, -1.7999999523162842f, 0.5f, 0.10000000149011612f, -0.8999999761581421f, 0.30000001192092896f, -0.8999999761581421f, 0.0f, 0.30000001192092896f, -0.30000001192092896f, 0.10000000149011612f, -1.100000023841858f, 0.0f, 1.100000023841858f, -1.600000023841858f, 0.10000000149011612f, 2.0f, 0.4000000059604645f, -1.5f, -0.20000000298023224f, 0.8999999761581421f, -0.699999988079071f, 0.10000000149011612f, 0.0f, 0.699999988079071f, -0.800000011920929f, -1.2999999523162842f, 0.6000000238418579f, -1.100000023841858f, 0.10000000149011612f, 0.10000000149011612f, 2.200000047683716f, 0.0f, -0.699999988079071f, -0.20000000298023224f, -1.600000023841858f, 0.20000000298023224f, 1.0f, -0.4000000059604645f, 0.4000000059604645f, -0.699999988079071f, 0.10000000149011612f, 0.10000000149011612f, -0.699999988079071f, -1.5f, 1.0f, -1.2000000476837158f, 1.2000000476837158f, 0.20000000298023224f, 0.4000000059604645f, 0.30000001192092896f, -0.6000000238418579f, -0.20000000298023224f, -0.20000000298023224f, 0.30000001192092896f, -0.6000000238418579f, 0.699999988079071f, -1.2000000476837158f, -0.4000000059604645f, 0.4000000059604645f, 0.8999999761581421f, 1.0f, 0.699999988079071f, -1.100000023841858f, 0.6000000238418579f, 1.399999976158142f, 1.2000000476837158f, -0.10000000149011612f, 0.0f, -0.6000000238418579f, -0.30000001192092896f, 0.4000000059604645f, 1.2000000476837158f, -2.4000000953674316f, -0.20000000298023224f, 1.100000023841858f, -1.399999976158142f, -0.8999999761581421f, 0.800000011920929f, 0.10000000149011612f, 0.0f, -0.30000001192092896f, 0.0f, -1.0f, -0.699999988079071f, -1.2999999523162842f, -0.699999988079071f, -1.899999976158142f, -0.4000000059604645f, 0.10000000149011612f, 0.20000000298023224f, -1.100000023841858f, -0.699999988079071f, 0.699999988079071f, 0.5f, 1.2000000476837158f, -0.10000000149011612f, 0.800000011920929f, -0.6000000238418579f, 0.6000000238418579f, 0.30000001192092896f, 0.0f, 0.10000000149011612f, -1.2000000476837158f, -0.10000000149011612f, 1.399999976158142f, 0.10000000149011612f, 1.600000023841858f, 0.10000000149011612f, 0.0f, -0.20000000298023224f, 1.2000000476837158f, -0.4000000059604645f, 0.0f, 0.4000000059604645f, 0.5f, -0.4000000059604645f, 0.30000001192092896f, 0.699999988079071f, 0.0f, -0.6000000238418579f, 0.4000000059604645f, -0.800000011920929f, -0.30000001192092896f, -1.399999976158142f, -0.30000001192092896f, -0.800000011920929f, 1.2999999523162842f, -0.5f, 0.4000000059604645f, -1.2999999523162842f, -0.20000000298023224f, -0.30000001192092896f, 0.10000000149011612f, 0.0f, -0.30000001192092896f, 0.6000000238418579f, 0.10000000149011612f, 0.0f, 0.0f, 0.8999999761581421f, 0.20000000298023224f, -1.2999999523162842f, -0.8999999761581421f, 0.10000000149011612f, -0.10000000149011612f, 0.800000011920929f, -1.7000000476837158f, -0.5f, 0.4000000059604645f, -0.30000001192092896f, 0.20000000298023224f, -0.4000000059604645f, -1.100000023841858f, -1.399999976158142f, -0.699999988079071f, 0.10000000149011612f, -0.800000011920929f, -0.30000001192092896f, 0.10000000149011612f, -0.6000000238418579f, -1.0f, 0.8999999761581421f, -1.399999976158142f, -0.30000001192092896f, 0.20000000298023224f, 1.600000023841858f, 0.0f, -0.20000000298023224f, 0.4000000059604645f, 2.0f, 0.30000001192092896f, 0.20000000298023224f, -0.5f, 0.0f, -0.5f, -0.30000001192092896f, 0.20000000298023224f, -0.20000000298023224f, 0.5f, 1.0f, 2.4000000953674316f, 0.0f, 0.10000000149011612f, 0.30000001192092896f, -0.4000000059604645f, -0.6000000238418579f, -1.2999999523162842f, -0.10000000149011612f, 0.6000000238418579f, 0.0f, 0.10000000149011612f, 0.20000000298023224f, 0.5f, 0.800000011920929f, -0.10000000149011612f, -0.699999988079071f, 0.0f, 1.100000023841858f, 0.800000011920929f, -0.5f, -0.20000000298023224f, -0.5f, 0.0f, -1.7000000476837158f, -1.2000000476837158f, 0.30000001192092896f, -0.699999988079071f, -0.4000000059604645f, -0.6000000238418579f, -1.100000023841858f, -0.800000011920929f, -1.0f, 0.0f, 0.10000000149011612f, 0.6000000238418579f, -0.699999988079071f, -0.10000000149011612f, -0.4000000059604645f, -0.5f, -0.800000011920929f, 0.0f, 0.699999988079071f, 0.30000001192092896f, -0.30000001192092896f, -1.600000023841858f, 0.20000000298023224f, -1.2999999523162842f, -0.30000001192092896f, -0.699999988079071f, -1.7000000476837158f, 0.5f, 0.0f, -0.10000000149011612f, 0.10000000149011612f, 0.30000001192092896f, 0.699999988079071f, 0.30000001192092896f, -0.4000000059604645f, 0.0f, -0.10000000149011612f, 2.0999999046325684f, 1.600000023841858f, -0.800000011920929f, -0.699999988079071f, -0.10000000149011612f, -1.5f, 0.20000000298023224f, -1.2000000476837158f, 0.0f, -0.20000000298023224f, -0.699999988079071f, -0.8999999761581421f, -0.30000001192092896f, 0.0f, 0.8999999761581421f, 1.2999999523162842f, -0.6000000238418579f, -0.20000000298023224f, 0.20000000298023224f, -0.30000001192092896f, -1.5f, 0.0f, -0.699999988079071f, 0.6000000238418579f, -0.4000000059604645f, -0.800000011920929f, 0.8999999761581421f, -0.30000001192092896f, -0.20000000298023224f, 0.0f, -0.20000000298023224f, 0.20000000298023224f, -0.20000000298023224f, -0.4000000059604645f, 0.20000000298023224f, -0.4000000059604645f, -0.8999999761581421f, -0.10000000149011612f, 0.20000000298023224f, -0.6000000238418579f, -0.20000000298023224f, 0.0f, -0.10000000149011612f, -0.30000001192092896f, 0.699999988079071f, -0.20000000298023224f, 0.699999988079071f, 0.6000000238418579f, -0.30000001192092896f, -0.8999999761581421f, -0.4000000059604645f, -1.0f, 0.6000000238418579f, -0.30000001192092896f, 0.10000000149011612f, -0.20000000298023224f, 0.4000000059604645f, -1.2999999523162842f, -0.4000000059604645f, -2.799999952316284f, -0.800000011920929f, -0.20000000298023224f, 1.2000000476837158f, -1.399999976158142f, 0.5f, 0.0f, -0.30000001192092896f, -0.6000000238418579f, 0.30000001192092896f, 0.699999988079071f, 1.2000000476837158f, -0.4000000059604645f, -1.399999976158142f, 1.2000000476837158f, 0.20000000298023224f, 1.0f, -0.10000000149011612f, 0.10000000149011612f, 0.5f, -0.10000000149011612f, 0.8999999761581421f, 0.30000001192092896f, 0.6000000238418579f, -0.699999988079071f, -0.10000000149011612f, -0.30000001192092896f, 2.200000047683716f, 0.0f, 0.30000001192092896f, 1.399999976158142f, -0.800000011920929f, 1.399999976158142f, 0.5f, 0.0f, 0.800000011920929f, -0.20000000298023224f, -0.4000000059604645f, 0.0f, 0.20000000298023224f, -0.20000000298023224f, 0.20000000298023224f, -0.4000000059604645f, 0.30000001192092896f, 0.699999988079071f, 0.10000000149011612f, 1.100000023841858f, 1.0f, 0.0f, 0.699999988079071f, 0.0f, -0.5f, -0.4000000059604645f, 0.0f, 0.30000001192092896f, -0.20000000298023224f, 0.6000000238418579f, 0.5f, 0.0f, 0.6000000238418579f, -1.2000000476837158f, 1.2999999523162842f, 0.5f, 1.0f, -2.5999999046325684f, 1.399999976158142f, -0.699999988079071f, 1.0f, -0.8999999761581421f, -0.10000000149011612f, -0.30000001192092896f, 1.2000000476837158f, -0.30000001192092896f, 0.6000000238418579f, -0.4000000059604645f, 0.4000000059604645f, 0.800000011920929f, -0.20000000298023224f, 0.30000001192092896f, 0.10000000149011612f, 1.100000023841858f, -1.2000000476837158f, -0.699999988079071f, 0.20000000298023224f, 1.2000000476837158f, 0.10000000149011612f, 0.30000001192092896f, 0.0f, 0.5f, -0.800000011920929f, -0.30000001192092896f, 0.10000000149011612f, 0.0f, -0.699999988079071f, 0.0f, 0.10000000149011612f, -1.100000023841858f, -1.0f, -1.399999976158142f, -0.5f, -0.8999999761581421f, -0.6000000238418579f, 0.30000001192092896f, 0.0f, -0.20000000298023224f, -0.30000001192092896f, 0.10000000149011612f, 0.20000000298023224f, -0.30000001192092896f, 0.6000000238418579f, 0.10000000149011612f, -0.20000000298023224f, 0.5f, -0.6000000238418579f, -0.8999999761581421f, 1.2999999523162842f, -0.20000000298023224f, -1.0f, 1.899999976158142f, -0.30000001192092896f, 0.30000001192092896f, 0.6000000238418579f, 1.100000023841858f, 0.0f, 0.20000000298023224f, 0.699999988079071f, -0.4000000059604645f, 0.0f, 0.10000000149011612f, 0.20000000298023224f, -0.5f, -0.5f, -1.2000000476837158f, -0.699999988079071f, 0.30000001192092896f, 0.30000001192092896f, -0.5f, 0.8999999761581421f, 1.7999999523162842f, -1.100000023841858f, 0.6000000238418579f, 0.6000000238418579f, 0.5f, -0.4000000059604645f, -0.4000000059604645f, 1.100000023841858f, -0.6000000238418579f, 0.30000001192092896f, -1.0f, 0.20000000298023224f, -0.5f, -1.5f, -1.7000000476837158f, -0.30000001192092896f, -0.8999999761581421f, -0.20000000298023224f, -1.0f, 0.10000000149011612f, -0.10000000149011612f, -0.30000001192092896f, -1.5f, -0.8999999761581421f, 0.4000000059604645f, 1.2000000476837158f, -0.20000000298023224f, -0.20000000298023224f}}, {2, {0.0f, 6.0f, 16.0f, 10.0f, 6.0f, 0.0f, 10.0f, 16.0f, 3.0f, 5.0f, 13.0f, 11.0f, 5.0f, 3.0f, 11.0f, 13.0f}}, {3, {64.0f, 64.0f, 32.0f, 32.0f}}},
1789 // int -> BOOL8 map
1790 .bool8Operands = {},
1791 // int -> QUANT8_SYMM_PER_CHANNEL map
1792 .quant8ChannelOperands = {},
1793 // int -> QUANT16_ASYMM map
1794 .quant16AsymmOperands = {},
1795 // int -> QUANT8_SYMM map
1796 .quant8SymmOperands = {},
1797 },
1798 //Output(s)
1799 { // See tools/test_generator/include/TestHarness.h:MixedTyped
1800 // int -> Dimensions map
1801 .operandDimensions = {{0, {30}}, {1, {30, 4}}, {2, {30}}},
1802 // int -> FLOAT32 map
1803 .float32Operands = {},
1804 // int -> INT32 map
1805 .int32Operands = {{2, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}}},
1806 // int -> QUANT8_ASYMM map
1807 .quant8AsymmOperands = {},
1808 // int -> QUANT16_SYMM map
1809 .quant16SymmOperands = {},
1810 // int -> FLOAT16 map
1811 .float16Operands = {{0, {0.9449999928474426f, 0.9300000071525574f, 0.9150000214576721f, 0.8999999761581421f, 0.8700000047683716f, 0.8399999737739563f, 0.8100000023841858f, 0.7950000166893005f, 0.7799999713897705f, 0.7649999856948853f, 0.75f, 0.7350000143051147f, 0.7200000286102295f, 0.7049999833106995f, 0.6899999976158142f, 0.675000011920929f, 0.9449999928474426f, 0.9150000214576721f, 0.8999999761581421f, 0.8849999904632568f, 0.8700000047683716f, 0.8399999737739563f, 0.8100000023841858f, 0.7799999713897705f, 0.7350000143051147f, 0.7200000286102295f, 0.6299999952316284f, 0.6000000238418579f, 0.5849999785423279f, 0.5400000214576721f}}, {1, {16.84515380859375f, 2.517073392868042f, 33.15484619140625f, 7.482926368713379f, 32.96343994140625f, 40.74744415283203f, 43.83656311035156f, 47.25255584716797f, 0.0f, 9.143808364868164f, 16.243606567382812f, 14.056192398071289f, 0.0f, 25.789657592773438f, 25.71002197265625f, 30.210342407226562f, 37.947444915771484f, 20.791667938232422f, 44.45255661010742f, 32.80833053588867f, 30.27760887145996f, 32.21635055541992f, 32.92238998413086f, 38.183650970458984f, 25.885488510131836f, 29.08658218383789f, 31.314512252807617f, 30.91341781616211f, 2.8654022216796875f, 5.789658069610596f, 26.73459815979004f, 10.210342407226562f, 0.5408763885498047f, 3.582404136657715f, 15.459123611450195f, 5.217595100402832f, 10.753355026245117f, 35.98240280151367f, 15.246644973754883f, 37.61759567260742f, 1.459360122680664f, 23.050153732299805f, 4.1406402587890625f, 36.149845123291016f, 0.0f, 15.600000381469727f, 11.068763732910156f, 21.600000381469727f, 38.54087829589844f, 35.28548812866211f, 53.45912170410156f, 40.71451187133789f, 26.13425636291504f, 48.35863494873047f, 27.465742111206055f, 64.0f, 29.962539672851562f, 3.1999998092651367f, 33.23746109008789f, 19.200000762939453f, 11.65351676940918f, 43.98029327392578f, 48.34648132324219f, 46.419708251953125f, 0.0f, 26.967151641845703f, 26.74894142150879f, 31.032848358154297f, 28.59032440185547f, 9.050153732299805f, 32.0f, 22.14984703063965f, 17.828777313232422f, 19.0068302154541f, 32.0f, 20.9931697845459f, 3.5724945068359375f, 7.273454189300537f, 11.6275053024292f, 19.126544952392578f, 4.989657878875732f, 26.799999237060547f, 9.410341262817383f, 32.0f, 15.157195091247559f, 18.005369186401367f, 20.04280662536621f, 25.194631576538086f, 30.889404296875f, 9.652012825012207f, 32.0f, 12.347987174987793f, 3.3994140625f, 3.8000001907348633f, 32.0f, 9.800000190734863f, 24.98040771484375f, 10.08658218383789f, 28.619590759277344f, 11.91341781616211f, 13.950423240661621f, 3.8843491077423096f, 22.049575805664062f, 6.1156511306762695f, 24.259361267089844f, 6.800000190734863f, 26.94063949584961f, 22.799999237060547f, 3.653836727142334f, 19.475812911987305f, 13.546163558959961f, 28.524187088012695f, 11.947443008422852f, 29.318363189697266f, 18.452556610107422f, 32.0f, 17.318363189697266f, 0.0f, 20.281635284423828f, 16.176950454711914f}}},
1812 // int -> BOOL8 map
1813 .bool8Operands = {},
1814 // int -> QUANT8_SYMM_PER_CHANNEL map
1815 .quant8ChannelOperands = {},
1816 // int -> QUANT16_ASYMM map
1817 .quant16AsymmOperands = {},
1818 // int -> QUANT8_SYMM map
1819 .quant8SymmOperands = {},
1820 }
1821 },
1822 }, // End of an example
1823 };
1824 return examples_dynamic_output_shape_nchw_float16_2;
1825 };
1826
1827