1 // clang-format off
2 // Generated file (from: slice.mod.py). Do not edit
3 #include "../../TestGenerated.h"
4
5 namespace slice {
6 // Generated slice test
7 #include "generated/examples/slice.example.cpp"
8 // Generated model constructor
9 #include "generated/models/slice.model.cpp"
10 } // namespace slice
11
TEST_F(GeneratedTests,slice)12 TEST_F(GeneratedTests, slice) {
13 execute(slice::CreateModel,
14 slice::is_ignored,
15 slice::get_examples());
16 }
TEST_AVAILABLE_SINCE(V1_2,slice,slice::CreateModel)17 TEST_AVAILABLE_SINCE(V1_2, slice, slice::CreateModel)
18
19 TEST_F(GeneratedTests, slice_relaxed) {
20 execute(slice::CreateModel_relaxed,
21 slice::is_ignored_relaxed,
22 slice::get_examples_relaxed());
23 }
24
TEST_F(GeneratedTests,slice_float16)25 TEST_F(GeneratedTests, slice_float16) {
26 execute(slice::CreateModel_float16,
27 slice::is_ignored_float16,
28 slice::get_examples_float16());
29 }
TEST_AVAILABLE_SINCE(V1_2,slice_float16,slice::CreateModel_float16)30 TEST_AVAILABLE_SINCE(V1_2, slice_float16, slice::CreateModel_float16)
31
32 TEST_F(DynamicOutputShapeTest, slice_dynamic_output_shape) {
33 execute(slice::CreateModel_dynamic_output_shape,
34 slice::is_ignored_dynamic_output_shape,
35 slice::get_examples_dynamic_output_shape());
36 }
37
TEST_F(DynamicOutputShapeTest,slice_dynamic_output_shape_relaxed)38 TEST_F(DynamicOutputShapeTest, slice_dynamic_output_shape_relaxed) {
39 execute(slice::CreateModel_dynamic_output_shape_relaxed,
40 slice::is_ignored_dynamic_output_shape_relaxed,
41 slice::get_examples_dynamic_output_shape_relaxed());
42 }
43
TEST_F(DynamicOutputShapeTest,slice_dynamic_output_shape_float16)44 TEST_F(DynamicOutputShapeTest, slice_dynamic_output_shape_float16) {
45 execute(slice::CreateModel_dynamic_output_shape_float16,
46 slice::is_ignored_dynamic_output_shape_float16,
47 slice::get_examples_dynamic_output_shape_float16());
48 }
49
TEST_F(GeneratedTests,slice_2)50 TEST_F(GeneratedTests, slice_2) {
51 execute(slice::CreateModel_2,
52 slice::is_ignored_2,
53 slice::get_examples_2());
54 }
TEST_AVAILABLE_SINCE(V1_2,slice_2,slice::CreateModel_2)55 TEST_AVAILABLE_SINCE(V1_2, slice_2, slice::CreateModel_2)
56
57 TEST_F(GeneratedTests, slice_relaxed_2) {
58 execute(slice::CreateModel_relaxed_2,
59 slice::is_ignored_relaxed_2,
60 slice::get_examples_relaxed_2());
61 }
62
TEST_F(GeneratedTests,slice_float16_2)63 TEST_F(GeneratedTests, slice_float16_2) {
64 execute(slice::CreateModel_float16_2,
65 slice::is_ignored_float16_2,
66 slice::get_examples_float16_2());
67 }
TEST_AVAILABLE_SINCE(V1_2,slice_float16_2,slice::CreateModel_float16_2)68 TEST_AVAILABLE_SINCE(V1_2, slice_float16_2, slice::CreateModel_float16_2)
69
70 TEST_F(DynamicOutputShapeTest, slice_dynamic_output_shape_2) {
71 execute(slice::CreateModel_dynamic_output_shape_2,
72 slice::is_ignored_dynamic_output_shape_2,
73 slice::get_examples_dynamic_output_shape_2());
74 }
75
TEST_F(DynamicOutputShapeTest,slice_dynamic_output_shape_relaxed_2)76 TEST_F(DynamicOutputShapeTest, slice_dynamic_output_shape_relaxed_2) {
77 execute(slice::CreateModel_dynamic_output_shape_relaxed_2,
78 slice::is_ignored_dynamic_output_shape_relaxed_2,
79 slice::get_examples_dynamic_output_shape_relaxed_2());
80 }
81
TEST_F(DynamicOutputShapeTest,slice_dynamic_output_shape_float16_2)82 TEST_F(DynamicOutputShapeTest, slice_dynamic_output_shape_float16_2) {
83 execute(slice::CreateModel_dynamic_output_shape_float16_2,
84 slice::is_ignored_dynamic_output_shape_float16_2,
85 slice::get_examples_dynamic_output_shape_float16_2());
86 }
87
TEST_F(GeneratedTests,slice_3)88 TEST_F(GeneratedTests, slice_3) {
89 execute(slice::CreateModel_3,
90 slice::is_ignored_3,
91 slice::get_examples_3());
92 }
TEST_AVAILABLE_SINCE(V1_2,slice_3,slice::CreateModel_3)93 TEST_AVAILABLE_SINCE(V1_2, slice_3, slice::CreateModel_3)
94
95 TEST_F(GeneratedTests, slice_relaxed_3) {
96 execute(slice::CreateModel_relaxed_3,
97 slice::is_ignored_relaxed_3,
98 slice::get_examples_relaxed_3());
99 }
100
TEST_F(GeneratedTests,slice_float16_3)101 TEST_F(GeneratedTests, slice_float16_3) {
102 execute(slice::CreateModel_float16_3,
103 slice::is_ignored_float16_3,
104 slice::get_examples_float16_3());
105 }
TEST_AVAILABLE_SINCE(V1_2,slice_float16_3,slice::CreateModel_float16_3)106 TEST_AVAILABLE_SINCE(V1_2, slice_float16_3, slice::CreateModel_float16_3)
107
108 TEST_F(DynamicOutputShapeTest, slice_dynamic_output_shape_3) {
109 execute(slice::CreateModel_dynamic_output_shape_3,
110 slice::is_ignored_dynamic_output_shape_3,
111 slice::get_examples_dynamic_output_shape_3());
112 }
113
TEST_F(DynamicOutputShapeTest,slice_dynamic_output_shape_relaxed_3)114 TEST_F(DynamicOutputShapeTest, slice_dynamic_output_shape_relaxed_3) {
115 execute(slice::CreateModel_dynamic_output_shape_relaxed_3,
116 slice::is_ignored_dynamic_output_shape_relaxed_3,
117 slice::get_examples_dynamic_output_shape_relaxed_3());
118 }
119
TEST_F(DynamicOutputShapeTest,slice_dynamic_output_shape_float16_3)120 TEST_F(DynamicOutputShapeTest, slice_dynamic_output_shape_float16_3) {
121 execute(slice::CreateModel_dynamic_output_shape_float16_3,
122 slice::is_ignored_dynamic_output_shape_float16_3,
123 slice::get_examples_dynamic_output_shape_float16_3());
124 }
125
TEST_F(GeneratedTests,slice_4)126 TEST_F(GeneratedTests, slice_4) {
127 execute(slice::CreateModel_4,
128 slice::is_ignored_4,
129 slice::get_examples_4());
130 }
TEST_AVAILABLE_SINCE(V1_2,slice_4,slice::CreateModel_4)131 TEST_AVAILABLE_SINCE(V1_2, slice_4, slice::CreateModel_4)
132
133 TEST_F(GeneratedTests, slice_relaxed_4) {
134 execute(slice::CreateModel_relaxed_4,
135 slice::is_ignored_relaxed_4,
136 slice::get_examples_relaxed_4());
137 }
138
TEST_F(GeneratedTests,slice_float16_4)139 TEST_F(GeneratedTests, slice_float16_4) {
140 execute(slice::CreateModel_float16_4,
141 slice::is_ignored_float16_4,
142 slice::get_examples_float16_4());
143 }
TEST_AVAILABLE_SINCE(V1_2,slice_float16_4,slice::CreateModel_float16_4)144 TEST_AVAILABLE_SINCE(V1_2, slice_float16_4, slice::CreateModel_float16_4)
145
146 TEST_F(DynamicOutputShapeTest, slice_dynamic_output_shape_4) {
147 execute(slice::CreateModel_dynamic_output_shape_4,
148 slice::is_ignored_dynamic_output_shape_4,
149 slice::get_examples_dynamic_output_shape_4());
150 }
151
TEST_F(DynamicOutputShapeTest,slice_dynamic_output_shape_relaxed_4)152 TEST_F(DynamicOutputShapeTest, slice_dynamic_output_shape_relaxed_4) {
153 execute(slice::CreateModel_dynamic_output_shape_relaxed_4,
154 slice::is_ignored_dynamic_output_shape_relaxed_4,
155 slice::get_examples_dynamic_output_shape_relaxed_4());
156 }
157
TEST_F(DynamicOutputShapeTest,slice_dynamic_output_shape_float16_4)158 TEST_F(DynamicOutputShapeTest, slice_dynamic_output_shape_float16_4) {
159 execute(slice::CreateModel_dynamic_output_shape_float16_4,
160 slice::is_ignored_dynamic_output_shape_float16_4,
161 slice::get_examples_dynamic_output_shape_float16_4());
162 }
163
TEST_F(GeneratedTests,slice_5)164 TEST_F(GeneratedTests, slice_5) {
165 execute(slice::CreateModel_5,
166 slice::is_ignored_5,
167 slice::get_examples_5());
168 }
TEST_AVAILABLE_SINCE(V1_2,slice_5,slice::CreateModel_5)169 TEST_AVAILABLE_SINCE(V1_2, slice_5, slice::CreateModel_5)
170
171 TEST_F(GeneratedTests, slice_relaxed_5) {
172 execute(slice::CreateModel_relaxed_5,
173 slice::is_ignored_relaxed_5,
174 slice::get_examples_relaxed_5());
175 }
176
TEST_F(GeneratedTests,slice_float16_5)177 TEST_F(GeneratedTests, slice_float16_5) {
178 execute(slice::CreateModel_float16_5,
179 slice::is_ignored_float16_5,
180 slice::get_examples_float16_5());
181 }
TEST_AVAILABLE_SINCE(V1_2,slice_float16_5,slice::CreateModel_float16_5)182 TEST_AVAILABLE_SINCE(V1_2, slice_float16_5, slice::CreateModel_float16_5)
183
184 TEST_F(DynamicOutputShapeTest, slice_dynamic_output_shape_5) {
185 execute(slice::CreateModel_dynamic_output_shape_5,
186 slice::is_ignored_dynamic_output_shape_5,
187 slice::get_examples_dynamic_output_shape_5());
188 }
189
TEST_F(DynamicOutputShapeTest,slice_dynamic_output_shape_relaxed_5)190 TEST_F(DynamicOutputShapeTest, slice_dynamic_output_shape_relaxed_5) {
191 execute(slice::CreateModel_dynamic_output_shape_relaxed_5,
192 slice::is_ignored_dynamic_output_shape_relaxed_5,
193 slice::get_examples_dynamic_output_shape_relaxed_5());
194 }
195
TEST_F(DynamicOutputShapeTest,slice_dynamic_output_shape_float16_5)196 TEST_F(DynamicOutputShapeTest, slice_dynamic_output_shape_float16_5) {
197 execute(slice::CreateModel_dynamic_output_shape_float16_5,
198 slice::is_ignored_dynamic_output_shape_float16_5,
199 slice::get_examples_dynamic_output_shape_float16_5());
200 }
201
TEST_F(GeneratedTests,slice_6)202 TEST_F(GeneratedTests, slice_6) {
203 execute(slice::CreateModel_6,
204 slice::is_ignored_6,
205 slice::get_examples_6());
206 }
TEST_AVAILABLE_SINCE(V1_2,slice_6,slice::CreateModel_6)207 TEST_AVAILABLE_SINCE(V1_2, slice_6, slice::CreateModel_6)
208
209 TEST_F(GeneratedTests, slice_relaxed_6) {
210 execute(slice::CreateModel_relaxed_6,
211 slice::is_ignored_relaxed_6,
212 slice::get_examples_relaxed_6());
213 }
214
TEST_F(GeneratedTests,slice_float16_6)215 TEST_F(GeneratedTests, slice_float16_6) {
216 execute(slice::CreateModel_float16_6,
217 slice::is_ignored_float16_6,
218 slice::get_examples_float16_6());
219 }
TEST_AVAILABLE_SINCE(V1_2,slice_float16_6,slice::CreateModel_float16_6)220 TEST_AVAILABLE_SINCE(V1_2, slice_float16_6, slice::CreateModel_float16_6)
221
222 TEST_F(DynamicOutputShapeTest, slice_dynamic_output_shape_6) {
223 execute(slice::CreateModel_dynamic_output_shape_6,
224 slice::is_ignored_dynamic_output_shape_6,
225 slice::get_examples_dynamic_output_shape_6());
226 }
227
TEST_F(DynamicOutputShapeTest,slice_dynamic_output_shape_relaxed_6)228 TEST_F(DynamicOutputShapeTest, slice_dynamic_output_shape_relaxed_6) {
229 execute(slice::CreateModel_dynamic_output_shape_relaxed_6,
230 slice::is_ignored_dynamic_output_shape_relaxed_6,
231 slice::get_examples_dynamic_output_shape_relaxed_6());
232 }
233
TEST_F(DynamicOutputShapeTest,slice_dynamic_output_shape_float16_6)234 TEST_F(DynamicOutputShapeTest, slice_dynamic_output_shape_float16_6) {
235 execute(slice::CreateModel_dynamic_output_shape_float16_6,
236 slice::is_ignored_dynamic_output_shape_float16_6,
237 slice::get_examples_dynamic_output_shape_float16_6());
238 }
239
TEST_F(GeneratedTests,slice_7)240 TEST_F(GeneratedTests, slice_7) {
241 execute(slice::CreateModel_7,
242 slice::is_ignored_7,
243 slice::get_examples_7());
244 }
TEST_AVAILABLE_SINCE(V1_2,slice_7,slice::CreateModel_7)245 TEST_AVAILABLE_SINCE(V1_2, slice_7, slice::CreateModel_7)
246
247 TEST_F(GeneratedTests, slice_relaxed_7) {
248 execute(slice::CreateModel_relaxed_7,
249 slice::is_ignored_relaxed_7,
250 slice::get_examples_relaxed_7());
251 }
252
TEST_F(GeneratedTests,slice_float16_7)253 TEST_F(GeneratedTests, slice_float16_7) {
254 execute(slice::CreateModel_float16_7,
255 slice::is_ignored_float16_7,
256 slice::get_examples_float16_7());
257 }
TEST_AVAILABLE_SINCE(V1_2,slice_float16_7,slice::CreateModel_float16_7)258 TEST_AVAILABLE_SINCE(V1_2, slice_float16_7, slice::CreateModel_float16_7)
259
260 TEST_F(DynamicOutputShapeTest, slice_dynamic_output_shape_7) {
261 execute(slice::CreateModel_dynamic_output_shape_7,
262 slice::is_ignored_dynamic_output_shape_7,
263 slice::get_examples_dynamic_output_shape_7());
264 }
265
TEST_F(DynamicOutputShapeTest,slice_dynamic_output_shape_relaxed_7)266 TEST_F(DynamicOutputShapeTest, slice_dynamic_output_shape_relaxed_7) {
267 execute(slice::CreateModel_dynamic_output_shape_relaxed_7,
268 slice::is_ignored_dynamic_output_shape_relaxed_7,
269 slice::get_examples_dynamic_output_shape_relaxed_7());
270 }
271
TEST_F(DynamicOutputShapeTest,slice_dynamic_output_shape_float16_7)272 TEST_F(DynamicOutputShapeTest, slice_dynamic_output_shape_float16_7) {
273 execute(slice::CreateModel_dynamic_output_shape_float16_7,
274 slice::is_ignored_dynamic_output_shape_float16_7,
275 slice::get_examples_dynamic_output_shape_float16_7());
276 }
277
TEST_F(GeneratedTests,slice_8)278 TEST_F(GeneratedTests, slice_8) {
279 execute(slice::CreateModel_8,
280 slice::is_ignored_8,
281 slice::get_examples_8());
282 }
TEST_AVAILABLE_SINCE(V1_2,slice_8,slice::CreateModel_8)283 TEST_AVAILABLE_SINCE(V1_2, slice_8, slice::CreateModel_8)
284
285 TEST_F(GeneratedTests, slice_relaxed_8) {
286 execute(slice::CreateModel_relaxed_8,
287 slice::is_ignored_relaxed_8,
288 slice::get_examples_relaxed_8());
289 }
290
TEST_F(GeneratedTests,slice_float16_8)291 TEST_F(GeneratedTests, slice_float16_8) {
292 execute(slice::CreateModel_float16_8,
293 slice::is_ignored_float16_8,
294 slice::get_examples_float16_8());
295 }
TEST_AVAILABLE_SINCE(V1_2,slice_float16_8,slice::CreateModel_float16_8)296 TEST_AVAILABLE_SINCE(V1_2, slice_float16_8, slice::CreateModel_float16_8)
297
298 TEST_F(DynamicOutputShapeTest, slice_dynamic_output_shape_8) {
299 execute(slice::CreateModel_dynamic_output_shape_8,
300 slice::is_ignored_dynamic_output_shape_8,
301 slice::get_examples_dynamic_output_shape_8());
302 }
303
TEST_F(DynamicOutputShapeTest,slice_dynamic_output_shape_relaxed_8)304 TEST_F(DynamicOutputShapeTest, slice_dynamic_output_shape_relaxed_8) {
305 execute(slice::CreateModel_dynamic_output_shape_relaxed_8,
306 slice::is_ignored_dynamic_output_shape_relaxed_8,
307 slice::get_examples_dynamic_output_shape_relaxed_8());
308 }
309
TEST_F(DynamicOutputShapeTest,slice_dynamic_output_shape_float16_8)310 TEST_F(DynamicOutputShapeTest, slice_dynamic_output_shape_float16_8) {
311 execute(slice::CreateModel_dynamic_output_shape_float16_8,
312 slice::is_ignored_dynamic_output_shape_float16_8,
313 slice::get_examples_dynamic_output_shape_float16_8());
314 }
315
TEST_F(GeneratedTests,slice_zero_sized)316 TEST_F(GeneratedTests, slice_zero_sized) {
317 execute(slice::CreateModel_zero_sized,
318 slice::is_ignored_zero_sized,
319 slice::get_examples_zero_sized());
320 }
TEST_AVAILABLE_SINCE(V1_2,slice_zero_sized,slice::CreateModel_zero_sized)321 TEST_AVAILABLE_SINCE(V1_2, slice_zero_sized, slice::CreateModel_zero_sized)
322
323 TEST_F(GeneratedTests, slice_zero_sized_relaxed) {
324 execute(slice::CreateModel_zero_sized_relaxed,
325 slice::is_ignored_zero_sized_relaxed,
326 slice::get_examples_zero_sized_relaxed());
327 }
328
TEST_F(GeneratedTests,slice_zero_sized_quant8)329 TEST_F(GeneratedTests, slice_zero_sized_quant8) {
330 execute(slice::CreateModel_zero_sized_quant8,
331 slice::is_ignored_zero_sized_quant8,
332 slice::get_examples_zero_sized_quant8());
333 }
TEST_AVAILABLE_SINCE(V1_2,slice_zero_sized_quant8,slice::CreateModel_zero_sized_quant8)334 TEST_AVAILABLE_SINCE(V1_2, slice_zero_sized_quant8, slice::CreateModel_zero_sized_quant8)
335
336 TEST_F(GeneratedTests, slice_zero_sized_float16) {
337 execute(slice::CreateModel_zero_sized_float16,
338 slice::is_ignored_zero_sized_float16,
339 slice::get_examples_zero_sized_float16());
340 }
TEST_AVAILABLE_SINCE(V1_2,slice_zero_sized_float16,slice::CreateModel_zero_sized_float16)341 TEST_AVAILABLE_SINCE(V1_2, slice_zero_sized_float16, slice::CreateModel_zero_sized_float16)
342
343 TEST_F(DynamicOutputShapeTest, slice_zero_sized_dynamic_output_shape) {
344 execute(slice::CreateModel_zero_sized_dynamic_output_shape,
345 slice::is_ignored_zero_sized_dynamic_output_shape,
346 slice::get_examples_zero_sized_dynamic_output_shape());
347 }
348
TEST_F(DynamicOutputShapeTest,slice_zero_sized_dynamic_output_shape_relaxed)349 TEST_F(DynamicOutputShapeTest, slice_zero_sized_dynamic_output_shape_relaxed) {
350 execute(slice::CreateModel_zero_sized_dynamic_output_shape_relaxed,
351 slice::is_ignored_zero_sized_dynamic_output_shape_relaxed,
352 slice::get_examples_zero_sized_dynamic_output_shape_relaxed());
353 }
354
TEST_F(DynamicOutputShapeTest,slice_zero_sized_dynamic_output_shape_quant8)355 TEST_F(DynamicOutputShapeTest, slice_zero_sized_dynamic_output_shape_quant8) {
356 execute(slice::CreateModel_zero_sized_dynamic_output_shape_quant8,
357 slice::is_ignored_zero_sized_dynamic_output_shape_quant8,
358 slice::get_examples_zero_sized_dynamic_output_shape_quant8());
359 }
360
TEST_F(DynamicOutputShapeTest,slice_zero_sized_dynamic_output_shape_float16)361 TEST_F(DynamicOutputShapeTest, slice_zero_sized_dynamic_output_shape_float16) {
362 execute(slice::CreateModel_zero_sized_dynamic_output_shape_float16,
363 slice::is_ignored_zero_sized_dynamic_output_shape_float16,
364 slice::get_examples_zero_sized_dynamic_output_shape_float16());
365 }
366
367