1 // clang-format off
2 // Generated file (from: roi_pooling.mod.py). Do not edit
3 #include "../../TestGenerated.h"
4
5 namespace roi_pooling {
6 // Generated roi_pooling test
7 #include "generated/examples/roi_pooling.example.cpp"
8 // Generated model constructor
9 #include "generated/models/roi_pooling.model.cpp"
10 } // namespace roi_pooling
11
TEST_F(GeneratedTests,roi_pooling_nhwc)12 TEST_F(GeneratedTests, roi_pooling_nhwc) {
13 execute(roi_pooling::CreateModel_nhwc,
14 roi_pooling::is_ignored_nhwc,
15 roi_pooling::get_examples_nhwc());
16 }
TEST_AVAILABLE_SINCE(V1_2,roi_pooling_nhwc,roi_pooling::CreateModel_nhwc)17 TEST_AVAILABLE_SINCE(V1_2, roi_pooling_nhwc, roi_pooling::CreateModel_nhwc)
18
19 TEST_F(GeneratedTests, roi_pooling_nhwc_relaxed) {
20 execute(roi_pooling::CreateModel_nhwc_relaxed,
21 roi_pooling::is_ignored_nhwc_relaxed,
22 roi_pooling::get_examples_nhwc_relaxed());
23 }
24
TEST_F(GeneratedTests,roi_pooling_nhwc_quant8)25 TEST_F(GeneratedTests, roi_pooling_nhwc_quant8) {
26 execute(roi_pooling::CreateModel_nhwc_quant8,
27 roi_pooling::is_ignored_nhwc_quant8,
28 roi_pooling::get_examples_nhwc_quant8());
29 }
TEST_AVAILABLE_SINCE(V1_2,roi_pooling_nhwc_quant8,roi_pooling::CreateModel_nhwc_quant8)30 TEST_AVAILABLE_SINCE(V1_2, roi_pooling_nhwc_quant8, roi_pooling::CreateModel_nhwc_quant8)
31
32 TEST_F(GeneratedTests, roi_pooling_nhwc_float16) {
33 execute(roi_pooling::CreateModel_nhwc_float16,
34 roi_pooling::is_ignored_nhwc_float16,
35 roi_pooling::get_examples_nhwc_float16());
36 }
TEST_AVAILABLE_SINCE(V1_2,roi_pooling_nhwc_float16,roi_pooling::CreateModel_nhwc_float16)37 TEST_AVAILABLE_SINCE(V1_2, roi_pooling_nhwc_float16, roi_pooling::CreateModel_nhwc_float16)
38
39 TEST_F(GeneratedTests, roi_pooling_nchw) {
40 execute(roi_pooling::CreateModel_nchw,
41 roi_pooling::is_ignored_nchw,
42 roi_pooling::get_examples_nchw());
43 }
TEST_AVAILABLE_SINCE(V1_2,roi_pooling_nchw,roi_pooling::CreateModel_nchw)44 TEST_AVAILABLE_SINCE(V1_2, roi_pooling_nchw, roi_pooling::CreateModel_nchw)
45
46 TEST_F(GeneratedTests, roi_pooling_nchw_relaxed) {
47 execute(roi_pooling::CreateModel_nchw_relaxed,
48 roi_pooling::is_ignored_nchw_relaxed,
49 roi_pooling::get_examples_nchw_relaxed());
50 }
51
TEST_F(GeneratedTests,roi_pooling_nchw_quant8)52 TEST_F(GeneratedTests, roi_pooling_nchw_quant8) {
53 execute(roi_pooling::CreateModel_nchw_quant8,
54 roi_pooling::is_ignored_nchw_quant8,
55 roi_pooling::get_examples_nchw_quant8());
56 }
TEST_AVAILABLE_SINCE(V1_2,roi_pooling_nchw_quant8,roi_pooling::CreateModel_nchw_quant8)57 TEST_AVAILABLE_SINCE(V1_2, roi_pooling_nchw_quant8, roi_pooling::CreateModel_nchw_quant8)
58
59 TEST_F(GeneratedTests, roi_pooling_nchw_float16) {
60 execute(roi_pooling::CreateModel_nchw_float16,
61 roi_pooling::is_ignored_nchw_float16,
62 roi_pooling::get_examples_nchw_float16());
63 }
TEST_AVAILABLE_SINCE(V1_2,roi_pooling_nchw_float16,roi_pooling::CreateModel_nchw_float16)64 TEST_AVAILABLE_SINCE(V1_2, roi_pooling_nchw_float16, roi_pooling::CreateModel_nchw_float16)
65
66 TEST_F(DynamicOutputShapeTest, roi_pooling_dynamic_output_shape_nhwc) {
67 execute(roi_pooling::CreateModel_dynamic_output_shape_nhwc,
68 roi_pooling::is_ignored_dynamic_output_shape_nhwc,
69 roi_pooling::get_examples_dynamic_output_shape_nhwc());
70 }
71
TEST_F(DynamicOutputShapeTest,roi_pooling_dynamic_output_shape_nhwc_relaxed)72 TEST_F(DynamicOutputShapeTest, roi_pooling_dynamic_output_shape_nhwc_relaxed) {
73 execute(roi_pooling::CreateModel_dynamic_output_shape_nhwc_relaxed,
74 roi_pooling::is_ignored_dynamic_output_shape_nhwc_relaxed,
75 roi_pooling::get_examples_dynamic_output_shape_nhwc_relaxed());
76 }
77
TEST_F(DynamicOutputShapeTest,roi_pooling_dynamic_output_shape_nhwc_quant8)78 TEST_F(DynamicOutputShapeTest, roi_pooling_dynamic_output_shape_nhwc_quant8) {
79 execute(roi_pooling::CreateModel_dynamic_output_shape_nhwc_quant8,
80 roi_pooling::is_ignored_dynamic_output_shape_nhwc_quant8,
81 roi_pooling::get_examples_dynamic_output_shape_nhwc_quant8());
82 }
83
TEST_F(DynamicOutputShapeTest,roi_pooling_dynamic_output_shape_nhwc_float16)84 TEST_F(DynamicOutputShapeTest, roi_pooling_dynamic_output_shape_nhwc_float16) {
85 execute(roi_pooling::CreateModel_dynamic_output_shape_nhwc_float16,
86 roi_pooling::is_ignored_dynamic_output_shape_nhwc_float16,
87 roi_pooling::get_examples_dynamic_output_shape_nhwc_float16());
88 }
89
TEST_F(DynamicOutputShapeTest,roi_pooling_dynamic_output_shape_nchw)90 TEST_F(DynamicOutputShapeTest, roi_pooling_dynamic_output_shape_nchw) {
91 execute(roi_pooling::CreateModel_dynamic_output_shape_nchw,
92 roi_pooling::is_ignored_dynamic_output_shape_nchw,
93 roi_pooling::get_examples_dynamic_output_shape_nchw());
94 }
95
TEST_F(DynamicOutputShapeTest,roi_pooling_dynamic_output_shape_nchw_relaxed)96 TEST_F(DynamicOutputShapeTest, roi_pooling_dynamic_output_shape_nchw_relaxed) {
97 execute(roi_pooling::CreateModel_dynamic_output_shape_nchw_relaxed,
98 roi_pooling::is_ignored_dynamic_output_shape_nchw_relaxed,
99 roi_pooling::get_examples_dynamic_output_shape_nchw_relaxed());
100 }
101
TEST_F(DynamicOutputShapeTest,roi_pooling_dynamic_output_shape_nchw_quant8)102 TEST_F(DynamicOutputShapeTest, roi_pooling_dynamic_output_shape_nchw_quant8) {
103 execute(roi_pooling::CreateModel_dynamic_output_shape_nchw_quant8,
104 roi_pooling::is_ignored_dynamic_output_shape_nchw_quant8,
105 roi_pooling::get_examples_dynamic_output_shape_nchw_quant8());
106 }
107
TEST_F(DynamicOutputShapeTest,roi_pooling_dynamic_output_shape_nchw_float16)108 TEST_F(DynamicOutputShapeTest, roi_pooling_dynamic_output_shape_nchw_float16) {
109 execute(roi_pooling::CreateModel_dynamic_output_shape_nchw_float16,
110 roi_pooling::is_ignored_dynamic_output_shape_nchw_float16,
111 roi_pooling::get_examples_dynamic_output_shape_nchw_float16());
112 }
113
TEST_F(GeneratedTests,roi_pooling_nhwc_2)114 TEST_F(GeneratedTests, roi_pooling_nhwc_2) {
115 execute(roi_pooling::CreateModel_nhwc_2,
116 roi_pooling::is_ignored_nhwc_2,
117 roi_pooling::get_examples_nhwc_2());
118 }
TEST_AVAILABLE_SINCE(V1_2,roi_pooling_nhwc_2,roi_pooling::CreateModel_nhwc_2)119 TEST_AVAILABLE_SINCE(V1_2, roi_pooling_nhwc_2, roi_pooling::CreateModel_nhwc_2)
120
121 TEST_F(GeneratedTests, roi_pooling_nhwc_relaxed_2) {
122 execute(roi_pooling::CreateModel_nhwc_relaxed_2,
123 roi_pooling::is_ignored_nhwc_relaxed_2,
124 roi_pooling::get_examples_nhwc_relaxed_2());
125 }
126
TEST_F(GeneratedTests,roi_pooling_nhwc_quant8_2)127 TEST_F(GeneratedTests, roi_pooling_nhwc_quant8_2) {
128 execute(roi_pooling::CreateModel_nhwc_quant8_2,
129 roi_pooling::is_ignored_nhwc_quant8_2,
130 roi_pooling::get_examples_nhwc_quant8_2());
131 }
TEST_AVAILABLE_SINCE(V1_2,roi_pooling_nhwc_quant8_2,roi_pooling::CreateModel_nhwc_quant8_2)132 TEST_AVAILABLE_SINCE(V1_2, roi_pooling_nhwc_quant8_2, roi_pooling::CreateModel_nhwc_quant8_2)
133
134 TEST_F(GeneratedTests, roi_pooling_nhwc_float16_2) {
135 execute(roi_pooling::CreateModel_nhwc_float16_2,
136 roi_pooling::is_ignored_nhwc_float16_2,
137 roi_pooling::get_examples_nhwc_float16_2());
138 }
TEST_AVAILABLE_SINCE(V1_2,roi_pooling_nhwc_float16_2,roi_pooling::CreateModel_nhwc_float16_2)139 TEST_AVAILABLE_SINCE(V1_2, roi_pooling_nhwc_float16_2, roi_pooling::CreateModel_nhwc_float16_2)
140
141 TEST_F(GeneratedTests, roi_pooling_nchw_2) {
142 execute(roi_pooling::CreateModel_nchw_2,
143 roi_pooling::is_ignored_nchw_2,
144 roi_pooling::get_examples_nchw_2());
145 }
TEST_AVAILABLE_SINCE(V1_2,roi_pooling_nchw_2,roi_pooling::CreateModel_nchw_2)146 TEST_AVAILABLE_SINCE(V1_2, roi_pooling_nchw_2, roi_pooling::CreateModel_nchw_2)
147
148 TEST_F(GeneratedTests, roi_pooling_nchw_relaxed_2) {
149 execute(roi_pooling::CreateModel_nchw_relaxed_2,
150 roi_pooling::is_ignored_nchw_relaxed_2,
151 roi_pooling::get_examples_nchw_relaxed_2());
152 }
153
TEST_F(GeneratedTests,roi_pooling_nchw_quant8_2)154 TEST_F(GeneratedTests, roi_pooling_nchw_quant8_2) {
155 execute(roi_pooling::CreateModel_nchw_quant8_2,
156 roi_pooling::is_ignored_nchw_quant8_2,
157 roi_pooling::get_examples_nchw_quant8_2());
158 }
TEST_AVAILABLE_SINCE(V1_2,roi_pooling_nchw_quant8_2,roi_pooling::CreateModel_nchw_quant8_2)159 TEST_AVAILABLE_SINCE(V1_2, roi_pooling_nchw_quant8_2, roi_pooling::CreateModel_nchw_quant8_2)
160
161 TEST_F(GeneratedTests, roi_pooling_nchw_float16_2) {
162 execute(roi_pooling::CreateModel_nchw_float16_2,
163 roi_pooling::is_ignored_nchw_float16_2,
164 roi_pooling::get_examples_nchw_float16_2());
165 }
TEST_AVAILABLE_SINCE(V1_2,roi_pooling_nchw_float16_2,roi_pooling::CreateModel_nchw_float16_2)166 TEST_AVAILABLE_SINCE(V1_2, roi_pooling_nchw_float16_2, roi_pooling::CreateModel_nchw_float16_2)
167
168 TEST_F(DynamicOutputShapeTest, roi_pooling_dynamic_output_shape_nhwc_2) {
169 execute(roi_pooling::CreateModel_dynamic_output_shape_nhwc_2,
170 roi_pooling::is_ignored_dynamic_output_shape_nhwc_2,
171 roi_pooling::get_examples_dynamic_output_shape_nhwc_2());
172 }
173
TEST_F(DynamicOutputShapeTest,roi_pooling_dynamic_output_shape_nhwc_relaxed_2)174 TEST_F(DynamicOutputShapeTest, roi_pooling_dynamic_output_shape_nhwc_relaxed_2) {
175 execute(roi_pooling::CreateModel_dynamic_output_shape_nhwc_relaxed_2,
176 roi_pooling::is_ignored_dynamic_output_shape_nhwc_relaxed_2,
177 roi_pooling::get_examples_dynamic_output_shape_nhwc_relaxed_2());
178 }
179
TEST_F(DynamicOutputShapeTest,roi_pooling_dynamic_output_shape_nhwc_quant8_2)180 TEST_F(DynamicOutputShapeTest, roi_pooling_dynamic_output_shape_nhwc_quant8_2) {
181 execute(roi_pooling::CreateModel_dynamic_output_shape_nhwc_quant8_2,
182 roi_pooling::is_ignored_dynamic_output_shape_nhwc_quant8_2,
183 roi_pooling::get_examples_dynamic_output_shape_nhwc_quant8_2());
184 }
185
TEST_F(DynamicOutputShapeTest,roi_pooling_dynamic_output_shape_nhwc_float16_2)186 TEST_F(DynamicOutputShapeTest, roi_pooling_dynamic_output_shape_nhwc_float16_2) {
187 execute(roi_pooling::CreateModel_dynamic_output_shape_nhwc_float16_2,
188 roi_pooling::is_ignored_dynamic_output_shape_nhwc_float16_2,
189 roi_pooling::get_examples_dynamic_output_shape_nhwc_float16_2());
190 }
191
TEST_F(DynamicOutputShapeTest,roi_pooling_dynamic_output_shape_nchw_2)192 TEST_F(DynamicOutputShapeTest, roi_pooling_dynamic_output_shape_nchw_2) {
193 execute(roi_pooling::CreateModel_dynamic_output_shape_nchw_2,
194 roi_pooling::is_ignored_dynamic_output_shape_nchw_2,
195 roi_pooling::get_examples_dynamic_output_shape_nchw_2());
196 }
197
TEST_F(DynamicOutputShapeTest,roi_pooling_dynamic_output_shape_nchw_relaxed_2)198 TEST_F(DynamicOutputShapeTest, roi_pooling_dynamic_output_shape_nchw_relaxed_2) {
199 execute(roi_pooling::CreateModel_dynamic_output_shape_nchw_relaxed_2,
200 roi_pooling::is_ignored_dynamic_output_shape_nchw_relaxed_2,
201 roi_pooling::get_examples_dynamic_output_shape_nchw_relaxed_2());
202 }
203
TEST_F(DynamicOutputShapeTest,roi_pooling_dynamic_output_shape_nchw_quant8_2)204 TEST_F(DynamicOutputShapeTest, roi_pooling_dynamic_output_shape_nchw_quant8_2) {
205 execute(roi_pooling::CreateModel_dynamic_output_shape_nchw_quant8_2,
206 roi_pooling::is_ignored_dynamic_output_shape_nchw_quant8_2,
207 roi_pooling::get_examples_dynamic_output_shape_nchw_quant8_2());
208 }
209
TEST_F(DynamicOutputShapeTest,roi_pooling_dynamic_output_shape_nchw_float16_2)210 TEST_F(DynamicOutputShapeTest, roi_pooling_dynamic_output_shape_nchw_float16_2) {
211 execute(roi_pooling::CreateModel_dynamic_output_shape_nchw_float16_2,
212 roi_pooling::is_ignored_dynamic_output_shape_nchw_float16_2,
213 roi_pooling::get_examples_dynamic_output_shape_nchw_float16_2());
214 }
215
TEST_F(GeneratedTests,roi_pooling_nhwc_3)216 TEST_F(GeneratedTests, roi_pooling_nhwc_3) {
217 execute(roi_pooling::CreateModel_nhwc_3,
218 roi_pooling::is_ignored_nhwc_3,
219 roi_pooling::get_examples_nhwc_3());
220 }
TEST_AVAILABLE_SINCE(V1_2,roi_pooling_nhwc_3,roi_pooling::CreateModel_nhwc_3)221 TEST_AVAILABLE_SINCE(V1_2, roi_pooling_nhwc_3, roi_pooling::CreateModel_nhwc_3)
222
223 TEST_F(GeneratedTests, roi_pooling_nhwc_relaxed_3) {
224 execute(roi_pooling::CreateModel_nhwc_relaxed_3,
225 roi_pooling::is_ignored_nhwc_relaxed_3,
226 roi_pooling::get_examples_nhwc_relaxed_3());
227 }
228
TEST_F(GeneratedTests,roi_pooling_nhwc_quant8_3)229 TEST_F(GeneratedTests, roi_pooling_nhwc_quant8_3) {
230 execute(roi_pooling::CreateModel_nhwc_quant8_3,
231 roi_pooling::is_ignored_nhwc_quant8_3,
232 roi_pooling::get_examples_nhwc_quant8_3());
233 }
TEST_AVAILABLE_SINCE(V1_2,roi_pooling_nhwc_quant8_3,roi_pooling::CreateModel_nhwc_quant8_3)234 TEST_AVAILABLE_SINCE(V1_2, roi_pooling_nhwc_quant8_3, roi_pooling::CreateModel_nhwc_quant8_3)
235
236 TEST_F(GeneratedTests, roi_pooling_nhwc_float16_3) {
237 execute(roi_pooling::CreateModel_nhwc_float16_3,
238 roi_pooling::is_ignored_nhwc_float16_3,
239 roi_pooling::get_examples_nhwc_float16_3());
240 }
TEST_AVAILABLE_SINCE(V1_2,roi_pooling_nhwc_float16_3,roi_pooling::CreateModel_nhwc_float16_3)241 TEST_AVAILABLE_SINCE(V1_2, roi_pooling_nhwc_float16_3, roi_pooling::CreateModel_nhwc_float16_3)
242
243 TEST_F(GeneratedTests, roi_pooling_nchw_3) {
244 execute(roi_pooling::CreateModel_nchw_3,
245 roi_pooling::is_ignored_nchw_3,
246 roi_pooling::get_examples_nchw_3());
247 }
TEST_AVAILABLE_SINCE(V1_2,roi_pooling_nchw_3,roi_pooling::CreateModel_nchw_3)248 TEST_AVAILABLE_SINCE(V1_2, roi_pooling_nchw_3, roi_pooling::CreateModel_nchw_3)
249
250 TEST_F(GeneratedTests, roi_pooling_nchw_relaxed_3) {
251 execute(roi_pooling::CreateModel_nchw_relaxed_3,
252 roi_pooling::is_ignored_nchw_relaxed_3,
253 roi_pooling::get_examples_nchw_relaxed_3());
254 }
255
TEST_F(GeneratedTests,roi_pooling_nchw_quant8_3)256 TEST_F(GeneratedTests, roi_pooling_nchw_quant8_3) {
257 execute(roi_pooling::CreateModel_nchw_quant8_3,
258 roi_pooling::is_ignored_nchw_quant8_3,
259 roi_pooling::get_examples_nchw_quant8_3());
260 }
TEST_AVAILABLE_SINCE(V1_2,roi_pooling_nchw_quant8_3,roi_pooling::CreateModel_nchw_quant8_3)261 TEST_AVAILABLE_SINCE(V1_2, roi_pooling_nchw_quant8_3, roi_pooling::CreateModel_nchw_quant8_3)
262
263 TEST_F(GeneratedTests, roi_pooling_nchw_float16_3) {
264 execute(roi_pooling::CreateModel_nchw_float16_3,
265 roi_pooling::is_ignored_nchw_float16_3,
266 roi_pooling::get_examples_nchw_float16_3());
267 }
TEST_AVAILABLE_SINCE(V1_2,roi_pooling_nchw_float16_3,roi_pooling::CreateModel_nchw_float16_3)268 TEST_AVAILABLE_SINCE(V1_2, roi_pooling_nchw_float16_3, roi_pooling::CreateModel_nchw_float16_3)
269
270 TEST_F(DynamicOutputShapeTest, roi_pooling_dynamic_output_shape_nhwc_3) {
271 execute(roi_pooling::CreateModel_dynamic_output_shape_nhwc_3,
272 roi_pooling::is_ignored_dynamic_output_shape_nhwc_3,
273 roi_pooling::get_examples_dynamic_output_shape_nhwc_3());
274 }
275
TEST_F(DynamicOutputShapeTest,roi_pooling_dynamic_output_shape_nhwc_relaxed_3)276 TEST_F(DynamicOutputShapeTest, roi_pooling_dynamic_output_shape_nhwc_relaxed_3) {
277 execute(roi_pooling::CreateModel_dynamic_output_shape_nhwc_relaxed_3,
278 roi_pooling::is_ignored_dynamic_output_shape_nhwc_relaxed_3,
279 roi_pooling::get_examples_dynamic_output_shape_nhwc_relaxed_3());
280 }
281
TEST_F(DynamicOutputShapeTest,roi_pooling_dynamic_output_shape_nhwc_quant8_3)282 TEST_F(DynamicOutputShapeTest, roi_pooling_dynamic_output_shape_nhwc_quant8_3) {
283 execute(roi_pooling::CreateModel_dynamic_output_shape_nhwc_quant8_3,
284 roi_pooling::is_ignored_dynamic_output_shape_nhwc_quant8_3,
285 roi_pooling::get_examples_dynamic_output_shape_nhwc_quant8_3());
286 }
287
TEST_F(DynamicOutputShapeTest,roi_pooling_dynamic_output_shape_nhwc_float16_3)288 TEST_F(DynamicOutputShapeTest, roi_pooling_dynamic_output_shape_nhwc_float16_3) {
289 execute(roi_pooling::CreateModel_dynamic_output_shape_nhwc_float16_3,
290 roi_pooling::is_ignored_dynamic_output_shape_nhwc_float16_3,
291 roi_pooling::get_examples_dynamic_output_shape_nhwc_float16_3());
292 }
293
TEST_F(DynamicOutputShapeTest,roi_pooling_dynamic_output_shape_nchw_3)294 TEST_F(DynamicOutputShapeTest, roi_pooling_dynamic_output_shape_nchw_3) {
295 execute(roi_pooling::CreateModel_dynamic_output_shape_nchw_3,
296 roi_pooling::is_ignored_dynamic_output_shape_nchw_3,
297 roi_pooling::get_examples_dynamic_output_shape_nchw_3());
298 }
299
TEST_F(DynamicOutputShapeTest,roi_pooling_dynamic_output_shape_nchw_relaxed_3)300 TEST_F(DynamicOutputShapeTest, roi_pooling_dynamic_output_shape_nchw_relaxed_3) {
301 execute(roi_pooling::CreateModel_dynamic_output_shape_nchw_relaxed_3,
302 roi_pooling::is_ignored_dynamic_output_shape_nchw_relaxed_3,
303 roi_pooling::get_examples_dynamic_output_shape_nchw_relaxed_3());
304 }
305
TEST_F(DynamicOutputShapeTest,roi_pooling_dynamic_output_shape_nchw_quant8_3)306 TEST_F(DynamicOutputShapeTest, roi_pooling_dynamic_output_shape_nchw_quant8_3) {
307 execute(roi_pooling::CreateModel_dynamic_output_shape_nchw_quant8_3,
308 roi_pooling::is_ignored_dynamic_output_shape_nchw_quant8_3,
309 roi_pooling::get_examples_dynamic_output_shape_nchw_quant8_3());
310 }
311
TEST_F(DynamicOutputShapeTest,roi_pooling_dynamic_output_shape_nchw_float16_3)312 TEST_F(DynamicOutputShapeTest, roi_pooling_dynamic_output_shape_nchw_float16_3) {
313 execute(roi_pooling::CreateModel_dynamic_output_shape_nchw_float16_3,
314 roi_pooling::is_ignored_dynamic_output_shape_nchw_float16_3,
315 roi_pooling::get_examples_dynamic_output_shape_nchw_float16_3());
316 }
317
318