1 // clang-format off
2 // Generated file (from: topk_v2.mod.py). Do not edit
3 #include "../../TestGenerated.h"
4
5 namespace topk_v2 {
6 // Generated topk_v2 test
7 #include "generated/examples/topk_v2.example.cpp"
8 // Generated model constructor
9 #include "generated/models/topk_v2.model.cpp"
10 } // namespace topk_v2
11
TEST_F(GeneratedTests,topk_v2)12 TEST_F(GeneratedTests, topk_v2) {
13 execute(topk_v2::CreateModel,
14 topk_v2::is_ignored,
15 topk_v2::get_examples());
16 }
TEST_AVAILABLE_SINCE(V1_2,topk_v2,topk_v2::CreateModel)17 TEST_AVAILABLE_SINCE(V1_2, topk_v2, topk_v2::CreateModel)
18
19 TEST_F(GeneratedTests, topk_v2_relaxed) {
20 execute(topk_v2::CreateModel_relaxed,
21 topk_v2::is_ignored_relaxed,
22 topk_v2::get_examples_relaxed());
23 }
24
TEST_F(GeneratedTests,topk_v2_float16)25 TEST_F(GeneratedTests, topk_v2_float16) {
26 execute(topk_v2::CreateModel_float16,
27 topk_v2::is_ignored_float16,
28 topk_v2::get_examples_float16());
29 }
TEST_AVAILABLE_SINCE(V1_2,topk_v2_float16,topk_v2::CreateModel_float16)30 TEST_AVAILABLE_SINCE(V1_2, topk_v2_float16, topk_v2::CreateModel_float16)
31
32 TEST_F(DynamicOutputShapeTest, topk_v2_dynamic_output_shape) {
33 execute(topk_v2::CreateModel_dynamic_output_shape,
34 topk_v2::is_ignored_dynamic_output_shape,
35 topk_v2::get_examples_dynamic_output_shape());
36 }
37
TEST_F(DynamicOutputShapeTest,topk_v2_dynamic_output_shape_relaxed)38 TEST_F(DynamicOutputShapeTest, topk_v2_dynamic_output_shape_relaxed) {
39 execute(topk_v2::CreateModel_dynamic_output_shape_relaxed,
40 topk_v2::is_ignored_dynamic_output_shape_relaxed,
41 topk_v2::get_examples_dynamic_output_shape_relaxed());
42 }
43
TEST_F(DynamicOutputShapeTest,topk_v2_dynamic_output_shape_float16)44 TEST_F(DynamicOutputShapeTest, topk_v2_dynamic_output_shape_float16) {
45 execute(topk_v2::CreateModel_dynamic_output_shape_float16,
46 topk_v2::is_ignored_dynamic_output_shape_float16,
47 topk_v2::get_examples_dynamic_output_shape_float16());
48 }
49
TEST_F(GeneratedTests,topk_v2_2)50 TEST_F(GeneratedTests, topk_v2_2) {
51 execute(topk_v2::CreateModel_2,
52 topk_v2::is_ignored_2,
53 topk_v2::get_examples_2());
54 }
TEST_AVAILABLE_SINCE(V1_2,topk_v2_2,topk_v2::CreateModel_2)55 TEST_AVAILABLE_SINCE(V1_2, topk_v2_2, topk_v2::CreateModel_2)
56
57 TEST_F(GeneratedTests, topk_v2_relaxed_2) {
58 execute(topk_v2::CreateModel_relaxed_2,
59 topk_v2::is_ignored_relaxed_2,
60 topk_v2::get_examples_relaxed_2());
61 }
62
TEST_F(GeneratedTests,topk_v2_float16_2)63 TEST_F(GeneratedTests, topk_v2_float16_2) {
64 execute(topk_v2::CreateModel_float16_2,
65 topk_v2::is_ignored_float16_2,
66 topk_v2::get_examples_float16_2());
67 }
TEST_AVAILABLE_SINCE(V1_2,topk_v2_float16_2,topk_v2::CreateModel_float16_2)68 TEST_AVAILABLE_SINCE(V1_2, topk_v2_float16_2, topk_v2::CreateModel_float16_2)
69
70 TEST_F(DynamicOutputShapeTest, topk_v2_dynamic_output_shape_2) {
71 execute(topk_v2::CreateModel_dynamic_output_shape_2,
72 topk_v2::is_ignored_dynamic_output_shape_2,
73 topk_v2::get_examples_dynamic_output_shape_2());
74 }
75
TEST_F(DynamicOutputShapeTest,topk_v2_dynamic_output_shape_relaxed_2)76 TEST_F(DynamicOutputShapeTest, topk_v2_dynamic_output_shape_relaxed_2) {
77 execute(topk_v2::CreateModel_dynamic_output_shape_relaxed_2,
78 topk_v2::is_ignored_dynamic_output_shape_relaxed_2,
79 topk_v2::get_examples_dynamic_output_shape_relaxed_2());
80 }
81
TEST_F(DynamicOutputShapeTest,topk_v2_dynamic_output_shape_float16_2)82 TEST_F(DynamicOutputShapeTest, topk_v2_dynamic_output_shape_float16_2) {
83 execute(topk_v2::CreateModel_dynamic_output_shape_float16_2,
84 topk_v2::is_ignored_dynamic_output_shape_float16_2,
85 topk_v2::get_examples_dynamic_output_shape_float16_2());
86 }
87
TEST_F(GeneratedTests,topk_v2_3)88 TEST_F(GeneratedTests, topk_v2_3) {
89 execute(topk_v2::CreateModel_3,
90 topk_v2::is_ignored_3,
91 topk_v2::get_examples_3());
92 }
TEST_AVAILABLE_SINCE(V1_2,topk_v2_3,topk_v2::CreateModel_3)93 TEST_AVAILABLE_SINCE(V1_2, topk_v2_3, topk_v2::CreateModel_3)
94
95 TEST_F(GeneratedTests, topk_v2_relaxed_3) {
96 execute(topk_v2::CreateModel_relaxed_3,
97 topk_v2::is_ignored_relaxed_3,
98 topk_v2::get_examples_relaxed_3());
99 }
100
TEST_F(GeneratedTests,topk_v2_float16_3)101 TEST_F(GeneratedTests, topk_v2_float16_3) {
102 execute(topk_v2::CreateModel_float16_3,
103 topk_v2::is_ignored_float16_3,
104 topk_v2::get_examples_float16_3());
105 }
TEST_AVAILABLE_SINCE(V1_2,topk_v2_float16_3,topk_v2::CreateModel_float16_3)106 TEST_AVAILABLE_SINCE(V1_2, topk_v2_float16_3, topk_v2::CreateModel_float16_3)
107
108 TEST_F(DynamicOutputShapeTest, topk_v2_dynamic_output_shape_3) {
109 execute(topk_v2::CreateModel_dynamic_output_shape_3,
110 topk_v2::is_ignored_dynamic_output_shape_3,
111 topk_v2::get_examples_dynamic_output_shape_3());
112 }
113
TEST_F(DynamicOutputShapeTest,topk_v2_dynamic_output_shape_relaxed_3)114 TEST_F(DynamicOutputShapeTest, topk_v2_dynamic_output_shape_relaxed_3) {
115 execute(topk_v2::CreateModel_dynamic_output_shape_relaxed_3,
116 topk_v2::is_ignored_dynamic_output_shape_relaxed_3,
117 topk_v2::get_examples_dynamic_output_shape_relaxed_3());
118 }
119
TEST_F(DynamicOutputShapeTest,topk_v2_dynamic_output_shape_float16_3)120 TEST_F(DynamicOutputShapeTest, topk_v2_dynamic_output_shape_float16_3) {
121 execute(topk_v2::CreateModel_dynamic_output_shape_float16_3,
122 topk_v2::is_ignored_dynamic_output_shape_float16_3,
123 topk_v2::get_examples_dynamic_output_shape_float16_3());
124 }
125
TEST_F(GeneratedTests,topk_v2_4)126 TEST_F(GeneratedTests, topk_v2_4) {
127 execute(topk_v2::CreateModel_4,
128 topk_v2::is_ignored_4,
129 topk_v2::get_examples_4());
130 }
TEST_AVAILABLE_SINCE(V1_2,topk_v2_4,topk_v2::CreateModel_4)131 TEST_AVAILABLE_SINCE(V1_2, topk_v2_4, topk_v2::CreateModel_4)
132
133 TEST_F(GeneratedTests, topk_v2_relaxed_4) {
134 execute(topk_v2::CreateModel_relaxed_4,
135 topk_v2::is_ignored_relaxed_4,
136 topk_v2::get_examples_relaxed_4());
137 }
138
TEST_F(GeneratedTests,topk_v2_float16_4)139 TEST_F(GeneratedTests, topk_v2_float16_4) {
140 execute(topk_v2::CreateModel_float16_4,
141 topk_v2::is_ignored_float16_4,
142 topk_v2::get_examples_float16_4());
143 }
TEST_AVAILABLE_SINCE(V1_2,topk_v2_float16_4,topk_v2::CreateModel_float16_4)144 TEST_AVAILABLE_SINCE(V1_2, topk_v2_float16_4, topk_v2::CreateModel_float16_4)
145
146 TEST_F(DynamicOutputShapeTest, topk_v2_dynamic_output_shape_4) {
147 execute(topk_v2::CreateModel_dynamic_output_shape_4,
148 topk_v2::is_ignored_dynamic_output_shape_4,
149 topk_v2::get_examples_dynamic_output_shape_4());
150 }
151
TEST_F(DynamicOutputShapeTest,topk_v2_dynamic_output_shape_relaxed_4)152 TEST_F(DynamicOutputShapeTest, topk_v2_dynamic_output_shape_relaxed_4) {
153 execute(topk_v2::CreateModel_dynamic_output_shape_relaxed_4,
154 topk_v2::is_ignored_dynamic_output_shape_relaxed_4,
155 topk_v2::get_examples_dynamic_output_shape_relaxed_4());
156 }
157
TEST_F(DynamicOutputShapeTest,topk_v2_dynamic_output_shape_float16_4)158 TEST_F(DynamicOutputShapeTest, topk_v2_dynamic_output_shape_float16_4) {
159 execute(topk_v2::CreateModel_dynamic_output_shape_float16_4,
160 topk_v2::is_ignored_dynamic_output_shape_float16_4,
161 topk_v2::get_examples_dynamic_output_shape_float16_4());
162 }
163
TEST_F(GeneratedTests,topk_v2_5)164 TEST_F(GeneratedTests, topk_v2_5) {
165 execute(topk_v2::CreateModel_5,
166 topk_v2::is_ignored_5,
167 topk_v2::get_examples_5());
168 }
TEST_AVAILABLE_SINCE(V1_2,topk_v2_5,topk_v2::CreateModel_5)169 TEST_AVAILABLE_SINCE(V1_2, topk_v2_5, topk_v2::CreateModel_5)
170
171 TEST_F(GeneratedTests, topk_v2_relaxed_5) {
172 execute(topk_v2::CreateModel_relaxed_5,
173 topk_v2::is_ignored_relaxed_5,
174 topk_v2::get_examples_relaxed_5());
175 }
176
TEST_F(GeneratedTests,topk_v2_float16_5)177 TEST_F(GeneratedTests, topk_v2_float16_5) {
178 execute(topk_v2::CreateModel_float16_5,
179 topk_v2::is_ignored_float16_5,
180 topk_v2::get_examples_float16_5());
181 }
TEST_AVAILABLE_SINCE(V1_2,topk_v2_float16_5,topk_v2::CreateModel_float16_5)182 TEST_AVAILABLE_SINCE(V1_2, topk_v2_float16_5, topk_v2::CreateModel_float16_5)
183
184 TEST_F(DynamicOutputShapeTest, topk_v2_dynamic_output_shape_5) {
185 execute(topk_v2::CreateModel_dynamic_output_shape_5,
186 topk_v2::is_ignored_dynamic_output_shape_5,
187 topk_v2::get_examples_dynamic_output_shape_5());
188 }
189
TEST_F(DynamicOutputShapeTest,topk_v2_dynamic_output_shape_relaxed_5)190 TEST_F(DynamicOutputShapeTest, topk_v2_dynamic_output_shape_relaxed_5) {
191 execute(topk_v2::CreateModel_dynamic_output_shape_relaxed_5,
192 topk_v2::is_ignored_dynamic_output_shape_relaxed_5,
193 topk_v2::get_examples_dynamic_output_shape_relaxed_5());
194 }
195
TEST_F(DynamicOutputShapeTest,topk_v2_dynamic_output_shape_float16_5)196 TEST_F(DynamicOutputShapeTest, topk_v2_dynamic_output_shape_float16_5) {
197 execute(topk_v2::CreateModel_dynamic_output_shape_float16_5,
198 topk_v2::is_ignored_dynamic_output_shape_float16_5,
199 topk_v2::get_examples_dynamic_output_shape_float16_5());
200 }
201
TEST_F(GeneratedTests,topk_v2_6)202 TEST_F(GeneratedTests, topk_v2_6) {
203 execute(topk_v2::CreateModel_6,
204 topk_v2::is_ignored_6,
205 topk_v2::get_examples_6());
206 }
TEST_AVAILABLE_SINCE(V1_2,topk_v2_6,topk_v2::CreateModel_6)207 TEST_AVAILABLE_SINCE(V1_2, topk_v2_6, topk_v2::CreateModel_6)
208
209 TEST_F(GeneratedTests, topk_v2_relaxed_6) {
210 execute(topk_v2::CreateModel_relaxed_6,
211 topk_v2::is_ignored_relaxed_6,
212 topk_v2::get_examples_relaxed_6());
213 }
214
TEST_F(GeneratedTests,topk_v2_float16_6)215 TEST_F(GeneratedTests, topk_v2_float16_6) {
216 execute(topk_v2::CreateModel_float16_6,
217 topk_v2::is_ignored_float16_6,
218 topk_v2::get_examples_float16_6());
219 }
TEST_AVAILABLE_SINCE(V1_2,topk_v2_float16_6,topk_v2::CreateModel_float16_6)220 TEST_AVAILABLE_SINCE(V1_2, topk_v2_float16_6, topk_v2::CreateModel_float16_6)
221
222 TEST_F(DynamicOutputShapeTest, topk_v2_dynamic_output_shape_6) {
223 execute(topk_v2::CreateModel_dynamic_output_shape_6,
224 topk_v2::is_ignored_dynamic_output_shape_6,
225 topk_v2::get_examples_dynamic_output_shape_6());
226 }
227
TEST_F(DynamicOutputShapeTest,topk_v2_dynamic_output_shape_relaxed_6)228 TEST_F(DynamicOutputShapeTest, topk_v2_dynamic_output_shape_relaxed_6) {
229 execute(topk_v2::CreateModel_dynamic_output_shape_relaxed_6,
230 topk_v2::is_ignored_dynamic_output_shape_relaxed_6,
231 topk_v2::get_examples_dynamic_output_shape_relaxed_6());
232 }
233
TEST_F(DynamicOutputShapeTest,topk_v2_dynamic_output_shape_float16_6)234 TEST_F(DynamicOutputShapeTest, topk_v2_dynamic_output_shape_float16_6) {
235 execute(topk_v2::CreateModel_dynamic_output_shape_float16_6,
236 topk_v2::is_ignored_dynamic_output_shape_float16_6,
237 topk_v2::get_examples_dynamic_output_shape_float16_6());
238 }
239
240