1 // clang-format off
2 // Generated file (from: reduce_prod.mod.py). Do not edit
3 #include "../../TestGenerated.h"
4
5 namespace reduce_prod {
6 // Generated reduce_prod test
7 #include "generated/examples/reduce_prod.example.cpp"
8 // Generated model constructor
9 #include "generated/models/reduce_prod.model.cpp"
10 } // namespace reduce_prod
11
TEST_F(GeneratedTests,reduce_prod)12 TEST_F(GeneratedTests, reduce_prod) {
13 execute(reduce_prod::CreateModel,
14 reduce_prod::is_ignored,
15 reduce_prod::get_examples());
16 }
TEST_AVAILABLE_SINCE(V1_2,reduce_prod,reduce_prod::CreateModel)17 TEST_AVAILABLE_SINCE(V1_2, reduce_prod, reduce_prod::CreateModel)
18
19 TEST_F(GeneratedTests, reduce_prod_relaxed) {
20 execute(reduce_prod::CreateModel_relaxed,
21 reduce_prod::is_ignored_relaxed,
22 reduce_prod::get_examples_relaxed());
23 }
24
TEST_F(GeneratedTests,reduce_prod_float16)25 TEST_F(GeneratedTests, reduce_prod_float16) {
26 execute(reduce_prod::CreateModel_float16,
27 reduce_prod::is_ignored_float16,
28 reduce_prod::get_examples_float16());
29 }
TEST_AVAILABLE_SINCE(V1_2,reduce_prod_float16,reduce_prod::CreateModel_float16)30 TEST_AVAILABLE_SINCE(V1_2, reduce_prod_float16, reduce_prod::CreateModel_float16)
31
32 TEST_F(DynamicOutputShapeTest, reduce_prod_dynamic_output_shape) {
33 execute(reduce_prod::CreateModel_dynamic_output_shape,
34 reduce_prod::is_ignored_dynamic_output_shape,
35 reduce_prod::get_examples_dynamic_output_shape());
36 }
37
TEST_F(DynamicOutputShapeTest,reduce_prod_dynamic_output_shape_relaxed)38 TEST_F(DynamicOutputShapeTest, reduce_prod_dynamic_output_shape_relaxed) {
39 execute(reduce_prod::CreateModel_dynamic_output_shape_relaxed,
40 reduce_prod::is_ignored_dynamic_output_shape_relaxed,
41 reduce_prod::get_examples_dynamic_output_shape_relaxed());
42 }
43
TEST_F(DynamicOutputShapeTest,reduce_prod_dynamic_output_shape_float16)44 TEST_F(DynamicOutputShapeTest, reduce_prod_dynamic_output_shape_float16) {
45 execute(reduce_prod::CreateModel_dynamic_output_shape_float16,
46 reduce_prod::is_ignored_dynamic_output_shape_float16,
47 reduce_prod::get_examples_dynamic_output_shape_float16());
48 }
49
TEST_F(GeneratedTests,reduce_prod_2)50 TEST_F(GeneratedTests, reduce_prod_2) {
51 execute(reduce_prod::CreateModel_2,
52 reduce_prod::is_ignored_2,
53 reduce_prod::get_examples_2());
54 }
TEST_AVAILABLE_SINCE(V1_2,reduce_prod_2,reduce_prod::CreateModel_2)55 TEST_AVAILABLE_SINCE(V1_2, reduce_prod_2, reduce_prod::CreateModel_2)
56
57 TEST_F(GeneratedTests, reduce_prod_relaxed_2) {
58 execute(reduce_prod::CreateModel_relaxed_2,
59 reduce_prod::is_ignored_relaxed_2,
60 reduce_prod::get_examples_relaxed_2());
61 }
62
TEST_F(GeneratedTests,reduce_prod_float16_2)63 TEST_F(GeneratedTests, reduce_prod_float16_2) {
64 execute(reduce_prod::CreateModel_float16_2,
65 reduce_prod::is_ignored_float16_2,
66 reduce_prod::get_examples_float16_2());
67 }
TEST_AVAILABLE_SINCE(V1_2,reduce_prod_float16_2,reduce_prod::CreateModel_float16_2)68 TEST_AVAILABLE_SINCE(V1_2, reduce_prod_float16_2, reduce_prod::CreateModel_float16_2)
69
70 TEST_F(DynamicOutputShapeTest, reduce_prod_dynamic_output_shape_2) {
71 execute(reduce_prod::CreateModel_dynamic_output_shape_2,
72 reduce_prod::is_ignored_dynamic_output_shape_2,
73 reduce_prod::get_examples_dynamic_output_shape_2());
74 }
75
TEST_F(DynamicOutputShapeTest,reduce_prod_dynamic_output_shape_relaxed_2)76 TEST_F(DynamicOutputShapeTest, reduce_prod_dynamic_output_shape_relaxed_2) {
77 execute(reduce_prod::CreateModel_dynamic_output_shape_relaxed_2,
78 reduce_prod::is_ignored_dynamic_output_shape_relaxed_2,
79 reduce_prod::get_examples_dynamic_output_shape_relaxed_2());
80 }
81
TEST_F(DynamicOutputShapeTest,reduce_prod_dynamic_output_shape_float16_2)82 TEST_F(DynamicOutputShapeTest, reduce_prod_dynamic_output_shape_float16_2) {
83 execute(reduce_prod::CreateModel_dynamic_output_shape_float16_2,
84 reduce_prod::is_ignored_dynamic_output_shape_float16_2,
85 reduce_prod::get_examples_dynamic_output_shape_float16_2());
86 }
87
TEST_F(GeneratedTests,reduce_prod_3)88 TEST_F(GeneratedTests, reduce_prod_3) {
89 execute(reduce_prod::CreateModel_3,
90 reduce_prod::is_ignored_3,
91 reduce_prod::get_examples_3());
92 }
TEST_AVAILABLE_SINCE(V1_2,reduce_prod_3,reduce_prod::CreateModel_3)93 TEST_AVAILABLE_SINCE(V1_2, reduce_prod_3, reduce_prod::CreateModel_3)
94
95 TEST_F(GeneratedTests, reduce_prod_relaxed_3) {
96 execute(reduce_prod::CreateModel_relaxed_3,
97 reduce_prod::is_ignored_relaxed_3,
98 reduce_prod::get_examples_relaxed_3());
99 }
100
TEST_F(GeneratedTests,reduce_prod_float16_3)101 TEST_F(GeneratedTests, reduce_prod_float16_3) {
102 execute(reduce_prod::CreateModel_float16_3,
103 reduce_prod::is_ignored_float16_3,
104 reduce_prod::get_examples_float16_3());
105 }
TEST_AVAILABLE_SINCE(V1_2,reduce_prod_float16_3,reduce_prod::CreateModel_float16_3)106 TEST_AVAILABLE_SINCE(V1_2, reduce_prod_float16_3, reduce_prod::CreateModel_float16_3)
107
108 TEST_F(DynamicOutputShapeTest, reduce_prod_dynamic_output_shape_3) {
109 execute(reduce_prod::CreateModel_dynamic_output_shape_3,
110 reduce_prod::is_ignored_dynamic_output_shape_3,
111 reduce_prod::get_examples_dynamic_output_shape_3());
112 }
113
TEST_F(DynamicOutputShapeTest,reduce_prod_dynamic_output_shape_relaxed_3)114 TEST_F(DynamicOutputShapeTest, reduce_prod_dynamic_output_shape_relaxed_3) {
115 execute(reduce_prod::CreateModel_dynamic_output_shape_relaxed_3,
116 reduce_prod::is_ignored_dynamic_output_shape_relaxed_3,
117 reduce_prod::get_examples_dynamic_output_shape_relaxed_3());
118 }
119
TEST_F(DynamicOutputShapeTest,reduce_prod_dynamic_output_shape_float16_3)120 TEST_F(DynamicOutputShapeTest, reduce_prod_dynamic_output_shape_float16_3) {
121 execute(reduce_prod::CreateModel_dynamic_output_shape_float16_3,
122 reduce_prod::is_ignored_dynamic_output_shape_float16_3,
123 reduce_prod::get_examples_dynamic_output_shape_float16_3());
124 }
125
TEST_F(GeneratedTests,reduce_prod_4)126 TEST_F(GeneratedTests, reduce_prod_4) {
127 execute(reduce_prod::CreateModel_4,
128 reduce_prod::is_ignored_4,
129 reduce_prod::get_examples_4());
130 }
TEST_AVAILABLE_SINCE(V1_2,reduce_prod_4,reduce_prod::CreateModel_4)131 TEST_AVAILABLE_SINCE(V1_2, reduce_prod_4, reduce_prod::CreateModel_4)
132
133 TEST_F(GeneratedTests, reduce_prod_relaxed_4) {
134 execute(reduce_prod::CreateModel_relaxed_4,
135 reduce_prod::is_ignored_relaxed_4,
136 reduce_prod::get_examples_relaxed_4());
137 }
138
TEST_F(GeneratedTests,reduce_prod_float16_4)139 TEST_F(GeneratedTests, reduce_prod_float16_4) {
140 execute(reduce_prod::CreateModel_float16_4,
141 reduce_prod::is_ignored_float16_4,
142 reduce_prod::get_examples_float16_4());
143 }
TEST_AVAILABLE_SINCE(V1_2,reduce_prod_float16_4,reduce_prod::CreateModel_float16_4)144 TEST_AVAILABLE_SINCE(V1_2, reduce_prod_float16_4, reduce_prod::CreateModel_float16_4)
145
146 TEST_F(DynamicOutputShapeTest, reduce_prod_dynamic_output_shape_4) {
147 execute(reduce_prod::CreateModel_dynamic_output_shape_4,
148 reduce_prod::is_ignored_dynamic_output_shape_4,
149 reduce_prod::get_examples_dynamic_output_shape_4());
150 }
151
TEST_F(DynamicOutputShapeTest,reduce_prod_dynamic_output_shape_relaxed_4)152 TEST_F(DynamicOutputShapeTest, reduce_prod_dynamic_output_shape_relaxed_4) {
153 execute(reduce_prod::CreateModel_dynamic_output_shape_relaxed_4,
154 reduce_prod::is_ignored_dynamic_output_shape_relaxed_4,
155 reduce_prod::get_examples_dynamic_output_shape_relaxed_4());
156 }
157
TEST_F(DynamicOutputShapeTest,reduce_prod_dynamic_output_shape_float16_4)158 TEST_F(DynamicOutputShapeTest, reduce_prod_dynamic_output_shape_float16_4) {
159 execute(reduce_prod::CreateModel_dynamic_output_shape_float16_4,
160 reduce_prod::is_ignored_dynamic_output_shape_float16_4,
161 reduce_prod::get_examples_dynamic_output_shape_float16_4());
162 }
163
164