1 // clang-format off
2 // Generated file (from: quantize.mod.py). Do not edit
3 #include "../../TestGenerated.h"
4 
5 namespace quantize {
6 // Generated quantize test
7 #include "generated/examples/quantize.example.cpp"
8 // Generated model constructor
9 #include "generated/models/quantize.model.cpp"
10 } // namespace quantize
11 
TEST_F(GeneratedTests,quantize_quant8)12 TEST_F(GeneratedTests, quantize_quant8) {
13     execute(quantize::CreateModel_quant8,
14             quantize::is_ignored_quant8,
15             quantize::get_examples_quant8());
16 }
TEST_AVAILABLE_SINCE(V1_2,quantize_quant8,quantize::CreateModel_quant8)17 TEST_AVAILABLE_SINCE(V1_2, quantize_quant8, quantize::CreateModel_quant8)
18 
19 TEST_F(DynamicOutputShapeTest, quantize_dynamic_output_shape_quant8) {
20     execute(quantize::CreateModel_dynamic_output_shape_quant8,
21             quantize::is_ignored_dynamic_output_shape_quant8,
22             quantize::get_examples_dynamic_output_shape_quant8());
23 }
24 
TEST_F(GeneratedTests,quantize_quant8_2)25 TEST_F(GeneratedTests, quantize_quant8_2) {
26     execute(quantize::CreateModel_quant8_2,
27             quantize::is_ignored_quant8_2,
28             quantize::get_examples_quant8_2());
29 }
TEST_AVAILABLE_SINCE(V1_2,quantize_quant8_2,quantize::CreateModel_quant8_2)30 TEST_AVAILABLE_SINCE(V1_2, quantize_quant8_2, quantize::CreateModel_quant8_2)
31 
32 TEST_F(DynamicOutputShapeTest, quantize_dynamic_output_shape_quant8_2) {
33     execute(quantize::CreateModel_dynamic_output_shape_quant8_2,
34             quantize::is_ignored_dynamic_output_shape_quant8_2,
35             quantize::get_examples_dynamic_output_shape_quant8_2());
36 }
37 
TEST_F(GeneratedTests,quantize_quant8_3)38 TEST_F(GeneratedTests, quantize_quant8_3) {
39     execute(quantize::CreateModel_quant8_3,
40             quantize::is_ignored_quant8_3,
41             quantize::get_examples_quant8_3());
42 }
TEST_AVAILABLE_SINCE(V1_2,quantize_quant8_3,quantize::CreateModel_quant8_3)43 TEST_AVAILABLE_SINCE(V1_2, quantize_quant8_3, quantize::CreateModel_quant8_3)
44 
45 TEST_F(DynamicOutputShapeTest, quantize_dynamic_output_shape_quant8_3) {
46     execute(quantize::CreateModel_dynamic_output_shape_quant8_3,
47             quantize::is_ignored_dynamic_output_shape_quant8_3,
48             quantize::get_examples_dynamic_output_shape_quant8_3());
49 }
50 
TEST_F(GeneratedTests,quantize_quant8_4)51 TEST_F(GeneratedTests, quantize_quant8_4) {
52     execute(quantize::CreateModel_quant8_4,
53             quantize::is_ignored_quant8_4,
54             quantize::get_examples_quant8_4());
55 }
TEST_AVAILABLE_SINCE(V1_2,quantize_quant8_4,quantize::CreateModel_quant8_4)56 TEST_AVAILABLE_SINCE(V1_2, quantize_quant8_4, quantize::CreateModel_quant8_4)
57 
58 TEST_F(DynamicOutputShapeTest, quantize_dynamic_output_shape_quant8_4) {
59     execute(quantize::CreateModel_dynamic_output_shape_quant8_4,
60             quantize::is_ignored_dynamic_output_shape_quant8_4,
61             quantize::get_examples_dynamic_output_shape_quant8_4());
62 }
63 
TEST_F(GeneratedTests,quantize_quant8_5)64 TEST_F(GeneratedTests, quantize_quant8_5) {
65     execute(quantize::CreateModel_quant8_5,
66             quantize::is_ignored_quant8_5,
67             quantize::get_examples_quant8_5());
68 }
TEST_AVAILABLE_SINCE(V1_2,quantize_quant8_5,quantize::CreateModel_quant8_5)69 TEST_AVAILABLE_SINCE(V1_2, quantize_quant8_5, quantize::CreateModel_quant8_5)
70 
71 TEST_F(DynamicOutputShapeTest, quantize_dynamic_output_shape_quant8_5) {
72     execute(quantize::CreateModel_dynamic_output_shape_quant8_5,
73             quantize::is_ignored_dynamic_output_shape_quant8_5,
74             quantize::get_examples_dynamic_output_shape_quant8_5());
75 }
76 
TEST_F(GeneratedTests,quantize_quant8_6)77 TEST_F(GeneratedTests, quantize_quant8_6) {
78     execute(quantize::CreateModel_quant8_6,
79             quantize::is_ignored_quant8_6,
80             quantize::get_examples_quant8_6());
81 }
TEST_AVAILABLE_SINCE(V1_2,quantize_quant8_6,quantize::CreateModel_quant8_6)82 TEST_AVAILABLE_SINCE(V1_2, quantize_quant8_6, quantize::CreateModel_quant8_6)
83 
84 TEST_F(DynamicOutputShapeTest, quantize_dynamic_output_shape_quant8_6) {
85     execute(quantize::CreateModel_dynamic_output_shape_quant8_6,
86             quantize::is_ignored_dynamic_output_shape_quant8_6,
87             quantize::get_examples_dynamic_output_shape_quant8_6());
88 }
89 
TEST_F(GeneratedTests,quantize_quant8_7)90 TEST_F(GeneratedTests, quantize_quant8_7) {
91     execute(quantize::CreateModel_quant8_7,
92             quantize::is_ignored_quant8_7,
93             quantize::get_examples_quant8_7());
94 }
TEST_AVAILABLE_SINCE(V1_2,quantize_quant8_7,quantize::CreateModel_quant8_7)95 TEST_AVAILABLE_SINCE(V1_2, quantize_quant8_7, quantize::CreateModel_quant8_7)
96 
97 TEST_F(DynamicOutputShapeTest, quantize_dynamic_output_shape_quant8_7) {
98     execute(quantize::CreateModel_dynamic_output_shape_quant8_7,
99             quantize::is_ignored_dynamic_output_shape_quant8_7,
100             quantize::get_examples_dynamic_output_shape_quant8_7());
101 }
102 
TEST_F(GeneratedTests,quantize_quant8_8)103 TEST_F(GeneratedTests, quantize_quant8_8) {
104     execute(quantize::CreateModel_quant8_8,
105             quantize::is_ignored_quant8_8,
106             quantize::get_examples_quant8_8());
107 }
TEST_AVAILABLE_SINCE(V1_2,quantize_quant8_8,quantize::CreateModel_quant8_8)108 TEST_AVAILABLE_SINCE(V1_2, quantize_quant8_8, quantize::CreateModel_quant8_8)
109 
110 TEST_F(DynamicOutputShapeTest, quantize_dynamic_output_shape_quant8_8) {
111     execute(quantize::CreateModel_dynamic_output_shape_quant8_8,
112             quantize::is_ignored_dynamic_output_shape_quant8_8,
113             quantize::get_examples_dynamic_output_shape_quant8_8());
114 }
115 
TEST_F(GeneratedTests,quantize_zero_sized)116 TEST_F(GeneratedTests, quantize_zero_sized) {
117     execute(quantize::CreateModel_zero_sized,
118             quantize::is_ignored_zero_sized,
119             quantize::get_examples_zero_sized());
120 }
TEST_AVAILABLE_SINCE(V1_2,quantize_zero_sized,quantize::CreateModel_zero_sized)121 TEST_AVAILABLE_SINCE(V1_2, quantize_zero_sized, quantize::CreateModel_zero_sized)
122 
123 TEST_F(GeneratedTests, quantize_zero_sized_relaxed) {
124     execute(quantize::CreateModel_zero_sized_relaxed,
125             quantize::is_ignored_zero_sized_relaxed,
126             quantize::get_examples_zero_sized_relaxed());
127 }
128 
TEST_F(GeneratedTests,quantize_zero_sized_float16)129 TEST_F(GeneratedTests, quantize_zero_sized_float16) {
130     execute(quantize::CreateModel_zero_sized_float16,
131             quantize::is_ignored_zero_sized_float16,
132             quantize::get_examples_zero_sized_float16());
133 }
TEST_AVAILABLE_SINCE(V1_2,quantize_zero_sized_float16,quantize::CreateModel_zero_sized_float16)134 TEST_AVAILABLE_SINCE(V1_2, quantize_zero_sized_float16, quantize::CreateModel_zero_sized_float16)
135 
136 TEST_F(DynamicOutputShapeTest, quantize_zero_sized_dynamic_output_shape) {
137     execute(quantize::CreateModel_zero_sized_dynamic_output_shape,
138             quantize::is_ignored_zero_sized_dynamic_output_shape,
139             quantize::get_examples_zero_sized_dynamic_output_shape());
140 }
141 
TEST_F(DynamicOutputShapeTest,quantize_zero_sized_dynamic_output_shape_relaxed)142 TEST_F(DynamicOutputShapeTest, quantize_zero_sized_dynamic_output_shape_relaxed) {
143     execute(quantize::CreateModel_zero_sized_dynamic_output_shape_relaxed,
144             quantize::is_ignored_zero_sized_dynamic_output_shape_relaxed,
145             quantize::get_examples_zero_sized_dynamic_output_shape_relaxed());
146 }
147 
TEST_F(DynamicOutputShapeTest,quantize_zero_sized_dynamic_output_shape_float16)148 TEST_F(DynamicOutputShapeTest, quantize_zero_sized_dynamic_output_shape_float16) {
149     execute(quantize::CreateModel_zero_sized_dynamic_output_shape_float16,
150             quantize::is_ignored_zero_sized_dynamic_output_shape_float16,
151             quantize::get_examples_zero_sized_dynamic_output_shape_float16());
152 }
153 
154