1 // clang-format off
2 // Generated file (from: fully_connected_v1_2.mod.py). Do not edit
3 #include "../../TestGenerated.h"
4 
5 namespace fully_connected_v1_2 {
6 // Generated fully_connected_v1_2 test
7 #include "generated/examples/fully_connected_v1_2.example.cpp"
8 // Generated model constructor
9 #include "generated/models/fully_connected_v1_2.model.cpp"
10 } // namespace fully_connected_v1_2
11 
TEST_F(GeneratedTests,fully_connected_v1_2)12 TEST_F(GeneratedTests, fully_connected_v1_2) {
13     execute(fully_connected_v1_2::CreateModel,
14             fully_connected_v1_2::is_ignored,
15             fully_connected_v1_2::get_examples());
16 }
TEST_AVAILABLE_SINCE(V1_0,fully_connected_v1_2,fully_connected_v1_2::CreateModel)17 TEST_AVAILABLE_SINCE(V1_0, fully_connected_v1_2, fully_connected_v1_2::CreateModel)
18 
19 TEST_F(GeneratedTests, fully_connected_v1_2_relaxed) {
20     execute(fully_connected_v1_2::CreateModel_relaxed,
21             fully_connected_v1_2::is_ignored_relaxed,
22             fully_connected_v1_2::get_examples_relaxed());
23 }
24 
TEST_F(GeneratedTests,fully_connected_v1_2_float16)25 TEST_F(GeneratedTests, fully_connected_v1_2_float16) {
26     execute(fully_connected_v1_2::CreateModel_float16,
27             fully_connected_v1_2::is_ignored_float16,
28             fully_connected_v1_2::get_examples_float16());
29 }
TEST_AVAILABLE_SINCE(V1_2,fully_connected_v1_2_float16,fully_connected_v1_2::CreateModel_float16)30 TEST_AVAILABLE_SINCE(V1_2, fully_connected_v1_2_float16, fully_connected_v1_2::CreateModel_float16)
31 
32 TEST_F(GeneratedTests, fully_connected_v1_2_quant8_mult_gt_1) {
33     execute(fully_connected_v1_2::CreateModel_quant8_mult_gt_1,
34             fully_connected_v1_2::is_ignored_quant8_mult_gt_1,
35             fully_connected_v1_2::get_examples_quant8_mult_gt_1());
36 }
TEST_AVAILABLE_SINCE(V1_2,fully_connected_v1_2_quant8_mult_gt_1,fully_connected_v1_2::CreateModel_quant8_mult_gt_1)37 TEST_AVAILABLE_SINCE(V1_2, fully_connected_v1_2_quant8_mult_gt_1, fully_connected_v1_2::CreateModel_quant8_mult_gt_1)
38 
39 TEST_F(DynamicOutputShapeTest, fully_connected_v1_2_dynamic_output_shape) {
40     execute(fully_connected_v1_2::CreateModel_dynamic_output_shape,
41             fully_connected_v1_2::is_ignored_dynamic_output_shape,
42             fully_connected_v1_2::get_examples_dynamic_output_shape());
43 }
44 
TEST_F(DynamicOutputShapeTest,fully_connected_v1_2_dynamic_output_shape_relaxed)45 TEST_F(DynamicOutputShapeTest, fully_connected_v1_2_dynamic_output_shape_relaxed) {
46     execute(fully_connected_v1_2::CreateModel_dynamic_output_shape_relaxed,
47             fully_connected_v1_2::is_ignored_dynamic_output_shape_relaxed,
48             fully_connected_v1_2::get_examples_dynamic_output_shape_relaxed());
49 }
50 
TEST_F(DynamicOutputShapeTest,fully_connected_v1_2_dynamic_output_shape_float16)51 TEST_F(DynamicOutputShapeTest, fully_connected_v1_2_dynamic_output_shape_float16) {
52     execute(fully_connected_v1_2::CreateModel_dynamic_output_shape_float16,
53             fully_connected_v1_2::is_ignored_dynamic_output_shape_float16,
54             fully_connected_v1_2::get_examples_dynamic_output_shape_float16());
55 }
56 
TEST_F(DynamicOutputShapeTest,fully_connected_v1_2_dynamic_output_shape_quant8_mult_gt_1)57 TEST_F(DynamicOutputShapeTest, fully_connected_v1_2_dynamic_output_shape_quant8_mult_gt_1) {
58     execute(fully_connected_v1_2::CreateModel_dynamic_output_shape_quant8_mult_gt_1,
59             fully_connected_v1_2::is_ignored_dynamic_output_shape_quant8_mult_gt_1,
60             fully_connected_v1_2::get_examples_dynamic_output_shape_quant8_mult_gt_1());
61 }
62 
TEST_F(GeneratedTests,fully_connected_v1_2_zero_sized_nhwc)63 TEST_F(GeneratedTests, fully_connected_v1_2_zero_sized_nhwc) {
64     execute(fully_connected_v1_2::CreateModel_zero_sized_nhwc,
65             fully_connected_v1_2::is_ignored_zero_sized_nhwc,
66             fully_connected_v1_2::get_examples_zero_sized_nhwc());
67 }
TEST_AVAILABLE_SINCE(V1_2,fully_connected_v1_2_zero_sized_nhwc,fully_connected_v1_2::CreateModel_zero_sized_nhwc)68 TEST_AVAILABLE_SINCE(V1_2, fully_connected_v1_2_zero_sized_nhwc, fully_connected_v1_2::CreateModel_zero_sized_nhwc)
69 
70 TEST_F(GeneratedTests, fully_connected_v1_2_zero_sized_nhwc_relaxed) {
71     execute(fully_connected_v1_2::CreateModel_zero_sized_nhwc_relaxed,
72             fully_connected_v1_2::is_ignored_zero_sized_nhwc_relaxed,
73             fully_connected_v1_2::get_examples_zero_sized_nhwc_relaxed());
74 }
75 
TEST_F(GeneratedTests,fully_connected_v1_2_zero_sized_nhwc_quant8)76 TEST_F(GeneratedTests, fully_connected_v1_2_zero_sized_nhwc_quant8) {
77     execute(fully_connected_v1_2::CreateModel_zero_sized_nhwc_quant8,
78             fully_connected_v1_2::is_ignored_zero_sized_nhwc_quant8,
79             fully_connected_v1_2::get_examples_zero_sized_nhwc_quant8());
80 }
TEST_AVAILABLE_SINCE(V1_2,fully_connected_v1_2_zero_sized_nhwc_quant8,fully_connected_v1_2::CreateModel_zero_sized_nhwc_quant8)81 TEST_AVAILABLE_SINCE(V1_2, fully_connected_v1_2_zero_sized_nhwc_quant8, fully_connected_v1_2::CreateModel_zero_sized_nhwc_quant8)
82 
83 TEST_F(GeneratedTests, fully_connected_v1_2_zero_sized_nhwc_float16) {
84     execute(fully_connected_v1_2::CreateModel_zero_sized_nhwc_float16,
85             fully_connected_v1_2::is_ignored_zero_sized_nhwc_float16,
86             fully_connected_v1_2::get_examples_zero_sized_nhwc_float16());
87 }
TEST_AVAILABLE_SINCE(V1_2,fully_connected_v1_2_zero_sized_nhwc_float16,fully_connected_v1_2::CreateModel_zero_sized_nhwc_float16)88 TEST_AVAILABLE_SINCE(V1_2, fully_connected_v1_2_zero_sized_nhwc_float16, fully_connected_v1_2::CreateModel_zero_sized_nhwc_float16)
89 
90 TEST_F(GeneratedTests, fully_connected_v1_2_zero_sized_nchw) {
91     execute(fully_connected_v1_2::CreateModel_zero_sized_nchw,
92             fully_connected_v1_2::is_ignored_zero_sized_nchw,
93             fully_connected_v1_2::get_examples_zero_sized_nchw());
94 }
TEST_AVAILABLE_SINCE(V1_2,fully_connected_v1_2_zero_sized_nchw,fully_connected_v1_2::CreateModel_zero_sized_nchw)95 TEST_AVAILABLE_SINCE(V1_2, fully_connected_v1_2_zero_sized_nchw, fully_connected_v1_2::CreateModel_zero_sized_nchw)
96 
97 TEST_F(GeneratedTests, fully_connected_v1_2_zero_sized_nchw_relaxed) {
98     execute(fully_connected_v1_2::CreateModel_zero_sized_nchw_relaxed,
99             fully_connected_v1_2::is_ignored_zero_sized_nchw_relaxed,
100             fully_connected_v1_2::get_examples_zero_sized_nchw_relaxed());
101 }
102 
TEST_F(GeneratedTests,fully_connected_v1_2_zero_sized_nchw_quant8)103 TEST_F(GeneratedTests, fully_connected_v1_2_zero_sized_nchw_quant8) {
104     execute(fully_connected_v1_2::CreateModel_zero_sized_nchw_quant8,
105             fully_connected_v1_2::is_ignored_zero_sized_nchw_quant8,
106             fully_connected_v1_2::get_examples_zero_sized_nchw_quant8());
107 }
TEST_AVAILABLE_SINCE(V1_2,fully_connected_v1_2_zero_sized_nchw_quant8,fully_connected_v1_2::CreateModel_zero_sized_nchw_quant8)108 TEST_AVAILABLE_SINCE(V1_2, fully_connected_v1_2_zero_sized_nchw_quant8, fully_connected_v1_2::CreateModel_zero_sized_nchw_quant8)
109 
110 TEST_F(GeneratedTests, fully_connected_v1_2_zero_sized_nchw_float16) {
111     execute(fully_connected_v1_2::CreateModel_zero_sized_nchw_float16,
112             fully_connected_v1_2::is_ignored_zero_sized_nchw_float16,
113             fully_connected_v1_2::get_examples_zero_sized_nchw_float16());
114 }
TEST_AVAILABLE_SINCE(V1_2,fully_connected_v1_2_zero_sized_nchw_float16,fully_connected_v1_2::CreateModel_zero_sized_nchw_float16)115 TEST_AVAILABLE_SINCE(V1_2, fully_connected_v1_2_zero_sized_nchw_float16, fully_connected_v1_2::CreateModel_zero_sized_nchw_float16)
116 
117 TEST_F(DynamicOutputShapeTest, fully_connected_v1_2_zero_sized_dynamic_output_shape_nhwc) {
118     execute(fully_connected_v1_2::CreateModel_zero_sized_dynamic_output_shape_nhwc,
119             fully_connected_v1_2::is_ignored_zero_sized_dynamic_output_shape_nhwc,
120             fully_connected_v1_2::get_examples_zero_sized_dynamic_output_shape_nhwc());
121 }
122 
TEST_F(DynamicOutputShapeTest,fully_connected_v1_2_zero_sized_dynamic_output_shape_nhwc_relaxed)123 TEST_F(DynamicOutputShapeTest, fully_connected_v1_2_zero_sized_dynamic_output_shape_nhwc_relaxed) {
124     execute(fully_connected_v1_2::CreateModel_zero_sized_dynamic_output_shape_nhwc_relaxed,
125             fully_connected_v1_2::is_ignored_zero_sized_dynamic_output_shape_nhwc_relaxed,
126             fully_connected_v1_2::get_examples_zero_sized_dynamic_output_shape_nhwc_relaxed());
127 }
128 
TEST_F(DynamicOutputShapeTest,fully_connected_v1_2_zero_sized_dynamic_output_shape_nhwc_quant8)129 TEST_F(DynamicOutputShapeTest, fully_connected_v1_2_zero_sized_dynamic_output_shape_nhwc_quant8) {
130     execute(fully_connected_v1_2::CreateModel_zero_sized_dynamic_output_shape_nhwc_quant8,
131             fully_connected_v1_2::is_ignored_zero_sized_dynamic_output_shape_nhwc_quant8,
132             fully_connected_v1_2::get_examples_zero_sized_dynamic_output_shape_nhwc_quant8());
133 }
134 
TEST_F(DynamicOutputShapeTest,fully_connected_v1_2_zero_sized_dynamic_output_shape_nhwc_float16)135 TEST_F(DynamicOutputShapeTest, fully_connected_v1_2_zero_sized_dynamic_output_shape_nhwc_float16) {
136     execute(fully_connected_v1_2::CreateModel_zero_sized_dynamic_output_shape_nhwc_float16,
137             fully_connected_v1_2::is_ignored_zero_sized_dynamic_output_shape_nhwc_float16,
138             fully_connected_v1_2::get_examples_zero_sized_dynamic_output_shape_nhwc_float16());
139 }
140 
TEST_F(DynamicOutputShapeTest,fully_connected_v1_2_zero_sized_dynamic_output_shape_nchw)141 TEST_F(DynamicOutputShapeTest, fully_connected_v1_2_zero_sized_dynamic_output_shape_nchw) {
142     execute(fully_connected_v1_2::CreateModel_zero_sized_dynamic_output_shape_nchw,
143             fully_connected_v1_2::is_ignored_zero_sized_dynamic_output_shape_nchw,
144             fully_connected_v1_2::get_examples_zero_sized_dynamic_output_shape_nchw());
145 }
146 
TEST_F(DynamicOutputShapeTest,fully_connected_v1_2_zero_sized_dynamic_output_shape_nchw_relaxed)147 TEST_F(DynamicOutputShapeTest, fully_connected_v1_2_zero_sized_dynamic_output_shape_nchw_relaxed) {
148     execute(fully_connected_v1_2::CreateModel_zero_sized_dynamic_output_shape_nchw_relaxed,
149             fully_connected_v1_2::is_ignored_zero_sized_dynamic_output_shape_nchw_relaxed,
150             fully_connected_v1_2::get_examples_zero_sized_dynamic_output_shape_nchw_relaxed());
151 }
152 
TEST_F(DynamicOutputShapeTest,fully_connected_v1_2_zero_sized_dynamic_output_shape_nchw_quant8)153 TEST_F(DynamicOutputShapeTest, fully_connected_v1_2_zero_sized_dynamic_output_shape_nchw_quant8) {
154     execute(fully_connected_v1_2::CreateModel_zero_sized_dynamic_output_shape_nchw_quant8,
155             fully_connected_v1_2::is_ignored_zero_sized_dynamic_output_shape_nchw_quant8,
156             fully_connected_v1_2::get_examples_zero_sized_dynamic_output_shape_nchw_quant8());
157 }
158 
TEST_F(DynamicOutputShapeTest,fully_connected_v1_2_zero_sized_dynamic_output_shape_nchw_float16)159 TEST_F(DynamicOutputShapeTest, fully_connected_v1_2_zero_sized_dynamic_output_shape_nchw_float16) {
160     execute(fully_connected_v1_2::CreateModel_zero_sized_dynamic_output_shape_nchw_float16,
161             fully_connected_v1_2::is_ignored_zero_sized_dynamic_output_shape_nchw_float16,
162             fully_connected_v1_2::get_examples_zero_sized_dynamic_output_shape_nchw_float16());
163 }
164 
165