1 // clang-format off
2 // Generated file (from: batch_to_space_v1_2.mod.py). Do not edit
3 #include "../../TestGenerated.h"
4
5 namespace batch_to_space_v1_2 {
6 // Generated batch_to_space_v1_2 test
7 #include "generated/examples/batch_to_space_v1_2.example.cpp"
8 // Generated model constructor
9 #include "generated/models/batch_to_space_v1_2.model.cpp"
10 } // namespace batch_to_space_v1_2
11
TEST_F(GeneratedTests,batch_to_space_v1_2_nhwc)12 TEST_F(GeneratedTests, batch_to_space_v1_2_nhwc) {
13 execute(batch_to_space_v1_2::CreateModel_nhwc,
14 batch_to_space_v1_2::is_ignored_nhwc,
15 batch_to_space_v1_2::get_examples_nhwc());
16 }
TEST_AVAILABLE_SINCE(V1_2,batch_to_space_v1_2_nhwc,batch_to_space_v1_2::CreateModel_nhwc)17 TEST_AVAILABLE_SINCE(V1_2, batch_to_space_v1_2_nhwc, batch_to_space_v1_2::CreateModel_nhwc)
18
19 TEST_F(GeneratedTests, batch_to_space_v1_2_nhwc_relaxed) {
20 execute(batch_to_space_v1_2::CreateModel_nhwc_relaxed,
21 batch_to_space_v1_2::is_ignored_nhwc_relaxed,
22 batch_to_space_v1_2::get_examples_nhwc_relaxed());
23 }
24
TEST_F(GeneratedTests,batch_to_space_v1_2_nhwc_float16)25 TEST_F(GeneratedTests, batch_to_space_v1_2_nhwc_float16) {
26 execute(batch_to_space_v1_2::CreateModel_nhwc_float16,
27 batch_to_space_v1_2::is_ignored_nhwc_float16,
28 batch_to_space_v1_2::get_examples_nhwc_float16());
29 }
TEST_AVAILABLE_SINCE(V1_2,batch_to_space_v1_2_nhwc_float16,batch_to_space_v1_2::CreateModel_nhwc_float16)30 TEST_AVAILABLE_SINCE(V1_2, batch_to_space_v1_2_nhwc_float16, batch_to_space_v1_2::CreateModel_nhwc_float16)
31
32 TEST_F(GeneratedTests, batch_to_space_v1_2_nhwc_quant8) {
33 execute(batch_to_space_v1_2::CreateModel_nhwc_quant8,
34 batch_to_space_v1_2::is_ignored_nhwc_quant8,
35 batch_to_space_v1_2::get_examples_nhwc_quant8());
36 }
TEST_AVAILABLE_SINCE(V1_2,batch_to_space_v1_2_nhwc_quant8,batch_to_space_v1_2::CreateModel_nhwc_quant8)37 TEST_AVAILABLE_SINCE(V1_2, batch_to_space_v1_2_nhwc_quant8, batch_to_space_v1_2::CreateModel_nhwc_quant8)
38
39 TEST_F(GeneratedTests, batch_to_space_v1_2_nchw) {
40 execute(batch_to_space_v1_2::CreateModel_nchw,
41 batch_to_space_v1_2::is_ignored_nchw,
42 batch_to_space_v1_2::get_examples_nchw());
43 }
TEST_AVAILABLE_SINCE(V1_2,batch_to_space_v1_2_nchw,batch_to_space_v1_2::CreateModel_nchw)44 TEST_AVAILABLE_SINCE(V1_2, batch_to_space_v1_2_nchw, batch_to_space_v1_2::CreateModel_nchw)
45
46 TEST_F(GeneratedTests, batch_to_space_v1_2_nchw_relaxed) {
47 execute(batch_to_space_v1_2::CreateModel_nchw_relaxed,
48 batch_to_space_v1_2::is_ignored_nchw_relaxed,
49 batch_to_space_v1_2::get_examples_nchw_relaxed());
50 }
51
TEST_F(GeneratedTests,batch_to_space_v1_2_nchw_float16)52 TEST_F(GeneratedTests, batch_to_space_v1_2_nchw_float16) {
53 execute(batch_to_space_v1_2::CreateModel_nchw_float16,
54 batch_to_space_v1_2::is_ignored_nchw_float16,
55 batch_to_space_v1_2::get_examples_nchw_float16());
56 }
TEST_AVAILABLE_SINCE(V1_2,batch_to_space_v1_2_nchw_float16,batch_to_space_v1_2::CreateModel_nchw_float16)57 TEST_AVAILABLE_SINCE(V1_2, batch_to_space_v1_2_nchw_float16, batch_to_space_v1_2::CreateModel_nchw_float16)
58
59 TEST_F(GeneratedTests, batch_to_space_v1_2_nchw_quant8) {
60 execute(batch_to_space_v1_2::CreateModel_nchw_quant8,
61 batch_to_space_v1_2::is_ignored_nchw_quant8,
62 batch_to_space_v1_2::get_examples_nchw_quant8());
63 }
TEST_AVAILABLE_SINCE(V1_2,batch_to_space_v1_2_nchw_quant8,batch_to_space_v1_2::CreateModel_nchw_quant8)64 TEST_AVAILABLE_SINCE(V1_2, batch_to_space_v1_2_nchw_quant8, batch_to_space_v1_2::CreateModel_nchw_quant8)
65
66 TEST_F(DynamicOutputShapeTest, batch_to_space_v1_2_dynamic_output_shape_nhwc) {
67 execute(batch_to_space_v1_2::CreateModel_dynamic_output_shape_nhwc,
68 batch_to_space_v1_2::is_ignored_dynamic_output_shape_nhwc,
69 batch_to_space_v1_2::get_examples_dynamic_output_shape_nhwc());
70 }
71
TEST_F(DynamicOutputShapeTest,batch_to_space_v1_2_dynamic_output_shape_nhwc_relaxed)72 TEST_F(DynamicOutputShapeTest, batch_to_space_v1_2_dynamic_output_shape_nhwc_relaxed) {
73 execute(batch_to_space_v1_2::CreateModel_dynamic_output_shape_nhwc_relaxed,
74 batch_to_space_v1_2::is_ignored_dynamic_output_shape_nhwc_relaxed,
75 batch_to_space_v1_2::get_examples_dynamic_output_shape_nhwc_relaxed());
76 }
77
TEST_F(DynamicOutputShapeTest,batch_to_space_v1_2_dynamic_output_shape_nhwc_float16)78 TEST_F(DynamicOutputShapeTest, batch_to_space_v1_2_dynamic_output_shape_nhwc_float16) {
79 execute(batch_to_space_v1_2::CreateModel_dynamic_output_shape_nhwc_float16,
80 batch_to_space_v1_2::is_ignored_dynamic_output_shape_nhwc_float16,
81 batch_to_space_v1_2::get_examples_dynamic_output_shape_nhwc_float16());
82 }
83
TEST_F(DynamicOutputShapeTest,batch_to_space_v1_2_dynamic_output_shape_nhwc_quant8)84 TEST_F(DynamicOutputShapeTest, batch_to_space_v1_2_dynamic_output_shape_nhwc_quant8) {
85 execute(batch_to_space_v1_2::CreateModel_dynamic_output_shape_nhwc_quant8,
86 batch_to_space_v1_2::is_ignored_dynamic_output_shape_nhwc_quant8,
87 batch_to_space_v1_2::get_examples_dynamic_output_shape_nhwc_quant8());
88 }
89
TEST_F(DynamicOutputShapeTest,batch_to_space_v1_2_dynamic_output_shape_nchw)90 TEST_F(DynamicOutputShapeTest, batch_to_space_v1_2_dynamic_output_shape_nchw) {
91 execute(batch_to_space_v1_2::CreateModel_dynamic_output_shape_nchw,
92 batch_to_space_v1_2::is_ignored_dynamic_output_shape_nchw,
93 batch_to_space_v1_2::get_examples_dynamic_output_shape_nchw());
94 }
95
TEST_F(DynamicOutputShapeTest,batch_to_space_v1_2_dynamic_output_shape_nchw_relaxed)96 TEST_F(DynamicOutputShapeTest, batch_to_space_v1_2_dynamic_output_shape_nchw_relaxed) {
97 execute(batch_to_space_v1_2::CreateModel_dynamic_output_shape_nchw_relaxed,
98 batch_to_space_v1_2::is_ignored_dynamic_output_shape_nchw_relaxed,
99 batch_to_space_v1_2::get_examples_dynamic_output_shape_nchw_relaxed());
100 }
101
TEST_F(DynamicOutputShapeTest,batch_to_space_v1_2_dynamic_output_shape_nchw_float16)102 TEST_F(DynamicOutputShapeTest, batch_to_space_v1_2_dynamic_output_shape_nchw_float16) {
103 execute(batch_to_space_v1_2::CreateModel_dynamic_output_shape_nchw_float16,
104 batch_to_space_v1_2::is_ignored_dynamic_output_shape_nchw_float16,
105 batch_to_space_v1_2::get_examples_dynamic_output_shape_nchw_float16());
106 }
107
TEST_F(DynamicOutputShapeTest,batch_to_space_v1_2_dynamic_output_shape_nchw_quant8)108 TEST_F(DynamicOutputShapeTest, batch_to_space_v1_2_dynamic_output_shape_nchw_quant8) {
109 execute(batch_to_space_v1_2::CreateModel_dynamic_output_shape_nchw_quant8,
110 batch_to_space_v1_2::is_ignored_dynamic_output_shape_nchw_quant8,
111 batch_to_space_v1_2::get_examples_dynamic_output_shape_nchw_quant8());
112 }
113
TEST_F(GeneratedTests,batch_to_space_v1_2_nhwc_2)114 TEST_F(GeneratedTests, batch_to_space_v1_2_nhwc_2) {
115 execute(batch_to_space_v1_2::CreateModel_nhwc_2,
116 batch_to_space_v1_2::is_ignored_nhwc_2,
117 batch_to_space_v1_2::get_examples_nhwc_2());
118 }
TEST_AVAILABLE_SINCE(V1_2,batch_to_space_v1_2_nhwc_2,batch_to_space_v1_2::CreateModel_nhwc_2)119 TEST_AVAILABLE_SINCE(V1_2, batch_to_space_v1_2_nhwc_2, batch_to_space_v1_2::CreateModel_nhwc_2)
120
121 TEST_F(GeneratedTests, batch_to_space_v1_2_nhwc_relaxed_2) {
122 execute(batch_to_space_v1_2::CreateModel_nhwc_relaxed_2,
123 batch_to_space_v1_2::is_ignored_nhwc_relaxed_2,
124 batch_to_space_v1_2::get_examples_nhwc_relaxed_2());
125 }
126
TEST_F(GeneratedTests,batch_to_space_v1_2_nhwc_float16_2)127 TEST_F(GeneratedTests, batch_to_space_v1_2_nhwc_float16_2) {
128 execute(batch_to_space_v1_2::CreateModel_nhwc_float16_2,
129 batch_to_space_v1_2::is_ignored_nhwc_float16_2,
130 batch_to_space_v1_2::get_examples_nhwc_float16_2());
131 }
TEST_AVAILABLE_SINCE(V1_2,batch_to_space_v1_2_nhwc_float16_2,batch_to_space_v1_2::CreateModel_nhwc_float16_2)132 TEST_AVAILABLE_SINCE(V1_2, batch_to_space_v1_2_nhwc_float16_2, batch_to_space_v1_2::CreateModel_nhwc_float16_2)
133
134 TEST_F(GeneratedTests, batch_to_space_v1_2_nhwc_quant8_2) {
135 execute(batch_to_space_v1_2::CreateModel_nhwc_quant8_2,
136 batch_to_space_v1_2::is_ignored_nhwc_quant8_2,
137 batch_to_space_v1_2::get_examples_nhwc_quant8_2());
138 }
TEST_AVAILABLE_SINCE(V1_2,batch_to_space_v1_2_nhwc_quant8_2,batch_to_space_v1_2::CreateModel_nhwc_quant8_2)139 TEST_AVAILABLE_SINCE(V1_2, batch_to_space_v1_2_nhwc_quant8_2, batch_to_space_v1_2::CreateModel_nhwc_quant8_2)
140
141 TEST_F(GeneratedTests, batch_to_space_v1_2_nchw_2) {
142 execute(batch_to_space_v1_2::CreateModel_nchw_2,
143 batch_to_space_v1_2::is_ignored_nchw_2,
144 batch_to_space_v1_2::get_examples_nchw_2());
145 }
TEST_AVAILABLE_SINCE(V1_2,batch_to_space_v1_2_nchw_2,batch_to_space_v1_2::CreateModel_nchw_2)146 TEST_AVAILABLE_SINCE(V1_2, batch_to_space_v1_2_nchw_2, batch_to_space_v1_2::CreateModel_nchw_2)
147
148 TEST_F(GeneratedTests, batch_to_space_v1_2_nchw_relaxed_2) {
149 execute(batch_to_space_v1_2::CreateModel_nchw_relaxed_2,
150 batch_to_space_v1_2::is_ignored_nchw_relaxed_2,
151 batch_to_space_v1_2::get_examples_nchw_relaxed_2());
152 }
153
TEST_F(GeneratedTests,batch_to_space_v1_2_nchw_float16_2)154 TEST_F(GeneratedTests, batch_to_space_v1_2_nchw_float16_2) {
155 execute(batch_to_space_v1_2::CreateModel_nchw_float16_2,
156 batch_to_space_v1_2::is_ignored_nchw_float16_2,
157 batch_to_space_v1_2::get_examples_nchw_float16_2());
158 }
TEST_AVAILABLE_SINCE(V1_2,batch_to_space_v1_2_nchw_float16_2,batch_to_space_v1_2::CreateModel_nchw_float16_2)159 TEST_AVAILABLE_SINCE(V1_2, batch_to_space_v1_2_nchw_float16_2, batch_to_space_v1_2::CreateModel_nchw_float16_2)
160
161 TEST_F(GeneratedTests, batch_to_space_v1_2_nchw_quant8_2) {
162 execute(batch_to_space_v1_2::CreateModel_nchw_quant8_2,
163 batch_to_space_v1_2::is_ignored_nchw_quant8_2,
164 batch_to_space_v1_2::get_examples_nchw_quant8_2());
165 }
TEST_AVAILABLE_SINCE(V1_2,batch_to_space_v1_2_nchw_quant8_2,batch_to_space_v1_2::CreateModel_nchw_quant8_2)166 TEST_AVAILABLE_SINCE(V1_2, batch_to_space_v1_2_nchw_quant8_2, batch_to_space_v1_2::CreateModel_nchw_quant8_2)
167
168 TEST_F(DynamicOutputShapeTest, batch_to_space_v1_2_dynamic_output_shape_nhwc_2) {
169 execute(batch_to_space_v1_2::CreateModel_dynamic_output_shape_nhwc_2,
170 batch_to_space_v1_2::is_ignored_dynamic_output_shape_nhwc_2,
171 batch_to_space_v1_2::get_examples_dynamic_output_shape_nhwc_2());
172 }
173
TEST_F(DynamicOutputShapeTest,batch_to_space_v1_2_dynamic_output_shape_nhwc_relaxed_2)174 TEST_F(DynamicOutputShapeTest, batch_to_space_v1_2_dynamic_output_shape_nhwc_relaxed_2) {
175 execute(batch_to_space_v1_2::CreateModel_dynamic_output_shape_nhwc_relaxed_2,
176 batch_to_space_v1_2::is_ignored_dynamic_output_shape_nhwc_relaxed_2,
177 batch_to_space_v1_2::get_examples_dynamic_output_shape_nhwc_relaxed_2());
178 }
179
TEST_F(DynamicOutputShapeTest,batch_to_space_v1_2_dynamic_output_shape_nhwc_float16_2)180 TEST_F(DynamicOutputShapeTest, batch_to_space_v1_2_dynamic_output_shape_nhwc_float16_2) {
181 execute(batch_to_space_v1_2::CreateModel_dynamic_output_shape_nhwc_float16_2,
182 batch_to_space_v1_2::is_ignored_dynamic_output_shape_nhwc_float16_2,
183 batch_to_space_v1_2::get_examples_dynamic_output_shape_nhwc_float16_2());
184 }
185
TEST_F(DynamicOutputShapeTest,batch_to_space_v1_2_dynamic_output_shape_nhwc_quant8_2)186 TEST_F(DynamicOutputShapeTest, batch_to_space_v1_2_dynamic_output_shape_nhwc_quant8_2) {
187 execute(batch_to_space_v1_2::CreateModel_dynamic_output_shape_nhwc_quant8_2,
188 batch_to_space_v1_2::is_ignored_dynamic_output_shape_nhwc_quant8_2,
189 batch_to_space_v1_2::get_examples_dynamic_output_shape_nhwc_quant8_2());
190 }
191
TEST_F(DynamicOutputShapeTest,batch_to_space_v1_2_dynamic_output_shape_nchw_2)192 TEST_F(DynamicOutputShapeTest, batch_to_space_v1_2_dynamic_output_shape_nchw_2) {
193 execute(batch_to_space_v1_2::CreateModel_dynamic_output_shape_nchw_2,
194 batch_to_space_v1_2::is_ignored_dynamic_output_shape_nchw_2,
195 batch_to_space_v1_2::get_examples_dynamic_output_shape_nchw_2());
196 }
197
TEST_F(DynamicOutputShapeTest,batch_to_space_v1_2_dynamic_output_shape_nchw_relaxed_2)198 TEST_F(DynamicOutputShapeTest, batch_to_space_v1_2_dynamic_output_shape_nchw_relaxed_2) {
199 execute(batch_to_space_v1_2::CreateModel_dynamic_output_shape_nchw_relaxed_2,
200 batch_to_space_v1_2::is_ignored_dynamic_output_shape_nchw_relaxed_2,
201 batch_to_space_v1_2::get_examples_dynamic_output_shape_nchw_relaxed_2());
202 }
203
TEST_F(DynamicOutputShapeTest,batch_to_space_v1_2_dynamic_output_shape_nchw_float16_2)204 TEST_F(DynamicOutputShapeTest, batch_to_space_v1_2_dynamic_output_shape_nchw_float16_2) {
205 execute(batch_to_space_v1_2::CreateModel_dynamic_output_shape_nchw_float16_2,
206 batch_to_space_v1_2::is_ignored_dynamic_output_shape_nchw_float16_2,
207 batch_to_space_v1_2::get_examples_dynamic_output_shape_nchw_float16_2());
208 }
209
TEST_F(DynamicOutputShapeTest,batch_to_space_v1_2_dynamic_output_shape_nchw_quant8_2)210 TEST_F(DynamicOutputShapeTest, batch_to_space_v1_2_dynamic_output_shape_nchw_quant8_2) {
211 execute(batch_to_space_v1_2::CreateModel_dynamic_output_shape_nchw_quant8_2,
212 batch_to_space_v1_2::is_ignored_dynamic_output_shape_nchw_quant8_2,
213 batch_to_space_v1_2::get_examples_dynamic_output_shape_nchw_quant8_2());
214 }
215
216