1 // clang-format off
2 // Generated file (from: avg_pool_v1_2.mod.py). Do not edit
3 #include "../../TestGenerated.h"
4
5 namespace avg_pool_v1_2 {
6 // Generated avg_pool_v1_2 test
7 #include "generated/examples/avg_pool_v1_2.example.cpp"
8 // Generated model constructor
9 #include "generated/models/avg_pool_v1_2.model.cpp"
10 } // namespace avg_pool_v1_2
11
TEST_F(GeneratedTests,avg_pool_v1_2_nhwc)12 TEST_F(GeneratedTests, avg_pool_v1_2_nhwc) {
13 execute(avg_pool_v1_2::CreateModel_nhwc,
14 avg_pool_v1_2::is_ignored_nhwc,
15 avg_pool_v1_2::get_examples_nhwc());
16 }
TEST_AVAILABLE_SINCE(V1_2,avg_pool_v1_2_nhwc,avg_pool_v1_2::CreateModel_nhwc)17 TEST_AVAILABLE_SINCE(V1_2, avg_pool_v1_2_nhwc, avg_pool_v1_2::CreateModel_nhwc)
18
19 TEST_F(GeneratedTests, avg_pool_v1_2_nhwc_relaxed) {
20 execute(avg_pool_v1_2::CreateModel_nhwc_relaxed,
21 avg_pool_v1_2::is_ignored_nhwc_relaxed,
22 avg_pool_v1_2::get_examples_nhwc_relaxed());
23 }
24
TEST_F(GeneratedTests,avg_pool_v1_2_nhwc_float16)25 TEST_F(GeneratedTests, avg_pool_v1_2_nhwc_float16) {
26 execute(avg_pool_v1_2::CreateModel_nhwc_float16,
27 avg_pool_v1_2::is_ignored_nhwc_float16,
28 avg_pool_v1_2::get_examples_nhwc_float16());
29 }
TEST_AVAILABLE_SINCE(V1_2,avg_pool_v1_2_nhwc_float16,avg_pool_v1_2::CreateModel_nhwc_float16)30 TEST_AVAILABLE_SINCE(V1_2, avg_pool_v1_2_nhwc_float16, avg_pool_v1_2::CreateModel_nhwc_float16)
31
32 TEST_F(GeneratedTests, avg_pool_v1_2_nhwc_quant8) {
33 execute(avg_pool_v1_2::CreateModel_nhwc_quant8,
34 avg_pool_v1_2::is_ignored_nhwc_quant8,
35 avg_pool_v1_2::get_examples_nhwc_quant8());
36 }
TEST_AVAILABLE_SINCE(V1_2,avg_pool_v1_2_nhwc_quant8,avg_pool_v1_2::CreateModel_nhwc_quant8)37 TEST_AVAILABLE_SINCE(V1_2, avg_pool_v1_2_nhwc_quant8, avg_pool_v1_2::CreateModel_nhwc_quant8)
38
39 TEST_F(GeneratedTests, avg_pool_v1_2_nchw) {
40 execute(avg_pool_v1_2::CreateModel_nchw,
41 avg_pool_v1_2::is_ignored_nchw,
42 avg_pool_v1_2::get_examples_nchw());
43 }
TEST_AVAILABLE_SINCE(V1_2,avg_pool_v1_2_nchw,avg_pool_v1_2::CreateModel_nchw)44 TEST_AVAILABLE_SINCE(V1_2, avg_pool_v1_2_nchw, avg_pool_v1_2::CreateModel_nchw)
45
46 TEST_F(GeneratedTests, avg_pool_v1_2_nchw_relaxed) {
47 execute(avg_pool_v1_2::CreateModel_nchw_relaxed,
48 avg_pool_v1_2::is_ignored_nchw_relaxed,
49 avg_pool_v1_2::get_examples_nchw_relaxed());
50 }
51
TEST_F(GeneratedTests,avg_pool_v1_2_nchw_float16)52 TEST_F(GeneratedTests, avg_pool_v1_2_nchw_float16) {
53 execute(avg_pool_v1_2::CreateModel_nchw_float16,
54 avg_pool_v1_2::is_ignored_nchw_float16,
55 avg_pool_v1_2::get_examples_nchw_float16());
56 }
TEST_AVAILABLE_SINCE(V1_2,avg_pool_v1_2_nchw_float16,avg_pool_v1_2::CreateModel_nchw_float16)57 TEST_AVAILABLE_SINCE(V1_2, avg_pool_v1_2_nchw_float16, avg_pool_v1_2::CreateModel_nchw_float16)
58
59 TEST_F(GeneratedTests, avg_pool_v1_2_nchw_quant8) {
60 execute(avg_pool_v1_2::CreateModel_nchw_quant8,
61 avg_pool_v1_2::is_ignored_nchw_quant8,
62 avg_pool_v1_2::get_examples_nchw_quant8());
63 }
TEST_AVAILABLE_SINCE(V1_2,avg_pool_v1_2_nchw_quant8,avg_pool_v1_2::CreateModel_nchw_quant8)64 TEST_AVAILABLE_SINCE(V1_2, avg_pool_v1_2_nchw_quant8, avg_pool_v1_2::CreateModel_nchw_quant8)
65
66 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_dynamic_output_shape_nhwc) {
67 execute(avg_pool_v1_2::CreateModel_dynamic_output_shape_nhwc,
68 avg_pool_v1_2::is_ignored_dynamic_output_shape_nhwc,
69 avg_pool_v1_2::get_examples_dynamic_output_shape_nhwc());
70 }
71
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_dynamic_output_shape_nhwc_relaxed)72 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_dynamic_output_shape_nhwc_relaxed) {
73 execute(avg_pool_v1_2::CreateModel_dynamic_output_shape_nhwc_relaxed,
74 avg_pool_v1_2::is_ignored_dynamic_output_shape_nhwc_relaxed,
75 avg_pool_v1_2::get_examples_dynamic_output_shape_nhwc_relaxed());
76 }
77
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_dynamic_output_shape_nhwc_float16)78 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_dynamic_output_shape_nhwc_float16) {
79 execute(avg_pool_v1_2::CreateModel_dynamic_output_shape_nhwc_float16,
80 avg_pool_v1_2::is_ignored_dynamic_output_shape_nhwc_float16,
81 avg_pool_v1_2::get_examples_dynamic_output_shape_nhwc_float16());
82 }
83
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_dynamic_output_shape_nhwc_quant8)84 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_dynamic_output_shape_nhwc_quant8) {
85 execute(avg_pool_v1_2::CreateModel_dynamic_output_shape_nhwc_quant8,
86 avg_pool_v1_2::is_ignored_dynamic_output_shape_nhwc_quant8,
87 avg_pool_v1_2::get_examples_dynamic_output_shape_nhwc_quant8());
88 }
89
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_dynamic_output_shape_nchw)90 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_dynamic_output_shape_nchw) {
91 execute(avg_pool_v1_2::CreateModel_dynamic_output_shape_nchw,
92 avg_pool_v1_2::is_ignored_dynamic_output_shape_nchw,
93 avg_pool_v1_2::get_examples_dynamic_output_shape_nchw());
94 }
95
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_dynamic_output_shape_nchw_relaxed)96 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_dynamic_output_shape_nchw_relaxed) {
97 execute(avg_pool_v1_2::CreateModel_dynamic_output_shape_nchw_relaxed,
98 avg_pool_v1_2::is_ignored_dynamic_output_shape_nchw_relaxed,
99 avg_pool_v1_2::get_examples_dynamic_output_shape_nchw_relaxed());
100 }
101
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_dynamic_output_shape_nchw_float16)102 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_dynamic_output_shape_nchw_float16) {
103 execute(avg_pool_v1_2::CreateModel_dynamic_output_shape_nchw_float16,
104 avg_pool_v1_2::is_ignored_dynamic_output_shape_nchw_float16,
105 avg_pool_v1_2::get_examples_dynamic_output_shape_nchw_float16());
106 }
107
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_dynamic_output_shape_nchw_quant8)108 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_dynamic_output_shape_nchw_quant8) {
109 execute(avg_pool_v1_2::CreateModel_dynamic_output_shape_nchw_quant8,
110 avg_pool_v1_2::is_ignored_dynamic_output_shape_nchw_quant8,
111 avg_pool_v1_2::get_examples_dynamic_output_shape_nchw_quant8());
112 }
113
TEST_F(GeneratedTests,avg_pool_v1_2_nhwc_2)114 TEST_F(GeneratedTests, avg_pool_v1_2_nhwc_2) {
115 execute(avg_pool_v1_2::CreateModel_nhwc_2,
116 avg_pool_v1_2::is_ignored_nhwc_2,
117 avg_pool_v1_2::get_examples_nhwc_2());
118 }
TEST_AVAILABLE_SINCE(V1_2,avg_pool_v1_2_nhwc_2,avg_pool_v1_2::CreateModel_nhwc_2)119 TEST_AVAILABLE_SINCE(V1_2, avg_pool_v1_2_nhwc_2, avg_pool_v1_2::CreateModel_nhwc_2)
120
121 TEST_F(GeneratedTests, avg_pool_v1_2_nhwc_relaxed_2) {
122 execute(avg_pool_v1_2::CreateModel_nhwc_relaxed_2,
123 avg_pool_v1_2::is_ignored_nhwc_relaxed_2,
124 avg_pool_v1_2::get_examples_nhwc_relaxed_2());
125 }
126
TEST_F(GeneratedTests,avg_pool_v1_2_nhwc_float16_2)127 TEST_F(GeneratedTests, avg_pool_v1_2_nhwc_float16_2) {
128 execute(avg_pool_v1_2::CreateModel_nhwc_float16_2,
129 avg_pool_v1_2::is_ignored_nhwc_float16_2,
130 avg_pool_v1_2::get_examples_nhwc_float16_2());
131 }
TEST_AVAILABLE_SINCE(V1_2,avg_pool_v1_2_nhwc_float16_2,avg_pool_v1_2::CreateModel_nhwc_float16_2)132 TEST_AVAILABLE_SINCE(V1_2, avg_pool_v1_2_nhwc_float16_2, avg_pool_v1_2::CreateModel_nhwc_float16_2)
133
134 TEST_F(GeneratedTests, avg_pool_v1_2_nhwc_quant8_2) {
135 execute(avg_pool_v1_2::CreateModel_nhwc_quant8_2,
136 avg_pool_v1_2::is_ignored_nhwc_quant8_2,
137 avg_pool_v1_2::get_examples_nhwc_quant8_2());
138 }
TEST_AVAILABLE_SINCE(V1_2,avg_pool_v1_2_nhwc_quant8_2,avg_pool_v1_2::CreateModel_nhwc_quant8_2)139 TEST_AVAILABLE_SINCE(V1_2, avg_pool_v1_2_nhwc_quant8_2, avg_pool_v1_2::CreateModel_nhwc_quant8_2)
140
141 TEST_F(GeneratedTests, avg_pool_v1_2_nchw_2) {
142 execute(avg_pool_v1_2::CreateModel_nchw_2,
143 avg_pool_v1_2::is_ignored_nchw_2,
144 avg_pool_v1_2::get_examples_nchw_2());
145 }
TEST_AVAILABLE_SINCE(V1_2,avg_pool_v1_2_nchw_2,avg_pool_v1_2::CreateModel_nchw_2)146 TEST_AVAILABLE_SINCE(V1_2, avg_pool_v1_2_nchw_2, avg_pool_v1_2::CreateModel_nchw_2)
147
148 TEST_F(GeneratedTests, avg_pool_v1_2_nchw_relaxed_2) {
149 execute(avg_pool_v1_2::CreateModel_nchw_relaxed_2,
150 avg_pool_v1_2::is_ignored_nchw_relaxed_2,
151 avg_pool_v1_2::get_examples_nchw_relaxed_2());
152 }
153
TEST_F(GeneratedTests,avg_pool_v1_2_nchw_float16_2)154 TEST_F(GeneratedTests, avg_pool_v1_2_nchw_float16_2) {
155 execute(avg_pool_v1_2::CreateModel_nchw_float16_2,
156 avg_pool_v1_2::is_ignored_nchw_float16_2,
157 avg_pool_v1_2::get_examples_nchw_float16_2());
158 }
TEST_AVAILABLE_SINCE(V1_2,avg_pool_v1_2_nchw_float16_2,avg_pool_v1_2::CreateModel_nchw_float16_2)159 TEST_AVAILABLE_SINCE(V1_2, avg_pool_v1_2_nchw_float16_2, avg_pool_v1_2::CreateModel_nchw_float16_2)
160
161 TEST_F(GeneratedTests, avg_pool_v1_2_nchw_quant8_2) {
162 execute(avg_pool_v1_2::CreateModel_nchw_quant8_2,
163 avg_pool_v1_2::is_ignored_nchw_quant8_2,
164 avg_pool_v1_2::get_examples_nchw_quant8_2());
165 }
TEST_AVAILABLE_SINCE(V1_2,avg_pool_v1_2_nchw_quant8_2,avg_pool_v1_2::CreateModel_nchw_quant8_2)166 TEST_AVAILABLE_SINCE(V1_2, avg_pool_v1_2_nchw_quant8_2, avg_pool_v1_2::CreateModel_nchw_quant8_2)
167
168 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_dynamic_output_shape_nhwc_2) {
169 execute(avg_pool_v1_2::CreateModel_dynamic_output_shape_nhwc_2,
170 avg_pool_v1_2::is_ignored_dynamic_output_shape_nhwc_2,
171 avg_pool_v1_2::get_examples_dynamic_output_shape_nhwc_2());
172 }
173
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_dynamic_output_shape_nhwc_relaxed_2)174 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_dynamic_output_shape_nhwc_relaxed_2) {
175 execute(avg_pool_v1_2::CreateModel_dynamic_output_shape_nhwc_relaxed_2,
176 avg_pool_v1_2::is_ignored_dynamic_output_shape_nhwc_relaxed_2,
177 avg_pool_v1_2::get_examples_dynamic_output_shape_nhwc_relaxed_2());
178 }
179
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_dynamic_output_shape_nhwc_float16_2)180 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_dynamic_output_shape_nhwc_float16_2) {
181 execute(avg_pool_v1_2::CreateModel_dynamic_output_shape_nhwc_float16_2,
182 avg_pool_v1_2::is_ignored_dynamic_output_shape_nhwc_float16_2,
183 avg_pool_v1_2::get_examples_dynamic_output_shape_nhwc_float16_2());
184 }
185
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_dynamic_output_shape_nhwc_quant8_2)186 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_dynamic_output_shape_nhwc_quant8_2) {
187 execute(avg_pool_v1_2::CreateModel_dynamic_output_shape_nhwc_quant8_2,
188 avg_pool_v1_2::is_ignored_dynamic_output_shape_nhwc_quant8_2,
189 avg_pool_v1_2::get_examples_dynamic_output_shape_nhwc_quant8_2());
190 }
191
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_dynamic_output_shape_nchw_2)192 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_dynamic_output_shape_nchw_2) {
193 execute(avg_pool_v1_2::CreateModel_dynamic_output_shape_nchw_2,
194 avg_pool_v1_2::is_ignored_dynamic_output_shape_nchw_2,
195 avg_pool_v1_2::get_examples_dynamic_output_shape_nchw_2());
196 }
197
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_dynamic_output_shape_nchw_relaxed_2)198 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_dynamic_output_shape_nchw_relaxed_2) {
199 execute(avg_pool_v1_2::CreateModel_dynamic_output_shape_nchw_relaxed_2,
200 avg_pool_v1_2::is_ignored_dynamic_output_shape_nchw_relaxed_2,
201 avg_pool_v1_2::get_examples_dynamic_output_shape_nchw_relaxed_2());
202 }
203
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_dynamic_output_shape_nchw_float16_2)204 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_dynamic_output_shape_nchw_float16_2) {
205 execute(avg_pool_v1_2::CreateModel_dynamic_output_shape_nchw_float16_2,
206 avg_pool_v1_2::is_ignored_dynamic_output_shape_nchw_float16_2,
207 avg_pool_v1_2::get_examples_dynamic_output_shape_nchw_float16_2());
208 }
209
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_dynamic_output_shape_nchw_quant8_2)210 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_dynamic_output_shape_nchw_quant8_2) {
211 execute(avg_pool_v1_2::CreateModel_dynamic_output_shape_nchw_quant8_2,
212 avg_pool_v1_2::is_ignored_dynamic_output_shape_nchw_quant8_2,
213 avg_pool_v1_2::get_examples_dynamic_output_shape_nchw_quant8_2());
214 }
215
TEST_F(GeneratedTests,avg_pool_v1_2_nhwc_3)216 TEST_F(GeneratedTests, avg_pool_v1_2_nhwc_3) {
217 execute(avg_pool_v1_2::CreateModel_nhwc_3,
218 avg_pool_v1_2::is_ignored_nhwc_3,
219 avg_pool_v1_2::get_examples_nhwc_3());
220 }
TEST_AVAILABLE_SINCE(V1_2,avg_pool_v1_2_nhwc_3,avg_pool_v1_2::CreateModel_nhwc_3)221 TEST_AVAILABLE_SINCE(V1_2, avg_pool_v1_2_nhwc_3, avg_pool_v1_2::CreateModel_nhwc_3)
222
223 TEST_F(GeneratedTests, avg_pool_v1_2_nhwc_relaxed_3) {
224 execute(avg_pool_v1_2::CreateModel_nhwc_relaxed_3,
225 avg_pool_v1_2::is_ignored_nhwc_relaxed_3,
226 avg_pool_v1_2::get_examples_nhwc_relaxed_3());
227 }
228
TEST_F(GeneratedTests,avg_pool_v1_2_nhwc_float16_3)229 TEST_F(GeneratedTests, avg_pool_v1_2_nhwc_float16_3) {
230 execute(avg_pool_v1_2::CreateModel_nhwc_float16_3,
231 avg_pool_v1_2::is_ignored_nhwc_float16_3,
232 avg_pool_v1_2::get_examples_nhwc_float16_3());
233 }
TEST_AVAILABLE_SINCE(V1_2,avg_pool_v1_2_nhwc_float16_3,avg_pool_v1_2::CreateModel_nhwc_float16_3)234 TEST_AVAILABLE_SINCE(V1_2, avg_pool_v1_2_nhwc_float16_3, avg_pool_v1_2::CreateModel_nhwc_float16_3)
235
236 TEST_F(GeneratedTests, avg_pool_v1_2_nhwc_quant8_3) {
237 execute(avg_pool_v1_2::CreateModel_nhwc_quant8_3,
238 avg_pool_v1_2::is_ignored_nhwc_quant8_3,
239 avg_pool_v1_2::get_examples_nhwc_quant8_3());
240 }
TEST_AVAILABLE_SINCE(V1_2,avg_pool_v1_2_nhwc_quant8_3,avg_pool_v1_2::CreateModel_nhwc_quant8_3)241 TEST_AVAILABLE_SINCE(V1_2, avg_pool_v1_2_nhwc_quant8_3, avg_pool_v1_2::CreateModel_nhwc_quant8_3)
242
243 TEST_F(GeneratedTests, avg_pool_v1_2_nchw_3) {
244 execute(avg_pool_v1_2::CreateModel_nchw_3,
245 avg_pool_v1_2::is_ignored_nchw_3,
246 avg_pool_v1_2::get_examples_nchw_3());
247 }
TEST_AVAILABLE_SINCE(V1_2,avg_pool_v1_2_nchw_3,avg_pool_v1_2::CreateModel_nchw_3)248 TEST_AVAILABLE_SINCE(V1_2, avg_pool_v1_2_nchw_3, avg_pool_v1_2::CreateModel_nchw_3)
249
250 TEST_F(GeneratedTests, avg_pool_v1_2_nchw_relaxed_3) {
251 execute(avg_pool_v1_2::CreateModel_nchw_relaxed_3,
252 avg_pool_v1_2::is_ignored_nchw_relaxed_3,
253 avg_pool_v1_2::get_examples_nchw_relaxed_3());
254 }
255
TEST_F(GeneratedTests,avg_pool_v1_2_nchw_float16_3)256 TEST_F(GeneratedTests, avg_pool_v1_2_nchw_float16_3) {
257 execute(avg_pool_v1_2::CreateModel_nchw_float16_3,
258 avg_pool_v1_2::is_ignored_nchw_float16_3,
259 avg_pool_v1_2::get_examples_nchw_float16_3());
260 }
TEST_AVAILABLE_SINCE(V1_2,avg_pool_v1_2_nchw_float16_3,avg_pool_v1_2::CreateModel_nchw_float16_3)261 TEST_AVAILABLE_SINCE(V1_2, avg_pool_v1_2_nchw_float16_3, avg_pool_v1_2::CreateModel_nchw_float16_3)
262
263 TEST_F(GeneratedTests, avg_pool_v1_2_nchw_quant8_3) {
264 execute(avg_pool_v1_2::CreateModel_nchw_quant8_3,
265 avg_pool_v1_2::is_ignored_nchw_quant8_3,
266 avg_pool_v1_2::get_examples_nchw_quant8_3());
267 }
TEST_AVAILABLE_SINCE(V1_2,avg_pool_v1_2_nchw_quant8_3,avg_pool_v1_2::CreateModel_nchw_quant8_3)268 TEST_AVAILABLE_SINCE(V1_2, avg_pool_v1_2_nchw_quant8_3, avg_pool_v1_2::CreateModel_nchw_quant8_3)
269
270 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_dynamic_output_shape_nhwc_3) {
271 execute(avg_pool_v1_2::CreateModel_dynamic_output_shape_nhwc_3,
272 avg_pool_v1_2::is_ignored_dynamic_output_shape_nhwc_3,
273 avg_pool_v1_2::get_examples_dynamic_output_shape_nhwc_3());
274 }
275
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_dynamic_output_shape_nhwc_relaxed_3)276 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_dynamic_output_shape_nhwc_relaxed_3) {
277 execute(avg_pool_v1_2::CreateModel_dynamic_output_shape_nhwc_relaxed_3,
278 avg_pool_v1_2::is_ignored_dynamic_output_shape_nhwc_relaxed_3,
279 avg_pool_v1_2::get_examples_dynamic_output_shape_nhwc_relaxed_3());
280 }
281
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_dynamic_output_shape_nhwc_float16_3)282 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_dynamic_output_shape_nhwc_float16_3) {
283 execute(avg_pool_v1_2::CreateModel_dynamic_output_shape_nhwc_float16_3,
284 avg_pool_v1_2::is_ignored_dynamic_output_shape_nhwc_float16_3,
285 avg_pool_v1_2::get_examples_dynamic_output_shape_nhwc_float16_3());
286 }
287
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_dynamic_output_shape_nhwc_quant8_3)288 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_dynamic_output_shape_nhwc_quant8_3) {
289 execute(avg_pool_v1_2::CreateModel_dynamic_output_shape_nhwc_quant8_3,
290 avg_pool_v1_2::is_ignored_dynamic_output_shape_nhwc_quant8_3,
291 avg_pool_v1_2::get_examples_dynamic_output_shape_nhwc_quant8_3());
292 }
293
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_dynamic_output_shape_nchw_3)294 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_dynamic_output_shape_nchw_3) {
295 execute(avg_pool_v1_2::CreateModel_dynamic_output_shape_nchw_3,
296 avg_pool_v1_2::is_ignored_dynamic_output_shape_nchw_3,
297 avg_pool_v1_2::get_examples_dynamic_output_shape_nchw_3());
298 }
299
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_dynamic_output_shape_nchw_relaxed_3)300 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_dynamic_output_shape_nchw_relaxed_3) {
301 execute(avg_pool_v1_2::CreateModel_dynamic_output_shape_nchw_relaxed_3,
302 avg_pool_v1_2::is_ignored_dynamic_output_shape_nchw_relaxed_3,
303 avg_pool_v1_2::get_examples_dynamic_output_shape_nchw_relaxed_3());
304 }
305
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_dynamic_output_shape_nchw_float16_3)306 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_dynamic_output_shape_nchw_float16_3) {
307 execute(avg_pool_v1_2::CreateModel_dynamic_output_shape_nchw_float16_3,
308 avg_pool_v1_2::is_ignored_dynamic_output_shape_nchw_float16_3,
309 avg_pool_v1_2::get_examples_dynamic_output_shape_nchw_float16_3());
310 }
311
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_dynamic_output_shape_nchw_quant8_3)312 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_dynamic_output_shape_nchw_quant8_3) {
313 execute(avg_pool_v1_2::CreateModel_dynamic_output_shape_nchw_quant8_3,
314 avg_pool_v1_2::is_ignored_dynamic_output_shape_nchw_quant8_3,
315 avg_pool_v1_2::get_examples_dynamic_output_shape_nchw_quant8_3());
316 }
317
TEST_F(GeneratedTests,avg_pool_v1_2_nhwc_4)318 TEST_F(GeneratedTests, avg_pool_v1_2_nhwc_4) {
319 execute(avg_pool_v1_2::CreateModel_nhwc_4,
320 avg_pool_v1_2::is_ignored_nhwc_4,
321 avg_pool_v1_2::get_examples_nhwc_4());
322 }
TEST_AVAILABLE_SINCE(V1_2,avg_pool_v1_2_nhwc_4,avg_pool_v1_2::CreateModel_nhwc_4)323 TEST_AVAILABLE_SINCE(V1_2, avg_pool_v1_2_nhwc_4, avg_pool_v1_2::CreateModel_nhwc_4)
324
325 TEST_F(GeneratedTests, avg_pool_v1_2_nhwc_relaxed_4) {
326 execute(avg_pool_v1_2::CreateModel_nhwc_relaxed_4,
327 avg_pool_v1_2::is_ignored_nhwc_relaxed_4,
328 avg_pool_v1_2::get_examples_nhwc_relaxed_4());
329 }
330
TEST_F(GeneratedTests,avg_pool_v1_2_nhwc_float16_4)331 TEST_F(GeneratedTests, avg_pool_v1_2_nhwc_float16_4) {
332 execute(avg_pool_v1_2::CreateModel_nhwc_float16_4,
333 avg_pool_v1_2::is_ignored_nhwc_float16_4,
334 avg_pool_v1_2::get_examples_nhwc_float16_4());
335 }
TEST_AVAILABLE_SINCE(V1_2,avg_pool_v1_2_nhwc_float16_4,avg_pool_v1_2::CreateModel_nhwc_float16_4)336 TEST_AVAILABLE_SINCE(V1_2, avg_pool_v1_2_nhwc_float16_4, avg_pool_v1_2::CreateModel_nhwc_float16_4)
337
338 TEST_F(GeneratedTests, avg_pool_v1_2_nhwc_quant8_4) {
339 execute(avg_pool_v1_2::CreateModel_nhwc_quant8_4,
340 avg_pool_v1_2::is_ignored_nhwc_quant8_4,
341 avg_pool_v1_2::get_examples_nhwc_quant8_4());
342 }
TEST_AVAILABLE_SINCE(V1_2,avg_pool_v1_2_nhwc_quant8_4,avg_pool_v1_2::CreateModel_nhwc_quant8_4)343 TEST_AVAILABLE_SINCE(V1_2, avg_pool_v1_2_nhwc_quant8_4, avg_pool_v1_2::CreateModel_nhwc_quant8_4)
344
345 TEST_F(GeneratedTests, avg_pool_v1_2_nchw_4) {
346 execute(avg_pool_v1_2::CreateModel_nchw_4,
347 avg_pool_v1_2::is_ignored_nchw_4,
348 avg_pool_v1_2::get_examples_nchw_4());
349 }
TEST_AVAILABLE_SINCE(V1_2,avg_pool_v1_2_nchw_4,avg_pool_v1_2::CreateModel_nchw_4)350 TEST_AVAILABLE_SINCE(V1_2, avg_pool_v1_2_nchw_4, avg_pool_v1_2::CreateModel_nchw_4)
351
352 TEST_F(GeneratedTests, avg_pool_v1_2_nchw_relaxed_4) {
353 execute(avg_pool_v1_2::CreateModel_nchw_relaxed_4,
354 avg_pool_v1_2::is_ignored_nchw_relaxed_4,
355 avg_pool_v1_2::get_examples_nchw_relaxed_4());
356 }
357
TEST_F(GeneratedTests,avg_pool_v1_2_nchw_float16_4)358 TEST_F(GeneratedTests, avg_pool_v1_2_nchw_float16_4) {
359 execute(avg_pool_v1_2::CreateModel_nchw_float16_4,
360 avg_pool_v1_2::is_ignored_nchw_float16_4,
361 avg_pool_v1_2::get_examples_nchw_float16_4());
362 }
TEST_AVAILABLE_SINCE(V1_2,avg_pool_v1_2_nchw_float16_4,avg_pool_v1_2::CreateModel_nchw_float16_4)363 TEST_AVAILABLE_SINCE(V1_2, avg_pool_v1_2_nchw_float16_4, avg_pool_v1_2::CreateModel_nchw_float16_4)
364
365 TEST_F(GeneratedTests, avg_pool_v1_2_nchw_quant8_4) {
366 execute(avg_pool_v1_2::CreateModel_nchw_quant8_4,
367 avg_pool_v1_2::is_ignored_nchw_quant8_4,
368 avg_pool_v1_2::get_examples_nchw_quant8_4());
369 }
TEST_AVAILABLE_SINCE(V1_2,avg_pool_v1_2_nchw_quant8_4,avg_pool_v1_2::CreateModel_nchw_quant8_4)370 TEST_AVAILABLE_SINCE(V1_2, avg_pool_v1_2_nchw_quant8_4, avg_pool_v1_2::CreateModel_nchw_quant8_4)
371
372 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_dynamic_output_shape_nhwc_4) {
373 execute(avg_pool_v1_2::CreateModel_dynamic_output_shape_nhwc_4,
374 avg_pool_v1_2::is_ignored_dynamic_output_shape_nhwc_4,
375 avg_pool_v1_2::get_examples_dynamic_output_shape_nhwc_4());
376 }
377
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_dynamic_output_shape_nhwc_relaxed_4)378 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_dynamic_output_shape_nhwc_relaxed_4) {
379 execute(avg_pool_v1_2::CreateModel_dynamic_output_shape_nhwc_relaxed_4,
380 avg_pool_v1_2::is_ignored_dynamic_output_shape_nhwc_relaxed_4,
381 avg_pool_v1_2::get_examples_dynamic_output_shape_nhwc_relaxed_4());
382 }
383
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_dynamic_output_shape_nhwc_float16_4)384 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_dynamic_output_shape_nhwc_float16_4) {
385 execute(avg_pool_v1_2::CreateModel_dynamic_output_shape_nhwc_float16_4,
386 avg_pool_v1_2::is_ignored_dynamic_output_shape_nhwc_float16_4,
387 avg_pool_v1_2::get_examples_dynamic_output_shape_nhwc_float16_4());
388 }
389
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_dynamic_output_shape_nhwc_quant8_4)390 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_dynamic_output_shape_nhwc_quant8_4) {
391 execute(avg_pool_v1_2::CreateModel_dynamic_output_shape_nhwc_quant8_4,
392 avg_pool_v1_2::is_ignored_dynamic_output_shape_nhwc_quant8_4,
393 avg_pool_v1_2::get_examples_dynamic_output_shape_nhwc_quant8_4());
394 }
395
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_dynamic_output_shape_nchw_4)396 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_dynamic_output_shape_nchw_4) {
397 execute(avg_pool_v1_2::CreateModel_dynamic_output_shape_nchw_4,
398 avg_pool_v1_2::is_ignored_dynamic_output_shape_nchw_4,
399 avg_pool_v1_2::get_examples_dynamic_output_shape_nchw_4());
400 }
401
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_dynamic_output_shape_nchw_relaxed_4)402 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_dynamic_output_shape_nchw_relaxed_4) {
403 execute(avg_pool_v1_2::CreateModel_dynamic_output_shape_nchw_relaxed_4,
404 avg_pool_v1_2::is_ignored_dynamic_output_shape_nchw_relaxed_4,
405 avg_pool_v1_2::get_examples_dynamic_output_shape_nchw_relaxed_4());
406 }
407
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_dynamic_output_shape_nchw_float16_4)408 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_dynamic_output_shape_nchw_float16_4) {
409 execute(avg_pool_v1_2::CreateModel_dynamic_output_shape_nchw_float16_4,
410 avg_pool_v1_2::is_ignored_dynamic_output_shape_nchw_float16_4,
411 avg_pool_v1_2::get_examples_dynamic_output_shape_nchw_float16_4());
412 }
413
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_dynamic_output_shape_nchw_quant8_4)414 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_dynamic_output_shape_nchw_quant8_4) {
415 execute(avg_pool_v1_2::CreateModel_dynamic_output_shape_nchw_quant8_4,
416 avg_pool_v1_2::is_ignored_dynamic_output_shape_nchw_quant8_4,
417 avg_pool_v1_2::get_examples_dynamic_output_shape_nchw_quant8_4());
418 }
419
TEST_F(GeneratedTests,avg_pool_v1_2_nhwc_5)420 TEST_F(GeneratedTests, avg_pool_v1_2_nhwc_5) {
421 execute(avg_pool_v1_2::CreateModel_nhwc_5,
422 avg_pool_v1_2::is_ignored_nhwc_5,
423 avg_pool_v1_2::get_examples_nhwc_5());
424 }
TEST_AVAILABLE_SINCE(V1_2,avg_pool_v1_2_nhwc_5,avg_pool_v1_2::CreateModel_nhwc_5)425 TEST_AVAILABLE_SINCE(V1_2, avg_pool_v1_2_nhwc_5, avg_pool_v1_2::CreateModel_nhwc_5)
426
427 TEST_F(GeneratedTests, avg_pool_v1_2_nhwc_relaxed_5) {
428 execute(avg_pool_v1_2::CreateModel_nhwc_relaxed_5,
429 avg_pool_v1_2::is_ignored_nhwc_relaxed_5,
430 avg_pool_v1_2::get_examples_nhwc_relaxed_5());
431 }
432
TEST_F(GeneratedTests,avg_pool_v1_2_nhwc_float16_5)433 TEST_F(GeneratedTests, avg_pool_v1_2_nhwc_float16_5) {
434 execute(avg_pool_v1_2::CreateModel_nhwc_float16_5,
435 avg_pool_v1_2::is_ignored_nhwc_float16_5,
436 avg_pool_v1_2::get_examples_nhwc_float16_5());
437 }
TEST_AVAILABLE_SINCE(V1_2,avg_pool_v1_2_nhwc_float16_5,avg_pool_v1_2::CreateModel_nhwc_float16_5)438 TEST_AVAILABLE_SINCE(V1_2, avg_pool_v1_2_nhwc_float16_5, avg_pool_v1_2::CreateModel_nhwc_float16_5)
439
440 TEST_F(GeneratedTests, avg_pool_v1_2_nhwc_quant8_5) {
441 execute(avg_pool_v1_2::CreateModel_nhwc_quant8_5,
442 avg_pool_v1_2::is_ignored_nhwc_quant8_5,
443 avg_pool_v1_2::get_examples_nhwc_quant8_5());
444 }
TEST_AVAILABLE_SINCE(V1_2,avg_pool_v1_2_nhwc_quant8_5,avg_pool_v1_2::CreateModel_nhwc_quant8_5)445 TEST_AVAILABLE_SINCE(V1_2, avg_pool_v1_2_nhwc_quant8_5, avg_pool_v1_2::CreateModel_nhwc_quant8_5)
446
447 TEST_F(GeneratedTests, avg_pool_v1_2_nchw_5) {
448 execute(avg_pool_v1_2::CreateModel_nchw_5,
449 avg_pool_v1_2::is_ignored_nchw_5,
450 avg_pool_v1_2::get_examples_nchw_5());
451 }
TEST_AVAILABLE_SINCE(V1_2,avg_pool_v1_2_nchw_5,avg_pool_v1_2::CreateModel_nchw_5)452 TEST_AVAILABLE_SINCE(V1_2, avg_pool_v1_2_nchw_5, avg_pool_v1_2::CreateModel_nchw_5)
453
454 TEST_F(GeneratedTests, avg_pool_v1_2_nchw_relaxed_5) {
455 execute(avg_pool_v1_2::CreateModel_nchw_relaxed_5,
456 avg_pool_v1_2::is_ignored_nchw_relaxed_5,
457 avg_pool_v1_2::get_examples_nchw_relaxed_5());
458 }
459
TEST_F(GeneratedTests,avg_pool_v1_2_nchw_float16_5)460 TEST_F(GeneratedTests, avg_pool_v1_2_nchw_float16_5) {
461 execute(avg_pool_v1_2::CreateModel_nchw_float16_5,
462 avg_pool_v1_2::is_ignored_nchw_float16_5,
463 avg_pool_v1_2::get_examples_nchw_float16_5());
464 }
TEST_AVAILABLE_SINCE(V1_2,avg_pool_v1_2_nchw_float16_5,avg_pool_v1_2::CreateModel_nchw_float16_5)465 TEST_AVAILABLE_SINCE(V1_2, avg_pool_v1_2_nchw_float16_5, avg_pool_v1_2::CreateModel_nchw_float16_5)
466
467 TEST_F(GeneratedTests, avg_pool_v1_2_nchw_quant8_5) {
468 execute(avg_pool_v1_2::CreateModel_nchw_quant8_5,
469 avg_pool_v1_2::is_ignored_nchw_quant8_5,
470 avg_pool_v1_2::get_examples_nchw_quant8_5());
471 }
TEST_AVAILABLE_SINCE(V1_2,avg_pool_v1_2_nchw_quant8_5,avg_pool_v1_2::CreateModel_nchw_quant8_5)472 TEST_AVAILABLE_SINCE(V1_2, avg_pool_v1_2_nchw_quant8_5, avg_pool_v1_2::CreateModel_nchw_quant8_5)
473
474 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_dynamic_output_shape_nhwc_5) {
475 execute(avg_pool_v1_2::CreateModel_dynamic_output_shape_nhwc_5,
476 avg_pool_v1_2::is_ignored_dynamic_output_shape_nhwc_5,
477 avg_pool_v1_2::get_examples_dynamic_output_shape_nhwc_5());
478 }
479
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_dynamic_output_shape_nhwc_relaxed_5)480 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_dynamic_output_shape_nhwc_relaxed_5) {
481 execute(avg_pool_v1_2::CreateModel_dynamic_output_shape_nhwc_relaxed_5,
482 avg_pool_v1_2::is_ignored_dynamic_output_shape_nhwc_relaxed_5,
483 avg_pool_v1_2::get_examples_dynamic_output_shape_nhwc_relaxed_5());
484 }
485
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_dynamic_output_shape_nhwc_float16_5)486 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_dynamic_output_shape_nhwc_float16_5) {
487 execute(avg_pool_v1_2::CreateModel_dynamic_output_shape_nhwc_float16_5,
488 avg_pool_v1_2::is_ignored_dynamic_output_shape_nhwc_float16_5,
489 avg_pool_v1_2::get_examples_dynamic_output_shape_nhwc_float16_5());
490 }
491
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_dynamic_output_shape_nhwc_quant8_5)492 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_dynamic_output_shape_nhwc_quant8_5) {
493 execute(avg_pool_v1_2::CreateModel_dynamic_output_shape_nhwc_quant8_5,
494 avg_pool_v1_2::is_ignored_dynamic_output_shape_nhwc_quant8_5,
495 avg_pool_v1_2::get_examples_dynamic_output_shape_nhwc_quant8_5());
496 }
497
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_dynamic_output_shape_nchw_5)498 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_dynamic_output_shape_nchw_5) {
499 execute(avg_pool_v1_2::CreateModel_dynamic_output_shape_nchw_5,
500 avg_pool_v1_2::is_ignored_dynamic_output_shape_nchw_5,
501 avg_pool_v1_2::get_examples_dynamic_output_shape_nchw_5());
502 }
503
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_dynamic_output_shape_nchw_relaxed_5)504 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_dynamic_output_shape_nchw_relaxed_5) {
505 execute(avg_pool_v1_2::CreateModel_dynamic_output_shape_nchw_relaxed_5,
506 avg_pool_v1_2::is_ignored_dynamic_output_shape_nchw_relaxed_5,
507 avg_pool_v1_2::get_examples_dynamic_output_shape_nchw_relaxed_5());
508 }
509
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_dynamic_output_shape_nchw_float16_5)510 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_dynamic_output_shape_nchw_float16_5) {
511 execute(avg_pool_v1_2::CreateModel_dynamic_output_shape_nchw_float16_5,
512 avg_pool_v1_2::is_ignored_dynamic_output_shape_nchw_float16_5,
513 avg_pool_v1_2::get_examples_dynamic_output_shape_nchw_float16_5());
514 }
515
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_dynamic_output_shape_nchw_quant8_5)516 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_dynamic_output_shape_nchw_quant8_5) {
517 execute(avg_pool_v1_2::CreateModel_dynamic_output_shape_nchw_quant8_5,
518 avg_pool_v1_2::is_ignored_dynamic_output_shape_nchw_quant8_5,
519 avg_pool_v1_2::get_examples_dynamic_output_shape_nchw_quant8_5());
520 }
521
TEST_F(GeneratedTests,avg_pool_v1_2_zero_sized_nhwc)522 TEST_F(GeneratedTests, avg_pool_v1_2_zero_sized_nhwc) {
523 execute(avg_pool_v1_2::CreateModel_zero_sized_nhwc,
524 avg_pool_v1_2::is_ignored_zero_sized_nhwc,
525 avg_pool_v1_2::get_examples_zero_sized_nhwc());
526 }
TEST_AVAILABLE_SINCE(V1_2,avg_pool_v1_2_zero_sized_nhwc,avg_pool_v1_2::CreateModel_zero_sized_nhwc)527 TEST_AVAILABLE_SINCE(V1_2, avg_pool_v1_2_zero_sized_nhwc, avg_pool_v1_2::CreateModel_zero_sized_nhwc)
528
529 TEST_F(GeneratedTests, avg_pool_v1_2_zero_sized_nhwc_relaxed) {
530 execute(avg_pool_v1_2::CreateModel_zero_sized_nhwc_relaxed,
531 avg_pool_v1_2::is_ignored_zero_sized_nhwc_relaxed,
532 avg_pool_v1_2::get_examples_zero_sized_nhwc_relaxed());
533 }
534
TEST_F(GeneratedTests,avg_pool_v1_2_zero_sized_nhwc_quant8)535 TEST_F(GeneratedTests, avg_pool_v1_2_zero_sized_nhwc_quant8) {
536 execute(avg_pool_v1_2::CreateModel_zero_sized_nhwc_quant8,
537 avg_pool_v1_2::is_ignored_zero_sized_nhwc_quant8,
538 avg_pool_v1_2::get_examples_zero_sized_nhwc_quant8());
539 }
TEST_AVAILABLE_SINCE(V1_2,avg_pool_v1_2_zero_sized_nhwc_quant8,avg_pool_v1_2::CreateModel_zero_sized_nhwc_quant8)540 TEST_AVAILABLE_SINCE(V1_2, avg_pool_v1_2_zero_sized_nhwc_quant8, avg_pool_v1_2::CreateModel_zero_sized_nhwc_quant8)
541
542 TEST_F(GeneratedTests, avg_pool_v1_2_zero_sized_nhwc_float16) {
543 execute(avg_pool_v1_2::CreateModel_zero_sized_nhwc_float16,
544 avg_pool_v1_2::is_ignored_zero_sized_nhwc_float16,
545 avg_pool_v1_2::get_examples_zero_sized_nhwc_float16());
546 }
TEST_AVAILABLE_SINCE(V1_2,avg_pool_v1_2_zero_sized_nhwc_float16,avg_pool_v1_2::CreateModel_zero_sized_nhwc_float16)547 TEST_AVAILABLE_SINCE(V1_2, avg_pool_v1_2_zero_sized_nhwc_float16, avg_pool_v1_2::CreateModel_zero_sized_nhwc_float16)
548
549 TEST_F(GeneratedTests, avg_pool_v1_2_zero_sized_nchw) {
550 execute(avg_pool_v1_2::CreateModel_zero_sized_nchw,
551 avg_pool_v1_2::is_ignored_zero_sized_nchw,
552 avg_pool_v1_2::get_examples_zero_sized_nchw());
553 }
TEST_AVAILABLE_SINCE(V1_2,avg_pool_v1_2_zero_sized_nchw,avg_pool_v1_2::CreateModel_zero_sized_nchw)554 TEST_AVAILABLE_SINCE(V1_2, avg_pool_v1_2_zero_sized_nchw, avg_pool_v1_2::CreateModel_zero_sized_nchw)
555
556 TEST_F(GeneratedTests, avg_pool_v1_2_zero_sized_nchw_relaxed) {
557 execute(avg_pool_v1_2::CreateModel_zero_sized_nchw_relaxed,
558 avg_pool_v1_2::is_ignored_zero_sized_nchw_relaxed,
559 avg_pool_v1_2::get_examples_zero_sized_nchw_relaxed());
560 }
561
TEST_F(GeneratedTests,avg_pool_v1_2_zero_sized_nchw_quant8)562 TEST_F(GeneratedTests, avg_pool_v1_2_zero_sized_nchw_quant8) {
563 execute(avg_pool_v1_2::CreateModel_zero_sized_nchw_quant8,
564 avg_pool_v1_2::is_ignored_zero_sized_nchw_quant8,
565 avg_pool_v1_2::get_examples_zero_sized_nchw_quant8());
566 }
TEST_AVAILABLE_SINCE(V1_2,avg_pool_v1_2_zero_sized_nchw_quant8,avg_pool_v1_2::CreateModel_zero_sized_nchw_quant8)567 TEST_AVAILABLE_SINCE(V1_2, avg_pool_v1_2_zero_sized_nchw_quant8, avg_pool_v1_2::CreateModel_zero_sized_nchw_quant8)
568
569 TEST_F(GeneratedTests, avg_pool_v1_2_zero_sized_nchw_float16) {
570 execute(avg_pool_v1_2::CreateModel_zero_sized_nchw_float16,
571 avg_pool_v1_2::is_ignored_zero_sized_nchw_float16,
572 avg_pool_v1_2::get_examples_zero_sized_nchw_float16());
573 }
TEST_AVAILABLE_SINCE(V1_2,avg_pool_v1_2_zero_sized_nchw_float16,avg_pool_v1_2::CreateModel_zero_sized_nchw_float16)574 TEST_AVAILABLE_SINCE(V1_2, avg_pool_v1_2_zero_sized_nchw_float16, avg_pool_v1_2::CreateModel_zero_sized_nchw_float16)
575
576 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_zero_sized_dynamic_output_shape_nhwc) {
577 execute(avg_pool_v1_2::CreateModel_zero_sized_dynamic_output_shape_nhwc,
578 avg_pool_v1_2::is_ignored_zero_sized_dynamic_output_shape_nhwc,
579 avg_pool_v1_2::get_examples_zero_sized_dynamic_output_shape_nhwc());
580 }
581
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_zero_sized_dynamic_output_shape_nhwc_relaxed)582 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_zero_sized_dynamic_output_shape_nhwc_relaxed) {
583 execute(avg_pool_v1_2::CreateModel_zero_sized_dynamic_output_shape_nhwc_relaxed,
584 avg_pool_v1_2::is_ignored_zero_sized_dynamic_output_shape_nhwc_relaxed,
585 avg_pool_v1_2::get_examples_zero_sized_dynamic_output_shape_nhwc_relaxed());
586 }
587
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_zero_sized_dynamic_output_shape_nhwc_quant8)588 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_zero_sized_dynamic_output_shape_nhwc_quant8) {
589 execute(avg_pool_v1_2::CreateModel_zero_sized_dynamic_output_shape_nhwc_quant8,
590 avg_pool_v1_2::is_ignored_zero_sized_dynamic_output_shape_nhwc_quant8,
591 avg_pool_v1_2::get_examples_zero_sized_dynamic_output_shape_nhwc_quant8());
592 }
593
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_zero_sized_dynamic_output_shape_nhwc_float16)594 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_zero_sized_dynamic_output_shape_nhwc_float16) {
595 execute(avg_pool_v1_2::CreateModel_zero_sized_dynamic_output_shape_nhwc_float16,
596 avg_pool_v1_2::is_ignored_zero_sized_dynamic_output_shape_nhwc_float16,
597 avg_pool_v1_2::get_examples_zero_sized_dynamic_output_shape_nhwc_float16());
598 }
599
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_zero_sized_dynamic_output_shape_nchw)600 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_zero_sized_dynamic_output_shape_nchw) {
601 execute(avg_pool_v1_2::CreateModel_zero_sized_dynamic_output_shape_nchw,
602 avg_pool_v1_2::is_ignored_zero_sized_dynamic_output_shape_nchw,
603 avg_pool_v1_2::get_examples_zero_sized_dynamic_output_shape_nchw());
604 }
605
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_zero_sized_dynamic_output_shape_nchw_relaxed)606 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_zero_sized_dynamic_output_shape_nchw_relaxed) {
607 execute(avg_pool_v1_2::CreateModel_zero_sized_dynamic_output_shape_nchw_relaxed,
608 avg_pool_v1_2::is_ignored_zero_sized_dynamic_output_shape_nchw_relaxed,
609 avg_pool_v1_2::get_examples_zero_sized_dynamic_output_shape_nchw_relaxed());
610 }
611
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_zero_sized_dynamic_output_shape_nchw_quant8)612 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_zero_sized_dynamic_output_shape_nchw_quant8) {
613 execute(avg_pool_v1_2::CreateModel_zero_sized_dynamic_output_shape_nchw_quant8,
614 avg_pool_v1_2::is_ignored_zero_sized_dynamic_output_shape_nchw_quant8,
615 avg_pool_v1_2::get_examples_zero_sized_dynamic_output_shape_nchw_quant8());
616 }
617
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_zero_sized_dynamic_output_shape_nchw_float16)618 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_zero_sized_dynamic_output_shape_nchw_float16) {
619 execute(avg_pool_v1_2::CreateModel_zero_sized_dynamic_output_shape_nchw_float16,
620 avg_pool_v1_2::is_ignored_zero_sized_dynamic_output_shape_nchw_float16,
621 avg_pool_v1_2::get_examples_zero_sized_dynamic_output_shape_nchw_float16());
622 }
623
TEST_F(GeneratedTests,avg_pool_v1_2_zero_sized_nhwc_2)624 TEST_F(GeneratedTests, avg_pool_v1_2_zero_sized_nhwc_2) {
625 execute(avg_pool_v1_2::CreateModel_zero_sized_nhwc_2,
626 avg_pool_v1_2::is_ignored_zero_sized_nhwc_2,
627 avg_pool_v1_2::get_examples_zero_sized_nhwc_2());
628 }
TEST_AVAILABLE_SINCE(V1_2,avg_pool_v1_2_zero_sized_nhwc_2,avg_pool_v1_2::CreateModel_zero_sized_nhwc_2)629 TEST_AVAILABLE_SINCE(V1_2, avg_pool_v1_2_zero_sized_nhwc_2, avg_pool_v1_2::CreateModel_zero_sized_nhwc_2)
630
631 TEST_F(GeneratedTests, avg_pool_v1_2_zero_sized_nhwc_relaxed_2) {
632 execute(avg_pool_v1_2::CreateModel_zero_sized_nhwc_relaxed_2,
633 avg_pool_v1_2::is_ignored_zero_sized_nhwc_relaxed_2,
634 avg_pool_v1_2::get_examples_zero_sized_nhwc_relaxed_2());
635 }
636
TEST_F(GeneratedTests,avg_pool_v1_2_zero_sized_nhwc_quant8_2)637 TEST_F(GeneratedTests, avg_pool_v1_2_zero_sized_nhwc_quant8_2) {
638 execute(avg_pool_v1_2::CreateModel_zero_sized_nhwc_quant8_2,
639 avg_pool_v1_2::is_ignored_zero_sized_nhwc_quant8_2,
640 avg_pool_v1_2::get_examples_zero_sized_nhwc_quant8_2());
641 }
TEST_AVAILABLE_SINCE(V1_2,avg_pool_v1_2_zero_sized_nhwc_quant8_2,avg_pool_v1_2::CreateModel_zero_sized_nhwc_quant8_2)642 TEST_AVAILABLE_SINCE(V1_2, avg_pool_v1_2_zero_sized_nhwc_quant8_2, avg_pool_v1_2::CreateModel_zero_sized_nhwc_quant8_2)
643
644 TEST_F(GeneratedTests, avg_pool_v1_2_zero_sized_nhwc_float16_2) {
645 execute(avg_pool_v1_2::CreateModel_zero_sized_nhwc_float16_2,
646 avg_pool_v1_2::is_ignored_zero_sized_nhwc_float16_2,
647 avg_pool_v1_2::get_examples_zero_sized_nhwc_float16_2());
648 }
TEST_AVAILABLE_SINCE(V1_2,avg_pool_v1_2_zero_sized_nhwc_float16_2,avg_pool_v1_2::CreateModel_zero_sized_nhwc_float16_2)649 TEST_AVAILABLE_SINCE(V1_2, avg_pool_v1_2_zero_sized_nhwc_float16_2, avg_pool_v1_2::CreateModel_zero_sized_nhwc_float16_2)
650
651 TEST_F(GeneratedTests, avg_pool_v1_2_zero_sized_nchw_2) {
652 execute(avg_pool_v1_2::CreateModel_zero_sized_nchw_2,
653 avg_pool_v1_2::is_ignored_zero_sized_nchw_2,
654 avg_pool_v1_2::get_examples_zero_sized_nchw_2());
655 }
TEST_AVAILABLE_SINCE(V1_2,avg_pool_v1_2_zero_sized_nchw_2,avg_pool_v1_2::CreateModel_zero_sized_nchw_2)656 TEST_AVAILABLE_SINCE(V1_2, avg_pool_v1_2_zero_sized_nchw_2, avg_pool_v1_2::CreateModel_zero_sized_nchw_2)
657
658 TEST_F(GeneratedTests, avg_pool_v1_2_zero_sized_nchw_relaxed_2) {
659 execute(avg_pool_v1_2::CreateModel_zero_sized_nchw_relaxed_2,
660 avg_pool_v1_2::is_ignored_zero_sized_nchw_relaxed_2,
661 avg_pool_v1_2::get_examples_zero_sized_nchw_relaxed_2());
662 }
663
TEST_F(GeneratedTests,avg_pool_v1_2_zero_sized_nchw_quant8_2)664 TEST_F(GeneratedTests, avg_pool_v1_2_zero_sized_nchw_quant8_2) {
665 execute(avg_pool_v1_2::CreateModel_zero_sized_nchw_quant8_2,
666 avg_pool_v1_2::is_ignored_zero_sized_nchw_quant8_2,
667 avg_pool_v1_2::get_examples_zero_sized_nchw_quant8_2());
668 }
TEST_AVAILABLE_SINCE(V1_2,avg_pool_v1_2_zero_sized_nchw_quant8_2,avg_pool_v1_2::CreateModel_zero_sized_nchw_quant8_2)669 TEST_AVAILABLE_SINCE(V1_2, avg_pool_v1_2_zero_sized_nchw_quant8_2, avg_pool_v1_2::CreateModel_zero_sized_nchw_quant8_2)
670
671 TEST_F(GeneratedTests, avg_pool_v1_2_zero_sized_nchw_float16_2) {
672 execute(avg_pool_v1_2::CreateModel_zero_sized_nchw_float16_2,
673 avg_pool_v1_2::is_ignored_zero_sized_nchw_float16_2,
674 avg_pool_v1_2::get_examples_zero_sized_nchw_float16_2());
675 }
TEST_AVAILABLE_SINCE(V1_2,avg_pool_v1_2_zero_sized_nchw_float16_2,avg_pool_v1_2::CreateModel_zero_sized_nchw_float16_2)676 TEST_AVAILABLE_SINCE(V1_2, avg_pool_v1_2_zero_sized_nchw_float16_2, avg_pool_v1_2::CreateModel_zero_sized_nchw_float16_2)
677
678 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_zero_sized_dynamic_output_shape_nhwc_2) {
679 execute(avg_pool_v1_2::CreateModel_zero_sized_dynamic_output_shape_nhwc_2,
680 avg_pool_v1_2::is_ignored_zero_sized_dynamic_output_shape_nhwc_2,
681 avg_pool_v1_2::get_examples_zero_sized_dynamic_output_shape_nhwc_2());
682 }
683
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_zero_sized_dynamic_output_shape_nhwc_relaxed_2)684 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_zero_sized_dynamic_output_shape_nhwc_relaxed_2) {
685 execute(avg_pool_v1_2::CreateModel_zero_sized_dynamic_output_shape_nhwc_relaxed_2,
686 avg_pool_v1_2::is_ignored_zero_sized_dynamic_output_shape_nhwc_relaxed_2,
687 avg_pool_v1_2::get_examples_zero_sized_dynamic_output_shape_nhwc_relaxed_2());
688 }
689
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_zero_sized_dynamic_output_shape_nhwc_quant8_2)690 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_zero_sized_dynamic_output_shape_nhwc_quant8_2) {
691 execute(avg_pool_v1_2::CreateModel_zero_sized_dynamic_output_shape_nhwc_quant8_2,
692 avg_pool_v1_2::is_ignored_zero_sized_dynamic_output_shape_nhwc_quant8_2,
693 avg_pool_v1_2::get_examples_zero_sized_dynamic_output_shape_nhwc_quant8_2());
694 }
695
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_zero_sized_dynamic_output_shape_nhwc_float16_2)696 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_zero_sized_dynamic_output_shape_nhwc_float16_2) {
697 execute(avg_pool_v1_2::CreateModel_zero_sized_dynamic_output_shape_nhwc_float16_2,
698 avg_pool_v1_2::is_ignored_zero_sized_dynamic_output_shape_nhwc_float16_2,
699 avg_pool_v1_2::get_examples_zero_sized_dynamic_output_shape_nhwc_float16_2());
700 }
701
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_zero_sized_dynamic_output_shape_nchw_2)702 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_zero_sized_dynamic_output_shape_nchw_2) {
703 execute(avg_pool_v1_2::CreateModel_zero_sized_dynamic_output_shape_nchw_2,
704 avg_pool_v1_2::is_ignored_zero_sized_dynamic_output_shape_nchw_2,
705 avg_pool_v1_2::get_examples_zero_sized_dynamic_output_shape_nchw_2());
706 }
707
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_zero_sized_dynamic_output_shape_nchw_relaxed_2)708 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_zero_sized_dynamic_output_shape_nchw_relaxed_2) {
709 execute(avg_pool_v1_2::CreateModel_zero_sized_dynamic_output_shape_nchw_relaxed_2,
710 avg_pool_v1_2::is_ignored_zero_sized_dynamic_output_shape_nchw_relaxed_2,
711 avg_pool_v1_2::get_examples_zero_sized_dynamic_output_shape_nchw_relaxed_2());
712 }
713
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_zero_sized_dynamic_output_shape_nchw_quant8_2)714 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_zero_sized_dynamic_output_shape_nchw_quant8_2) {
715 execute(avg_pool_v1_2::CreateModel_zero_sized_dynamic_output_shape_nchw_quant8_2,
716 avg_pool_v1_2::is_ignored_zero_sized_dynamic_output_shape_nchw_quant8_2,
717 avg_pool_v1_2::get_examples_zero_sized_dynamic_output_shape_nchw_quant8_2());
718 }
719
TEST_F(DynamicOutputShapeTest,avg_pool_v1_2_zero_sized_dynamic_output_shape_nchw_float16_2)720 TEST_F(DynamicOutputShapeTest, avg_pool_v1_2_zero_sized_dynamic_output_shape_nchw_float16_2) {
721 execute(avg_pool_v1_2::CreateModel_zero_sized_dynamic_output_shape_nchw_float16_2,
722 avg_pool_v1_2::is_ignored_zero_sized_dynamic_output_shape_nchw_float16_2,
723 avg_pool_v1_2::get_examples_zero_sized_dynamic_output_shape_nchw_float16_2());
724 }
725
726