1 // clang-format off
2 // Generated file (from: prelu.mod.py). Do not edit
3 #include "../../TestGenerated.h"
4
5 namespace prelu {
6 // Generated prelu test
7 #include "generated/examples/prelu.example.cpp"
8 // Generated model constructor
9 #include "generated/models/prelu.model.cpp"
10 } // namespace prelu
11
TEST_F(GeneratedTests,prelu)12 TEST_F(GeneratedTests, prelu) {
13 execute(prelu::CreateModel,
14 prelu::is_ignored,
15 prelu::get_examples());
16 }
TEST_AVAILABLE_SINCE(V1_2,prelu,prelu::CreateModel)17 TEST_AVAILABLE_SINCE(V1_2, prelu, prelu::CreateModel)
18
19 TEST_F(GeneratedTests, prelu_relaxed) {
20 execute(prelu::CreateModel_relaxed,
21 prelu::is_ignored_relaxed,
22 prelu::get_examples_relaxed());
23 }
24
TEST_F(GeneratedTests,prelu_quant8)25 TEST_F(GeneratedTests, prelu_quant8) {
26 execute(prelu::CreateModel_quant8,
27 prelu::is_ignored_quant8,
28 prelu::get_examples_quant8());
29 }
TEST_AVAILABLE_SINCE(V1_2,prelu_quant8,prelu::CreateModel_quant8)30 TEST_AVAILABLE_SINCE(V1_2, prelu_quant8, prelu::CreateModel_quant8)
31
32 TEST_F(GeneratedTests, prelu_quant8_2) {
33 execute(prelu::CreateModel_quant8_2,
34 prelu::is_ignored_quant8_2,
35 prelu::get_examples_quant8_2());
36 }
TEST_AVAILABLE_SINCE(V1_2,prelu_quant8_2,prelu::CreateModel_quant8_2)37 TEST_AVAILABLE_SINCE(V1_2, prelu_quant8_2, prelu::CreateModel_quant8_2)
38
39 TEST_F(GeneratedTests, prelu_quant8_3) {
40 execute(prelu::CreateModel_quant8_3,
41 prelu::is_ignored_quant8_3,
42 prelu::get_examples_quant8_3());
43 }
TEST_AVAILABLE_SINCE(V1_2,prelu_quant8_3,prelu::CreateModel_quant8_3)44 TEST_AVAILABLE_SINCE(V1_2, prelu_quant8_3, prelu::CreateModel_quant8_3)
45
46 TEST_F(GeneratedTests, prelu_quant8_4) {
47 execute(prelu::CreateModel_quant8_4,
48 prelu::is_ignored_quant8_4,
49 prelu::get_examples_quant8_4());
50 }
TEST_AVAILABLE_SINCE(V1_2,prelu_quant8_4,prelu::CreateModel_quant8_4)51 TEST_AVAILABLE_SINCE(V1_2, prelu_quant8_4, prelu::CreateModel_quant8_4)
52
53 TEST_F(GeneratedTests, prelu_float16) {
54 execute(prelu::CreateModel_float16,
55 prelu::is_ignored_float16,
56 prelu::get_examples_float16());
57 }
TEST_AVAILABLE_SINCE(V1_2,prelu_float16,prelu::CreateModel_float16)58 TEST_AVAILABLE_SINCE(V1_2, prelu_float16, prelu::CreateModel_float16)
59
60 TEST_F(GeneratedTests, prelu_weight_as_input) {
61 execute(prelu::CreateModel_weight_as_input,
62 prelu::is_ignored_weight_as_input,
63 prelu::get_examples_weight_as_input());
64 }
TEST_AVAILABLE_SINCE(V1_2,prelu_weight_as_input,prelu::CreateModel_weight_as_input)65 TEST_AVAILABLE_SINCE(V1_2, prelu_weight_as_input, prelu::CreateModel_weight_as_input)
66
67 TEST_F(GeneratedTests, prelu_weight_as_input_relaxed) {
68 execute(prelu::CreateModel_weight_as_input_relaxed,
69 prelu::is_ignored_weight_as_input_relaxed,
70 prelu::get_examples_weight_as_input_relaxed());
71 }
72
TEST_F(GeneratedTests,prelu_weight_as_input_quant8)73 TEST_F(GeneratedTests, prelu_weight_as_input_quant8) {
74 execute(prelu::CreateModel_weight_as_input_quant8,
75 prelu::is_ignored_weight_as_input_quant8,
76 prelu::get_examples_weight_as_input_quant8());
77 }
TEST_AVAILABLE_SINCE(V1_2,prelu_weight_as_input_quant8,prelu::CreateModel_weight_as_input_quant8)78 TEST_AVAILABLE_SINCE(V1_2, prelu_weight_as_input_quant8, prelu::CreateModel_weight_as_input_quant8)
79
80 TEST_F(GeneratedTests, prelu_weight_as_input_quant8_2) {
81 execute(prelu::CreateModel_weight_as_input_quant8_2,
82 prelu::is_ignored_weight_as_input_quant8_2,
83 prelu::get_examples_weight_as_input_quant8_2());
84 }
TEST_AVAILABLE_SINCE(V1_2,prelu_weight_as_input_quant8_2,prelu::CreateModel_weight_as_input_quant8_2)85 TEST_AVAILABLE_SINCE(V1_2, prelu_weight_as_input_quant8_2, prelu::CreateModel_weight_as_input_quant8_2)
86
87 TEST_F(GeneratedTests, prelu_weight_as_input_quant8_3) {
88 execute(prelu::CreateModel_weight_as_input_quant8_3,
89 prelu::is_ignored_weight_as_input_quant8_3,
90 prelu::get_examples_weight_as_input_quant8_3());
91 }
TEST_AVAILABLE_SINCE(V1_2,prelu_weight_as_input_quant8_3,prelu::CreateModel_weight_as_input_quant8_3)92 TEST_AVAILABLE_SINCE(V1_2, prelu_weight_as_input_quant8_3, prelu::CreateModel_weight_as_input_quant8_3)
93
94 TEST_F(GeneratedTests, prelu_weight_as_input_quant8_4) {
95 execute(prelu::CreateModel_weight_as_input_quant8_4,
96 prelu::is_ignored_weight_as_input_quant8_4,
97 prelu::get_examples_weight_as_input_quant8_4());
98 }
TEST_AVAILABLE_SINCE(V1_2,prelu_weight_as_input_quant8_4,prelu::CreateModel_weight_as_input_quant8_4)99 TEST_AVAILABLE_SINCE(V1_2, prelu_weight_as_input_quant8_4, prelu::CreateModel_weight_as_input_quant8_4)
100
101 TEST_F(GeneratedTests, prelu_weight_as_input_float16) {
102 execute(prelu::CreateModel_weight_as_input_float16,
103 prelu::is_ignored_weight_as_input_float16,
104 prelu::get_examples_weight_as_input_float16());
105 }
TEST_AVAILABLE_SINCE(V1_2,prelu_weight_as_input_float16,prelu::CreateModel_weight_as_input_float16)106 TEST_AVAILABLE_SINCE(V1_2, prelu_weight_as_input_float16, prelu::CreateModel_weight_as_input_float16)
107
108 TEST_F(DynamicOutputShapeTest, prelu_dynamic_output_shape) {
109 execute(prelu::CreateModel_dynamic_output_shape,
110 prelu::is_ignored_dynamic_output_shape,
111 prelu::get_examples_dynamic_output_shape());
112 }
113
TEST_F(DynamicOutputShapeTest,prelu_dynamic_output_shape_relaxed)114 TEST_F(DynamicOutputShapeTest, prelu_dynamic_output_shape_relaxed) {
115 execute(prelu::CreateModel_dynamic_output_shape_relaxed,
116 prelu::is_ignored_dynamic_output_shape_relaxed,
117 prelu::get_examples_dynamic_output_shape_relaxed());
118 }
119
TEST_F(DynamicOutputShapeTest,prelu_dynamic_output_shape_quant8)120 TEST_F(DynamicOutputShapeTest, prelu_dynamic_output_shape_quant8) {
121 execute(prelu::CreateModel_dynamic_output_shape_quant8,
122 prelu::is_ignored_dynamic_output_shape_quant8,
123 prelu::get_examples_dynamic_output_shape_quant8());
124 }
125
TEST_F(DynamicOutputShapeTest,prelu_dynamic_output_shape_quant8_2)126 TEST_F(DynamicOutputShapeTest, prelu_dynamic_output_shape_quant8_2) {
127 execute(prelu::CreateModel_dynamic_output_shape_quant8_2,
128 prelu::is_ignored_dynamic_output_shape_quant8_2,
129 prelu::get_examples_dynamic_output_shape_quant8_2());
130 }
131
TEST_F(DynamicOutputShapeTest,prelu_dynamic_output_shape_quant8_3)132 TEST_F(DynamicOutputShapeTest, prelu_dynamic_output_shape_quant8_3) {
133 execute(prelu::CreateModel_dynamic_output_shape_quant8_3,
134 prelu::is_ignored_dynamic_output_shape_quant8_3,
135 prelu::get_examples_dynamic_output_shape_quant8_3());
136 }
137
TEST_F(DynamicOutputShapeTest,prelu_dynamic_output_shape_quant8_4)138 TEST_F(DynamicOutputShapeTest, prelu_dynamic_output_shape_quant8_4) {
139 execute(prelu::CreateModel_dynamic_output_shape_quant8_4,
140 prelu::is_ignored_dynamic_output_shape_quant8_4,
141 prelu::get_examples_dynamic_output_shape_quant8_4());
142 }
143
TEST_F(DynamicOutputShapeTest,prelu_dynamic_output_shape_float16)144 TEST_F(DynamicOutputShapeTest, prelu_dynamic_output_shape_float16) {
145 execute(prelu::CreateModel_dynamic_output_shape_float16,
146 prelu::is_ignored_dynamic_output_shape_float16,
147 prelu::get_examples_dynamic_output_shape_float16());
148 }
149
TEST_F(DynamicOutputShapeTest,prelu_dynamic_output_shape_weight_as_input)150 TEST_F(DynamicOutputShapeTest, prelu_dynamic_output_shape_weight_as_input) {
151 execute(prelu::CreateModel_dynamic_output_shape_weight_as_input,
152 prelu::is_ignored_dynamic_output_shape_weight_as_input,
153 prelu::get_examples_dynamic_output_shape_weight_as_input());
154 }
155
TEST_F(DynamicOutputShapeTest,prelu_dynamic_output_shape_weight_as_input_relaxed)156 TEST_F(DynamicOutputShapeTest, prelu_dynamic_output_shape_weight_as_input_relaxed) {
157 execute(prelu::CreateModel_dynamic_output_shape_weight_as_input_relaxed,
158 prelu::is_ignored_dynamic_output_shape_weight_as_input_relaxed,
159 prelu::get_examples_dynamic_output_shape_weight_as_input_relaxed());
160 }
161
TEST_F(DynamicOutputShapeTest,prelu_dynamic_output_shape_weight_as_input_quant8)162 TEST_F(DynamicOutputShapeTest, prelu_dynamic_output_shape_weight_as_input_quant8) {
163 execute(prelu::CreateModel_dynamic_output_shape_weight_as_input_quant8,
164 prelu::is_ignored_dynamic_output_shape_weight_as_input_quant8,
165 prelu::get_examples_dynamic_output_shape_weight_as_input_quant8());
166 }
167
TEST_F(DynamicOutputShapeTest,prelu_dynamic_output_shape_weight_as_input_quant8_2)168 TEST_F(DynamicOutputShapeTest, prelu_dynamic_output_shape_weight_as_input_quant8_2) {
169 execute(prelu::CreateModel_dynamic_output_shape_weight_as_input_quant8_2,
170 prelu::is_ignored_dynamic_output_shape_weight_as_input_quant8_2,
171 prelu::get_examples_dynamic_output_shape_weight_as_input_quant8_2());
172 }
173
TEST_F(DynamicOutputShapeTest,prelu_dynamic_output_shape_weight_as_input_quant8_3)174 TEST_F(DynamicOutputShapeTest, prelu_dynamic_output_shape_weight_as_input_quant8_3) {
175 execute(prelu::CreateModel_dynamic_output_shape_weight_as_input_quant8_3,
176 prelu::is_ignored_dynamic_output_shape_weight_as_input_quant8_3,
177 prelu::get_examples_dynamic_output_shape_weight_as_input_quant8_3());
178 }
179
TEST_F(DynamicOutputShapeTest,prelu_dynamic_output_shape_weight_as_input_quant8_4)180 TEST_F(DynamicOutputShapeTest, prelu_dynamic_output_shape_weight_as_input_quant8_4) {
181 execute(prelu::CreateModel_dynamic_output_shape_weight_as_input_quant8_4,
182 prelu::is_ignored_dynamic_output_shape_weight_as_input_quant8_4,
183 prelu::get_examples_dynamic_output_shape_weight_as_input_quant8_4());
184 }
185
TEST_F(DynamicOutputShapeTest,prelu_dynamic_output_shape_weight_as_input_float16)186 TEST_F(DynamicOutputShapeTest, prelu_dynamic_output_shape_weight_as_input_float16) {
187 execute(prelu::CreateModel_dynamic_output_shape_weight_as_input_float16,
188 prelu::is_ignored_dynamic_output_shape_weight_as_input_float16,
189 prelu::get_examples_dynamic_output_shape_weight_as_input_float16());
190 }
191
192