1 // clang-format off
2 // Generated file (from: bidirectional_sequence_rnn.mod.py). Do not edit
3 #include "../../TestGenerated.h"
4
5 namespace bidirectional_sequence_rnn {
6 // Generated bidirectional_sequence_rnn test
7 #include "generated/examples/bidirectional_sequence_rnn.example.cpp"
8 // Generated model constructor
9 #include "generated/models/bidirectional_sequence_rnn.model.cpp"
10 } // namespace bidirectional_sequence_rnn
11
TEST_F(GeneratedTests,bidirectional_sequence_rnn_blackbox)12 TEST_F(GeneratedTests, bidirectional_sequence_rnn_blackbox) {
13 execute(bidirectional_sequence_rnn::CreateModel,
14 bidirectional_sequence_rnn::is_ignored,
15 bidirectional_sequence_rnn::get_examples_blackbox());
16 }
TEST_AVAILABLE_SINCE(V1_2,bidirectional_sequence_rnn_blackbox,bidirectional_sequence_rnn::CreateModel)17 TEST_AVAILABLE_SINCE(V1_2, bidirectional_sequence_rnn_blackbox, bidirectional_sequence_rnn::CreateModel)
18
19 TEST_F(GeneratedTests, bidirectional_sequence_rnn_blackbox_relaxed) {
20 execute(bidirectional_sequence_rnn::CreateModel_relaxed,
21 bidirectional_sequence_rnn::is_ignored_relaxed,
22 bidirectional_sequence_rnn::get_examples_blackbox_relaxed());
23 }
24
TEST_F(GeneratedTests,bidirectional_sequence_rnn_blackbox_float16)25 TEST_F(GeneratedTests, bidirectional_sequence_rnn_blackbox_float16) {
26 execute(bidirectional_sequence_rnn::CreateModel_float16,
27 bidirectional_sequence_rnn::is_ignored_float16,
28 bidirectional_sequence_rnn::get_examples_blackbox_float16());
29 }
TEST_AVAILABLE_SINCE(V1_2,bidirectional_sequence_rnn_blackbox_float16,bidirectional_sequence_rnn::CreateModel_float16)30 TEST_AVAILABLE_SINCE(V1_2, bidirectional_sequence_rnn_blackbox_float16, bidirectional_sequence_rnn::CreateModel_float16)
31
32 TEST_F(DynamicOutputShapeTest, bidirectional_sequence_rnn_blackbox_dynamic_output_shape) {
33 execute(bidirectional_sequence_rnn::CreateModel_dynamic_output_shape,
34 bidirectional_sequence_rnn::is_ignored_dynamic_output_shape,
35 bidirectional_sequence_rnn::get_examples_blackbox_dynamic_output_shape());
36 }
37
TEST_F(DynamicOutputShapeTest,bidirectional_sequence_rnn_blackbox_dynamic_output_shape_relaxed)38 TEST_F(DynamicOutputShapeTest, bidirectional_sequence_rnn_blackbox_dynamic_output_shape_relaxed) {
39 execute(bidirectional_sequence_rnn::CreateModel_dynamic_output_shape_relaxed,
40 bidirectional_sequence_rnn::is_ignored_dynamic_output_shape_relaxed,
41 bidirectional_sequence_rnn::get_examples_blackbox_dynamic_output_shape_relaxed());
42 }
43
TEST_F(DynamicOutputShapeTest,bidirectional_sequence_rnn_blackbox_dynamic_output_shape_float16)44 TEST_F(DynamicOutputShapeTest, bidirectional_sequence_rnn_blackbox_dynamic_output_shape_float16) {
45 execute(bidirectional_sequence_rnn::CreateModel_dynamic_output_shape_float16,
46 bidirectional_sequence_rnn::is_ignored_dynamic_output_shape_float16,
47 bidirectional_sequence_rnn::get_examples_blackbox_dynamic_output_shape_float16());
48 }
49
TEST_F(GeneratedTests,bidirectional_sequence_rnn_blackbox_time_major)50 TEST_F(GeneratedTests, bidirectional_sequence_rnn_blackbox_time_major) {
51 execute(bidirectional_sequence_rnn::CreateModel_2,
52 bidirectional_sequence_rnn::is_ignored_2,
53 bidirectional_sequence_rnn::get_examples_blackbox_time_major());
54 }
TEST_AVAILABLE_SINCE(V1_2,bidirectional_sequence_rnn_blackbox_time_major,bidirectional_sequence_rnn::CreateModel_2)55 TEST_AVAILABLE_SINCE(V1_2, bidirectional_sequence_rnn_blackbox_time_major, bidirectional_sequence_rnn::CreateModel_2)
56
57 TEST_F(GeneratedTests, bidirectional_sequence_rnn_blackbox_time_major_relaxed) {
58 execute(bidirectional_sequence_rnn::CreateModel_relaxed_2,
59 bidirectional_sequence_rnn::is_ignored_relaxed_2,
60 bidirectional_sequence_rnn::get_examples_blackbox_time_major_relaxed());
61 }
62
TEST_F(GeneratedTests,bidirectional_sequence_rnn_blackbox_time_major_float16)63 TEST_F(GeneratedTests, bidirectional_sequence_rnn_blackbox_time_major_float16) {
64 execute(bidirectional_sequence_rnn::CreateModel_float16_2,
65 bidirectional_sequence_rnn::is_ignored_float16_2,
66 bidirectional_sequence_rnn::get_examples_blackbox_time_major_float16());
67 }
TEST_AVAILABLE_SINCE(V1_2,bidirectional_sequence_rnn_blackbox_time_major_float16,bidirectional_sequence_rnn::CreateModel_float16_2)68 TEST_AVAILABLE_SINCE(V1_2, bidirectional_sequence_rnn_blackbox_time_major_float16, bidirectional_sequence_rnn::CreateModel_float16_2)
69
70 TEST_F(DynamicOutputShapeTest, bidirectional_sequence_rnn_blackbox_time_major_dynamic_output_shape) {
71 execute(bidirectional_sequence_rnn::CreateModel_dynamic_output_shape_2,
72 bidirectional_sequence_rnn::is_ignored_dynamic_output_shape_2,
73 bidirectional_sequence_rnn::get_examples_blackbox_time_major_dynamic_output_shape());
74 }
75
TEST_F(DynamicOutputShapeTest,bidirectional_sequence_rnn_blackbox_time_major_dynamic_output_shape_relaxed)76 TEST_F(DynamicOutputShapeTest, bidirectional_sequence_rnn_blackbox_time_major_dynamic_output_shape_relaxed) {
77 execute(bidirectional_sequence_rnn::CreateModel_dynamic_output_shape_relaxed_2,
78 bidirectional_sequence_rnn::is_ignored_dynamic_output_shape_relaxed_2,
79 bidirectional_sequence_rnn::get_examples_blackbox_time_major_dynamic_output_shape_relaxed());
80 }
81
TEST_F(DynamicOutputShapeTest,bidirectional_sequence_rnn_blackbox_time_major_dynamic_output_shape_float16)82 TEST_F(DynamicOutputShapeTest, bidirectional_sequence_rnn_blackbox_time_major_dynamic_output_shape_float16) {
83 execute(bidirectional_sequence_rnn::CreateModel_dynamic_output_shape_float16_2,
84 bidirectional_sequence_rnn::is_ignored_dynamic_output_shape_float16_2,
85 bidirectional_sequence_rnn::get_examples_blackbox_time_major_dynamic_output_shape_float16());
86 }
87
TEST_F(GeneratedTests,bidirectional_sequence_rnn_blackbox_time_major_merge_outputs)88 TEST_F(GeneratedTests, bidirectional_sequence_rnn_blackbox_time_major_merge_outputs) {
89 execute(bidirectional_sequence_rnn::CreateModel_3,
90 bidirectional_sequence_rnn::is_ignored_3,
91 bidirectional_sequence_rnn::get_examples_blackbox_time_major_merge_outputs());
92 }
TEST_AVAILABLE_SINCE(V1_2,bidirectional_sequence_rnn_blackbox_time_major_merge_outputs,bidirectional_sequence_rnn::CreateModel_3)93 TEST_AVAILABLE_SINCE(V1_2, bidirectional_sequence_rnn_blackbox_time_major_merge_outputs, bidirectional_sequence_rnn::CreateModel_3)
94
95 TEST_F(GeneratedTests, bidirectional_sequence_rnn_blackbox_time_major_merge_outputs_relaxed) {
96 execute(bidirectional_sequence_rnn::CreateModel_relaxed_3,
97 bidirectional_sequence_rnn::is_ignored_relaxed_3,
98 bidirectional_sequence_rnn::get_examples_blackbox_time_major_merge_outputs_relaxed());
99 }
100
TEST_F(GeneratedTests,bidirectional_sequence_rnn_blackbox_time_major_merge_outputs_float16)101 TEST_F(GeneratedTests, bidirectional_sequence_rnn_blackbox_time_major_merge_outputs_float16) {
102 execute(bidirectional_sequence_rnn::CreateModel_float16_3,
103 bidirectional_sequence_rnn::is_ignored_float16_3,
104 bidirectional_sequence_rnn::get_examples_blackbox_time_major_merge_outputs_float16());
105 }
TEST_AVAILABLE_SINCE(V1_2,bidirectional_sequence_rnn_blackbox_time_major_merge_outputs_float16,bidirectional_sequence_rnn::CreateModel_float16_3)106 TEST_AVAILABLE_SINCE(V1_2, bidirectional_sequence_rnn_blackbox_time_major_merge_outputs_float16, bidirectional_sequence_rnn::CreateModel_float16_3)
107
108 TEST_F(DynamicOutputShapeTest, bidirectional_sequence_rnn_blackbox_time_major_merge_outputs_dynamic_output_shape) {
109 execute(bidirectional_sequence_rnn::CreateModel_dynamic_output_shape_3,
110 bidirectional_sequence_rnn::is_ignored_dynamic_output_shape_3,
111 bidirectional_sequence_rnn::get_examples_blackbox_time_major_merge_outputs_dynamic_output_shape());
112 }
113
TEST_F(DynamicOutputShapeTest,bidirectional_sequence_rnn_blackbox_time_major_merge_outputs_dynamic_output_shape_relaxed)114 TEST_F(DynamicOutputShapeTest, bidirectional_sequence_rnn_blackbox_time_major_merge_outputs_dynamic_output_shape_relaxed) {
115 execute(bidirectional_sequence_rnn::CreateModel_dynamic_output_shape_relaxed_3,
116 bidirectional_sequence_rnn::is_ignored_dynamic_output_shape_relaxed_3,
117 bidirectional_sequence_rnn::get_examples_blackbox_time_major_merge_outputs_dynamic_output_shape_relaxed());
118 }
119
TEST_F(DynamicOutputShapeTest,bidirectional_sequence_rnn_blackbox_time_major_merge_outputs_dynamic_output_shape_float16)120 TEST_F(DynamicOutputShapeTest, bidirectional_sequence_rnn_blackbox_time_major_merge_outputs_dynamic_output_shape_float16) {
121 execute(bidirectional_sequence_rnn::CreateModel_dynamic_output_shape_float16_3,
122 bidirectional_sequence_rnn::is_ignored_dynamic_output_shape_float16_3,
123 bidirectional_sequence_rnn::get_examples_blackbox_time_major_merge_outputs_dynamic_output_shape_float16());
124 }
125
TEST_F(GeneratedTests,bidirectional_sequence_rnn_blackbox_reversed_inputs)126 TEST_F(GeneratedTests, bidirectional_sequence_rnn_blackbox_reversed_inputs) {
127 execute(bidirectional_sequence_rnn::CreateModel_4,
128 bidirectional_sequence_rnn::is_ignored_4,
129 bidirectional_sequence_rnn::get_examples_blackbox_reversed_inputs());
130 }
TEST_AVAILABLE_SINCE(V1_2,bidirectional_sequence_rnn_blackbox_reversed_inputs,bidirectional_sequence_rnn::CreateModel_4)131 TEST_AVAILABLE_SINCE(V1_2, bidirectional_sequence_rnn_blackbox_reversed_inputs, bidirectional_sequence_rnn::CreateModel_4)
132
133 TEST_F(GeneratedTests, bidirectional_sequence_rnn_blackbox_reversed_inputs_relaxed) {
134 execute(bidirectional_sequence_rnn::CreateModel_relaxed_4,
135 bidirectional_sequence_rnn::is_ignored_relaxed_4,
136 bidirectional_sequence_rnn::get_examples_blackbox_reversed_inputs_relaxed());
137 }
138
TEST_F(GeneratedTests,bidirectional_sequence_rnn_blackbox_reversed_inputs_float16)139 TEST_F(GeneratedTests, bidirectional_sequence_rnn_blackbox_reversed_inputs_float16) {
140 execute(bidirectional_sequence_rnn::CreateModel_float16_4,
141 bidirectional_sequence_rnn::is_ignored_float16_4,
142 bidirectional_sequence_rnn::get_examples_blackbox_reversed_inputs_float16());
143 }
TEST_AVAILABLE_SINCE(V1_2,bidirectional_sequence_rnn_blackbox_reversed_inputs_float16,bidirectional_sequence_rnn::CreateModel_float16_4)144 TEST_AVAILABLE_SINCE(V1_2, bidirectional_sequence_rnn_blackbox_reversed_inputs_float16, bidirectional_sequence_rnn::CreateModel_float16_4)
145
146 TEST_F(DynamicOutputShapeTest, bidirectional_sequence_rnn_blackbox_reversed_inputs_dynamic_output_shape) {
147 execute(bidirectional_sequence_rnn::CreateModel_dynamic_output_shape_4,
148 bidirectional_sequence_rnn::is_ignored_dynamic_output_shape_4,
149 bidirectional_sequence_rnn::get_examples_blackbox_reversed_inputs_dynamic_output_shape());
150 }
151
TEST_F(DynamicOutputShapeTest,bidirectional_sequence_rnn_blackbox_reversed_inputs_dynamic_output_shape_relaxed)152 TEST_F(DynamicOutputShapeTest, bidirectional_sequence_rnn_blackbox_reversed_inputs_dynamic_output_shape_relaxed) {
153 execute(bidirectional_sequence_rnn::CreateModel_dynamic_output_shape_relaxed_4,
154 bidirectional_sequence_rnn::is_ignored_dynamic_output_shape_relaxed_4,
155 bidirectional_sequence_rnn::get_examples_blackbox_reversed_inputs_dynamic_output_shape_relaxed());
156 }
157
TEST_F(DynamicOutputShapeTest,bidirectional_sequence_rnn_blackbox_reversed_inputs_dynamic_output_shape_float16)158 TEST_F(DynamicOutputShapeTest, bidirectional_sequence_rnn_blackbox_reversed_inputs_dynamic_output_shape_float16) {
159 execute(bidirectional_sequence_rnn::CreateModel_dynamic_output_shape_float16_4,
160 bidirectional_sequence_rnn::is_ignored_dynamic_output_shape_float16_4,
161 bidirectional_sequence_rnn::get_examples_blackbox_reversed_inputs_dynamic_output_shape_float16());
162 }
163
TEST_F(GeneratedTests,bidirectional_sequence_rnn_blackbox_aux_input)164 TEST_F(GeneratedTests, bidirectional_sequence_rnn_blackbox_aux_input) {
165 execute(bidirectional_sequence_rnn::CreateModel_5,
166 bidirectional_sequence_rnn::is_ignored_5,
167 bidirectional_sequence_rnn::get_examples_blackbox_aux_input());
168 }
TEST_AVAILABLE_SINCE(V1_2,bidirectional_sequence_rnn_blackbox_aux_input,bidirectional_sequence_rnn::CreateModel_5)169 TEST_AVAILABLE_SINCE(V1_2, bidirectional_sequence_rnn_blackbox_aux_input, bidirectional_sequence_rnn::CreateModel_5)
170
171 TEST_F(GeneratedTests, bidirectional_sequence_rnn_blackbox_aux_input_relaxed) {
172 execute(bidirectional_sequence_rnn::CreateModel_relaxed_5,
173 bidirectional_sequence_rnn::is_ignored_relaxed_5,
174 bidirectional_sequence_rnn::get_examples_blackbox_aux_input_relaxed());
175 }
176
TEST_F(GeneratedTests,bidirectional_sequence_rnn_blackbox_aux_input_float16)177 TEST_F(GeneratedTests, bidirectional_sequence_rnn_blackbox_aux_input_float16) {
178 execute(bidirectional_sequence_rnn::CreateModel_float16_5,
179 bidirectional_sequence_rnn::is_ignored_float16_5,
180 bidirectional_sequence_rnn::get_examples_blackbox_aux_input_float16());
181 }
TEST_AVAILABLE_SINCE(V1_2,bidirectional_sequence_rnn_blackbox_aux_input_float16,bidirectional_sequence_rnn::CreateModel_float16_5)182 TEST_AVAILABLE_SINCE(V1_2, bidirectional_sequence_rnn_blackbox_aux_input_float16, bidirectional_sequence_rnn::CreateModel_float16_5)
183
184 TEST_F(DynamicOutputShapeTest, bidirectional_sequence_rnn_blackbox_aux_input_dynamic_output_shape) {
185 execute(bidirectional_sequence_rnn::CreateModel_dynamic_output_shape_5,
186 bidirectional_sequence_rnn::is_ignored_dynamic_output_shape_5,
187 bidirectional_sequence_rnn::get_examples_blackbox_aux_input_dynamic_output_shape());
188 }
189
TEST_F(DynamicOutputShapeTest,bidirectional_sequence_rnn_blackbox_aux_input_dynamic_output_shape_relaxed)190 TEST_F(DynamicOutputShapeTest, bidirectional_sequence_rnn_blackbox_aux_input_dynamic_output_shape_relaxed) {
191 execute(bidirectional_sequence_rnn::CreateModel_dynamic_output_shape_relaxed_5,
192 bidirectional_sequence_rnn::is_ignored_dynamic_output_shape_relaxed_5,
193 bidirectional_sequence_rnn::get_examples_blackbox_aux_input_dynamic_output_shape_relaxed());
194 }
195
TEST_F(DynamicOutputShapeTest,bidirectional_sequence_rnn_blackbox_aux_input_dynamic_output_shape_float16)196 TEST_F(DynamicOutputShapeTest, bidirectional_sequence_rnn_blackbox_aux_input_dynamic_output_shape_float16) {
197 execute(bidirectional_sequence_rnn::CreateModel_dynamic_output_shape_float16_5,
198 bidirectional_sequence_rnn::is_ignored_dynamic_output_shape_float16_5,
199 bidirectional_sequence_rnn::get_examples_blackbox_aux_input_dynamic_output_shape_float16());
200 }
201
TEST_F(GeneratedTests,bidirectional_sequence_rnn_blackbox_regular_and_aux_input)202 TEST_F(GeneratedTests, bidirectional_sequence_rnn_blackbox_regular_and_aux_input) {
203 execute(bidirectional_sequence_rnn::CreateModel_6,
204 bidirectional_sequence_rnn::is_ignored_6,
205 bidirectional_sequence_rnn::get_examples_blackbox_regular_and_aux_input());
206 }
TEST_AVAILABLE_SINCE(V1_2,bidirectional_sequence_rnn_blackbox_regular_and_aux_input,bidirectional_sequence_rnn::CreateModel_6)207 TEST_AVAILABLE_SINCE(V1_2, bidirectional_sequence_rnn_blackbox_regular_and_aux_input, bidirectional_sequence_rnn::CreateModel_6)
208
209 TEST_F(GeneratedTests, bidirectional_sequence_rnn_blackbox_regular_and_aux_input_relaxed) {
210 execute(bidirectional_sequence_rnn::CreateModel_relaxed_6,
211 bidirectional_sequence_rnn::is_ignored_relaxed_6,
212 bidirectional_sequence_rnn::get_examples_blackbox_regular_and_aux_input_relaxed());
213 }
214
TEST_F(GeneratedTests,bidirectional_sequence_rnn_blackbox_regular_and_aux_input_float16)215 TEST_F(GeneratedTests, bidirectional_sequence_rnn_blackbox_regular_and_aux_input_float16) {
216 execute(bidirectional_sequence_rnn::CreateModel_float16_6,
217 bidirectional_sequence_rnn::is_ignored_float16_6,
218 bidirectional_sequence_rnn::get_examples_blackbox_regular_and_aux_input_float16());
219 }
TEST_AVAILABLE_SINCE(V1_2,bidirectional_sequence_rnn_blackbox_regular_and_aux_input_float16,bidirectional_sequence_rnn::CreateModel_float16_6)220 TEST_AVAILABLE_SINCE(V1_2, bidirectional_sequence_rnn_blackbox_regular_and_aux_input_float16, bidirectional_sequence_rnn::CreateModel_float16_6)
221
222 TEST_F(DynamicOutputShapeTest, bidirectional_sequence_rnn_blackbox_regular_and_aux_input_dynamic_output_shape) {
223 execute(bidirectional_sequence_rnn::CreateModel_dynamic_output_shape_6,
224 bidirectional_sequence_rnn::is_ignored_dynamic_output_shape_6,
225 bidirectional_sequence_rnn::get_examples_blackbox_regular_and_aux_input_dynamic_output_shape());
226 }
227
TEST_F(DynamicOutputShapeTest,bidirectional_sequence_rnn_blackbox_regular_and_aux_input_dynamic_output_shape_relaxed)228 TEST_F(DynamicOutputShapeTest, bidirectional_sequence_rnn_blackbox_regular_and_aux_input_dynamic_output_shape_relaxed) {
229 execute(bidirectional_sequence_rnn::CreateModel_dynamic_output_shape_relaxed_6,
230 bidirectional_sequence_rnn::is_ignored_dynamic_output_shape_relaxed_6,
231 bidirectional_sequence_rnn::get_examples_blackbox_regular_and_aux_input_dynamic_output_shape_relaxed());
232 }
233
TEST_F(DynamicOutputShapeTest,bidirectional_sequence_rnn_blackbox_regular_and_aux_input_dynamic_output_shape_float16)234 TEST_F(DynamicOutputShapeTest, bidirectional_sequence_rnn_blackbox_regular_and_aux_input_dynamic_output_shape_float16) {
235 execute(bidirectional_sequence_rnn::CreateModel_dynamic_output_shape_float16_6,
236 bidirectional_sequence_rnn::is_ignored_dynamic_output_shape_float16_6,
237 bidirectional_sequence_rnn::get_examples_blackbox_regular_and_aux_input_dynamic_output_shape_float16());
238 }
239
240