1 // clang-format off
2 // Generated file (from: minimum.mod.py). Do not edit
3 #include "../../TestGenerated.h"
4
5 namespace minimum {
6 // Generated minimum test
7 #include "generated/examples/minimum.example.cpp"
8 // Generated model constructor
9 #include "generated/models/minimum.model.cpp"
10 } // namespace minimum
11
TEST_F(GeneratedTests,minimum_simple)12 TEST_F(GeneratedTests, minimum_simple) {
13 execute(minimum::CreateModel,
14 minimum::is_ignored,
15 minimum::get_examples_simple());
16 }
TEST_AVAILABLE_SINCE(V1_2,minimum_simple,minimum::CreateModel)17 TEST_AVAILABLE_SINCE(V1_2, minimum_simple, minimum::CreateModel)
18
19 TEST_F(GeneratedTests, minimum_simple_relaxed) {
20 execute(minimum::CreateModel_relaxed,
21 minimum::is_ignored_relaxed,
22 minimum::get_examples_simple_relaxed());
23 }
24
TEST_F(GeneratedTests,minimum_simple_float16)25 TEST_F(GeneratedTests, minimum_simple_float16) {
26 execute(minimum::CreateModel_float16,
27 minimum::is_ignored_float16,
28 minimum::get_examples_simple_float16());
29 }
TEST_AVAILABLE_SINCE(V1_2,minimum_simple_float16,minimum::CreateModel_float16)30 TEST_AVAILABLE_SINCE(V1_2, minimum_simple_float16, minimum::CreateModel_float16)
31
32 TEST_F(GeneratedTests, minimum_simple_int32) {
33 execute(minimum::CreateModel_int32,
34 minimum::is_ignored_int32,
35 minimum::get_examples_simple_int32());
36 }
TEST_AVAILABLE_SINCE(V1_2,minimum_simple_int32,minimum::CreateModel_int32)37 TEST_AVAILABLE_SINCE(V1_2, minimum_simple_int32, minimum::CreateModel_int32)
38
39 TEST_F(GeneratedTests, minimum_simple_quant8) {
40 execute(minimum::CreateModel_quant8,
41 minimum::is_ignored_quant8,
42 minimum::get_examples_simple_quant8());
43 }
TEST_AVAILABLE_SINCE(V1_2,minimum_simple_quant8,minimum::CreateModel_quant8)44 TEST_AVAILABLE_SINCE(V1_2, minimum_simple_quant8, minimum::CreateModel_quant8)
45
46 TEST_F(DynamicOutputShapeTest, minimum_simple_dynamic_output_shape) {
47 execute(minimum::CreateModel_dynamic_output_shape,
48 minimum::is_ignored_dynamic_output_shape,
49 minimum::get_examples_simple_dynamic_output_shape());
50 }
51
TEST_F(DynamicOutputShapeTest,minimum_simple_dynamic_output_shape_relaxed)52 TEST_F(DynamicOutputShapeTest, minimum_simple_dynamic_output_shape_relaxed) {
53 execute(minimum::CreateModel_dynamic_output_shape_relaxed,
54 minimum::is_ignored_dynamic_output_shape_relaxed,
55 minimum::get_examples_simple_dynamic_output_shape_relaxed());
56 }
57
TEST_F(DynamicOutputShapeTest,minimum_simple_dynamic_output_shape_float16)58 TEST_F(DynamicOutputShapeTest, minimum_simple_dynamic_output_shape_float16) {
59 execute(minimum::CreateModel_dynamic_output_shape_float16,
60 minimum::is_ignored_dynamic_output_shape_float16,
61 minimum::get_examples_simple_dynamic_output_shape_float16());
62 }
63
TEST_F(DynamicOutputShapeTest,minimum_simple_dynamic_output_shape_int32)64 TEST_F(DynamicOutputShapeTest, minimum_simple_dynamic_output_shape_int32) {
65 execute(minimum::CreateModel_dynamic_output_shape_int32,
66 minimum::is_ignored_dynamic_output_shape_int32,
67 minimum::get_examples_simple_dynamic_output_shape_int32());
68 }
69
TEST_F(DynamicOutputShapeTest,minimum_simple_dynamic_output_shape_quant8)70 TEST_F(DynamicOutputShapeTest, minimum_simple_dynamic_output_shape_quant8) {
71 execute(minimum::CreateModel_dynamic_output_shape_quant8,
72 minimum::is_ignored_dynamic_output_shape_quant8,
73 minimum::get_examples_simple_dynamic_output_shape_quant8());
74 }
75
TEST_F(GeneratedTests,minimum_broadcast)76 TEST_F(GeneratedTests, minimum_broadcast) {
77 execute(minimum::CreateModel_2,
78 minimum::is_ignored_2,
79 minimum::get_examples_broadcast());
80 }
TEST_AVAILABLE_SINCE(V1_2,minimum_broadcast,minimum::CreateModel_2)81 TEST_AVAILABLE_SINCE(V1_2, minimum_broadcast, minimum::CreateModel_2)
82
83 TEST_F(GeneratedTests, minimum_broadcast_relaxed) {
84 execute(minimum::CreateModel_relaxed_2,
85 minimum::is_ignored_relaxed_2,
86 minimum::get_examples_broadcast_relaxed());
87 }
88
TEST_F(GeneratedTests,minimum_broadcast_float16)89 TEST_F(GeneratedTests, minimum_broadcast_float16) {
90 execute(minimum::CreateModel_float16_2,
91 minimum::is_ignored_float16_2,
92 minimum::get_examples_broadcast_float16());
93 }
TEST_AVAILABLE_SINCE(V1_2,minimum_broadcast_float16,minimum::CreateModel_float16_2)94 TEST_AVAILABLE_SINCE(V1_2, minimum_broadcast_float16, minimum::CreateModel_float16_2)
95
96 TEST_F(GeneratedTests, minimum_broadcast_int32) {
97 execute(minimum::CreateModel_int32_2,
98 minimum::is_ignored_int32_2,
99 minimum::get_examples_broadcast_int32());
100 }
TEST_AVAILABLE_SINCE(V1_2,minimum_broadcast_int32,minimum::CreateModel_int32_2)101 TEST_AVAILABLE_SINCE(V1_2, minimum_broadcast_int32, minimum::CreateModel_int32_2)
102
103 TEST_F(GeneratedTests, minimum_broadcast_quant8) {
104 execute(minimum::CreateModel_quant8_2,
105 minimum::is_ignored_quant8_2,
106 minimum::get_examples_broadcast_quant8());
107 }
TEST_AVAILABLE_SINCE(V1_2,minimum_broadcast_quant8,minimum::CreateModel_quant8_2)108 TEST_AVAILABLE_SINCE(V1_2, minimum_broadcast_quant8, minimum::CreateModel_quant8_2)
109
110 TEST_F(DynamicOutputShapeTest, minimum_broadcast_dynamic_output_shape) {
111 execute(minimum::CreateModel_dynamic_output_shape_2,
112 minimum::is_ignored_dynamic_output_shape_2,
113 minimum::get_examples_broadcast_dynamic_output_shape());
114 }
115
TEST_F(DynamicOutputShapeTest,minimum_broadcast_dynamic_output_shape_relaxed)116 TEST_F(DynamicOutputShapeTest, minimum_broadcast_dynamic_output_shape_relaxed) {
117 execute(minimum::CreateModel_dynamic_output_shape_relaxed_2,
118 minimum::is_ignored_dynamic_output_shape_relaxed_2,
119 minimum::get_examples_broadcast_dynamic_output_shape_relaxed());
120 }
121
TEST_F(DynamicOutputShapeTest,minimum_broadcast_dynamic_output_shape_float16)122 TEST_F(DynamicOutputShapeTest, minimum_broadcast_dynamic_output_shape_float16) {
123 execute(minimum::CreateModel_dynamic_output_shape_float16_2,
124 minimum::is_ignored_dynamic_output_shape_float16_2,
125 minimum::get_examples_broadcast_dynamic_output_shape_float16());
126 }
127
TEST_F(DynamicOutputShapeTest,minimum_broadcast_dynamic_output_shape_int32)128 TEST_F(DynamicOutputShapeTest, minimum_broadcast_dynamic_output_shape_int32) {
129 execute(minimum::CreateModel_dynamic_output_shape_int32_2,
130 minimum::is_ignored_dynamic_output_shape_int32_2,
131 minimum::get_examples_broadcast_dynamic_output_shape_int32());
132 }
133
TEST_F(DynamicOutputShapeTest,minimum_broadcast_dynamic_output_shape_quant8)134 TEST_F(DynamicOutputShapeTest, minimum_broadcast_dynamic_output_shape_quant8) {
135 execute(minimum::CreateModel_dynamic_output_shape_quant8_2,
136 minimum::is_ignored_dynamic_output_shape_quant8_2,
137 minimum::get_examples_broadcast_dynamic_output_shape_quant8());
138 }
139
TEST_F(GeneratedTests,minimum_overflow)140 TEST_F(GeneratedTests, minimum_overflow) {
141 execute(minimum::CreateModel_3,
142 minimum::is_ignored_3,
143 minimum::get_examples_overflow());
144 }
TEST_AVAILABLE_SINCE(V1_2,minimum_overflow,minimum::CreateModel_3)145 TEST_AVAILABLE_SINCE(V1_2, minimum_overflow, minimum::CreateModel_3)
146
147 TEST_F(DynamicOutputShapeTest, minimum_overflow_dynamic_output_shape) {
148 execute(minimum::CreateModel_dynamic_output_shape_3,
149 minimum::is_ignored_dynamic_output_shape_3,
150 minimum::get_examples_overflow_dynamic_output_shape());
151 }
152
153