1 // clang-format off
2 // Generated file (from: equal.mod.py). Do not edit
3 #include "../../TestGenerated.h"
4
5 namespace equal {
6 // Generated equal test
7 #include "generated/examples/equal.example.cpp"
8 // Generated model constructor
9 #include "generated/models/equal.model.cpp"
10 } // namespace equal
11
TEST_F(GeneratedTests,equal_simple)12 TEST_F(GeneratedTests, equal_simple) {
13 execute(equal::CreateModel,
14 equal::is_ignored,
15 equal::get_examples_simple());
16 }
TEST_AVAILABLE_SINCE(V1_2,equal_simple,equal::CreateModel)17 TEST_AVAILABLE_SINCE(V1_2, equal_simple, equal::CreateModel)
18
19 TEST_F(GeneratedTests, equal_simple_int32) {
20 execute(equal::CreateModel_int32,
21 equal::is_ignored_int32,
22 equal::get_examples_simple_int32());
23 }
TEST_AVAILABLE_SINCE(V1_2,equal_simple_int32,equal::CreateModel_int32)24 TEST_AVAILABLE_SINCE(V1_2, equal_simple_int32, equal::CreateModel_int32)
25
26 TEST_F(GeneratedTests, equal_simple_float16) {
27 execute(equal::CreateModel_float16,
28 equal::is_ignored_float16,
29 equal::get_examples_simple_float16());
30 }
TEST_AVAILABLE_SINCE(V1_2,equal_simple_float16,equal::CreateModel_float16)31 TEST_AVAILABLE_SINCE(V1_2, equal_simple_float16, equal::CreateModel_float16)
32
33 TEST_F(GeneratedTests, equal_simple_relaxed) {
34 execute(equal::CreateModel_relaxed,
35 equal::is_ignored_relaxed,
36 equal::get_examples_simple_relaxed());
37 }
38
TEST_F(DynamicOutputShapeTest,equal_simple_dynamic_output_shape)39 TEST_F(DynamicOutputShapeTest, equal_simple_dynamic_output_shape) {
40 execute(equal::CreateModel_dynamic_output_shape,
41 equal::is_ignored_dynamic_output_shape,
42 equal::get_examples_simple_dynamic_output_shape());
43 }
44
TEST_F(DynamicOutputShapeTest,equal_simple_dynamic_output_shape_int32)45 TEST_F(DynamicOutputShapeTest, equal_simple_dynamic_output_shape_int32) {
46 execute(equal::CreateModel_dynamic_output_shape_int32,
47 equal::is_ignored_dynamic_output_shape_int32,
48 equal::get_examples_simple_dynamic_output_shape_int32());
49 }
50
TEST_F(DynamicOutputShapeTest,equal_simple_dynamic_output_shape_float16)51 TEST_F(DynamicOutputShapeTest, equal_simple_dynamic_output_shape_float16) {
52 execute(equal::CreateModel_dynamic_output_shape_float16,
53 equal::is_ignored_dynamic_output_shape_float16,
54 equal::get_examples_simple_dynamic_output_shape_float16());
55 }
56
TEST_F(DynamicOutputShapeTest,equal_simple_dynamic_output_shape_relaxed)57 TEST_F(DynamicOutputShapeTest, equal_simple_dynamic_output_shape_relaxed) {
58 execute(equal::CreateModel_dynamic_output_shape_relaxed,
59 equal::is_ignored_dynamic_output_shape_relaxed,
60 equal::get_examples_simple_dynamic_output_shape_relaxed());
61 }
62
TEST_F(GeneratedTests,equal_broadcast)63 TEST_F(GeneratedTests, equal_broadcast) {
64 execute(equal::CreateModel_2,
65 equal::is_ignored_2,
66 equal::get_examples_broadcast());
67 }
TEST_AVAILABLE_SINCE(V1_2,equal_broadcast,equal::CreateModel_2)68 TEST_AVAILABLE_SINCE(V1_2, equal_broadcast, equal::CreateModel_2)
69
70 TEST_F(GeneratedTests, equal_broadcast_int32) {
71 execute(equal::CreateModel_int32_2,
72 equal::is_ignored_int32_2,
73 equal::get_examples_broadcast_int32());
74 }
TEST_AVAILABLE_SINCE(V1_2,equal_broadcast_int32,equal::CreateModel_int32_2)75 TEST_AVAILABLE_SINCE(V1_2, equal_broadcast_int32, equal::CreateModel_int32_2)
76
77 TEST_F(GeneratedTests, equal_broadcast_float16) {
78 execute(equal::CreateModel_float16_2,
79 equal::is_ignored_float16_2,
80 equal::get_examples_broadcast_float16());
81 }
TEST_AVAILABLE_SINCE(V1_2,equal_broadcast_float16,equal::CreateModel_float16_2)82 TEST_AVAILABLE_SINCE(V1_2, equal_broadcast_float16, equal::CreateModel_float16_2)
83
84 TEST_F(GeneratedTests, equal_broadcast_relaxed) {
85 execute(equal::CreateModel_relaxed_2,
86 equal::is_ignored_relaxed_2,
87 equal::get_examples_broadcast_relaxed());
88 }
89
TEST_F(DynamicOutputShapeTest,equal_broadcast_dynamic_output_shape)90 TEST_F(DynamicOutputShapeTest, equal_broadcast_dynamic_output_shape) {
91 execute(equal::CreateModel_dynamic_output_shape_2,
92 equal::is_ignored_dynamic_output_shape_2,
93 equal::get_examples_broadcast_dynamic_output_shape());
94 }
95
TEST_F(DynamicOutputShapeTest,equal_broadcast_dynamic_output_shape_int32)96 TEST_F(DynamicOutputShapeTest, equal_broadcast_dynamic_output_shape_int32) {
97 execute(equal::CreateModel_dynamic_output_shape_int32_2,
98 equal::is_ignored_dynamic_output_shape_int32_2,
99 equal::get_examples_broadcast_dynamic_output_shape_int32());
100 }
101
TEST_F(DynamicOutputShapeTest,equal_broadcast_dynamic_output_shape_float16)102 TEST_F(DynamicOutputShapeTest, equal_broadcast_dynamic_output_shape_float16) {
103 execute(equal::CreateModel_dynamic_output_shape_float16_2,
104 equal::is_ignored_dynamic_output_shape_float16_2,
105 equal::get_examples_broadcast_dynamic_output_shape_float16());
106 }
107
TEST_F(DynamicOutputShapeTest,equal_broadcast_dynamic_output_shape_relaxed)108 TEST_F(DynamicOutputShapeTest, equal_broadcast_dynamic_output_shape_relaxed) {
109 execute(equal::CreateModel_dynamic_output_shape_relaxed_2,
110 equal::is_ignored_dynamic_output_shape_relaxed_2,
111 equal::get_examples_broadcast_dynamic_output_shape_relaxed());
112 }
113
TEST_F(GeneratedTests,equal_quantized_different_scale)114 TEST_F(GeneratedTests, equal_quantized_different_scale) {
115 execute(equal::CreateModel_3,
116 equal::is_ignored_3,
117 equal::get_examples_quantized_different_scale());
118 }
TEST_AVAILABLE_SINCE(V1_2,equal_quantized_different_scale,equal::CreateModel_3)119 TEST_AVAILABLE_SINCE(V1_2, equal_quantized_different_scale, equal::CreateModel_3)
120
121 TEST_F(DynamicOutputShapeTest, equal_quantized_different_scale_dynamic_output_shape) {
122 execute(equal::CreateModel_dynamic_output_shape_3,
123 equal::is_ignored_dynamic_output_shape_3,
124 equal::get_examples_quantized_different_scale_dynamic_output_shape());
125 }
126
TEST_F(GeneratedTests,equal_quantized_different_zero_point)127 TEST_F(GeneratedTests, equal_quantized_different_zero_point) {
128 execute(equal::CreateModel_4,
129 equal::is_ignored_4,
130 equal::get_examples_quantized_different_zero_point());
131 }
TEST_AVAILABLE_SINCE(V1_2,equal_quantized_different_zero_point,equal::CreateModel_4)132 TEST_AVAILABLE_SINCE(V1_2, equal_quantized_different_zero_point, equal::CreateModel_4)
133
134 TEST_F(DynamicOutputShapeTest, equal_quantized_different_zero_point_dynamic_output_shape) {
135 execute(equal::CreateModel_dynamic_output_shape_4,
136 equal::is_ignored_dynamic_output_shape_4,
137 equal::get_examples_quantized_different_zero_point_dynamic_output_shape());
138 }
139
TEST_F(GeneratedTests,equal_quantized_overflow_second_input_if_requantized)140 TEST_F(GeneratedTests, equal_quantized_overflow_second_input_if_requantized) {
141 execute(equal::CreateModel_5,
142 equal::is_ignored_5,
143 equal::get_examples_quantized_overflow_second_input_if_requantized());
144 }
TEST_AVAILABLE_SINCE(V1_2,equal_quantized_overflow_second_input_if_requantized,equal::CreateModel_5)145 TEST_AVAILABLE_SINCE(V1_2, equal_quantized_overflow_second_input_if_requantized, equal::CreateModel_5)
146
147 TEST_F(DynamicOutputShapeTest, equal_quantized_overflow_second_input_if_requantized_dynamic_output_shape) {
148 execute(equal::CreateModel_dynamic_output_shape_5,
149 equal::is_ignored_dynamic_output_shape_5,
150 equal::get_examples_quantized_overflow_second_input_if_requantized_dynamic_output_shape());
151 }
152
TEST_F(GeneratedTests,equal_quantized_overflow_first_input_if_requantized)153 TEST_F(GeneratedTests, equal_quantized_overflow_first_input_if_requantized) {
154 execute(equal::CreateModel_6,
155 equal::is_ignored_6,
156 equal::get_examples_quantized_overflow_first_input_if_requantized());
157 }
TEST_AVAILABLE_SINCE(V1_2,equal_quantized_overflow_first_input_if_requantized,equal::CreateModel_6)158 TEST_AVAILABLE_SINCE(V1_2, equal_quantized_overflow_first_input_if_requantized, equal::CreateModel_6)
159
160 TEST_F(DynamicOutputShapeTest, equal_quantized_overflow_first_input_if_requantized_dynamic_output_shape) {
161 execute(equal::CreateModel_dynamic_output_shape_6,
162 equal::is_ignored_dynamic_output_shape_6,
163 equal::get_examples_quantized_overflow_first_input_if_requantized_dynamic_output_shape());
164 }
165
TEST_F(GeneratedTests,equal_boolean)166 TEST_F(GeneratedTests, equal_boolean) {
167 execute(equal::CreateModel_7,
168 equal::is_ignored_7,
169 equal::get_examples_boolean());
170 }
TEST_AVAILABLE_SINCE(V1_2,equal_boolean,equal::CreateModel_7)171 TEST_AVAILABLE_SINCE(V1_2, equal_boolean, equal::CreateModel_7)
172
173 TEST_F(DynamicOutputShapeTest, equal_boolean_dynamic_output_shape) {
174 execute(equal::CreateModel_dynamic_output_shape_7,
175 equal::is_ignored_dynamic_output_shape_7,
176 equal::get_examples_boolean_dynamic_output_shape());
177 }
178
179