1 // clang-format off
2 // Generated file (from: log_softmax.mod.py). Do not edit
3 #include "../../TestGenerated.h"
4
5 namespace log_softmax {
6 // Generated log_softmax test
7 #include "generated/examples/log_softmax.example.cpp"
8 // Generated model constructor
9 #include "generated/models/log_softmax.model.cpp"
10 } // namespace log_softmax
11
TEST_F(GeneratedTests,log_softmax)12 TEST_F(GeneratedTests, log_softmax) {
13 execute(log_softmax::CreateModel,
14 log_softmax::is_ignored,
15 log_softmax::get_examples());
16 }
TEST_AVAILABLE_SINCE(V1_2,log_softmax,log_softmax::CreateModel)17 TEST_AVAILABLE_SINCE(V1_2, log_softmax, log_softmax::CreateModel)
18
19 TEST_F(GeneratedTests, log_softmax_relaxed) {
20 execute(log_softmax::CreateModel_relaxed,
21 log_softmax::is_ignored_relaxed,
22 log_softmax::get_examples_relaxed());
23 }
24
TEST_F(GeneratedTests,log_softmax_float16)25 TEST_F(GeneratedTests, log_softmax_float16) {
26 execute(log_softmax::CreateModel_float16,
27 log_softmax::is_ignored_float16,
28 log_softmax::get_examples_float16());
29 }
TEST_AVAILABLE_SINCE(V1_2,log_softmax_float16,log_softmax::CreateModel_float16)30 TEST_AVAILABLE_SINCE(V1_2, log_softmax_float16, log_softmax::CreateModel_float16)
31
32 TEST_F(DynamicOutputShapeTest, log_softmax_dynamic_output_shape) {
33 execute(log_softmax::CreateModel_dynamic_output_shape,
34 log_softmax::is_ignored_dynamic_output_shape,
35 log_softmax::get_examples_dynamic_output_shape());
36 }
37
TEST_F(DynamicOutputShapeTest,log_softmax_dynamic_output_shape_relaxed)38 TEST_F(DynamicOutputShapeTest, log_softmax_dynamic_output_shape_relaxed) {
39 execute(log_softmax::CreateModel_dynamic_output_shape_relaxed,
40 log_softmax::is_ignored_dynamic_output_shape_relaxed,
41 log_softmax::get_examples_dynamic_output_shape_relaxed());
42 }
43
TEST_F(DynamicOutputShapeTest,log_softmax_dynamic_output_shape_float16)44 TEST_F(DynamicOutputShapeTest, log_softmax_dynamic_output_shape_float16) {
45 execute(log_softmax::CreateModel_dynamic_output_shape_float16,
46 log_softmax::is_ignored_dynamic_output_shape_float16,
47 log_softmax::get_examples_dynamic_output_shape_float16());
48 }
49
TEST_F(GeneratedTests,log_softmax_2)50 TEST_F(GeneratedTests, log_softmax_2) {
51 execute(log_softmax::CreateModel_2,
52 log_softmax::is_ignored_2,
53 log_softmax::get_examples_2());
54 }
TEST_AVAILABLE_SINCE(V1_2,log_softmax_2,log_softmax::CreateModel_2)55 TEST_AVAILABLE_SINCE(V1_2, log_softmax_2, log_softmax::CreateModel_2)
56
57 TEST_F(GeneratedTests, log_softmax_relaxed_2) {
58 execute(log_softmax::CreateModel_relaxed_2,
59 log_softmax::is_ignored_relaxed_2,
60 log_softmax::get_examples_relaxed_2());
61 }
62
TEST_F(GeneratedTests,log_softmax_float16_2)63 TEST_F(GeneratedTests, log_softmax_float16_2) {
64 execute(log_softmax::CreateModel_float16_2,
65 log_softmax::is_ignored_float16_2,
66 log_softmax::get_examples_float16_2());
67 }
TEST_AVAILABLE_SINCE(V1_2,log_softmax_float16_2,log_softmax::CreateModel_float16_2)68 TEST_AVAILABLE_SINCE(V1_2, log_softmax_float16_2, log_softmax::CreateModel_float16_2)
69
70 TEST_F(DynamicOutputShapeTest, log_softmax_dynamic_output_shape_2) {
71 execute(log_softmax::CreateModel_dynamic_output_shape_2,
72 log_softmax::is_ignored_dynamic_output_shape_2,
73 log_softmax::get_examples_dynamic_output_shape_2());
74 }
75
TEST_F(DynamicOutputShapeTest,log_softmax_dynamic_output_shape_relaxed_2)76 TEST_F(DynamicOutputShapeTest, log_softmax_dynamic_output_shape_relaxed_2) {
77 execute(log_softmax::CreateModel_dynamic_output_shape_relaxed_2,
78 log_softmax::is_ignored_dynamic_output_shape_relaxed_2,
79 log_softmax::get_examples_dynamic_output_shape_relaxed_2());
80 }
81
TEST_F(DynamicOutputShapeTest,log_softmax_dynamic_output_shape_float16_2)82 TEST_F(DynamicOutputShapeTest, log_softmax_dynamic_output_shape_float16_2) {
83 execute(log_softmax::CreateModel_dynamic_output_shape_float16_2,
84 log_softmax::is_ignored_dynamic_output_shape_float16_2,
85 log_softmax::get_examples_dynamic_output_shape_float16_2());
86 }
87
TEST_F(GeneratedTests,log_softmax_3)88 TEST_F(GeneratedTests, log_softmax_3) {
89 execute(log_softmax::CreateModel_3,
90 log_softmax::is_ignored_3,
91 log_softmax::get_examples_3());
92 }
TEST_AVAILABLE_SINCE(V1_2,log_softmax_3,log_softmax::CreateModel_3)93 TEST_AVAILABLE_SINCE(V1_2, log_softmax_3, log_softmax::CreateModel_3)
94
95 TEST_F(GeneratedTests, log_softmax_relaxed_3) {
96 execute(log_softmax::CreateModel_relaxed_3,
97 log_softmax::is_ignored_relaxed_3,
98 log_softmax::get_examples_relaxed_3());
99 }
100
TEST_F(GeneratedTests,log_softmax_float16_3)101 TEST_F(GeneratedTests, log_softmax_float16_3) {
102 execute(log_softmax::CreateModel_float16_3,
103 log_softmax::is_ignored_float16_3,
104 log_softmax::get_examples_float16_3());
105 }
TEST_AVAILABLE_SINCE(V1_2,log_softmax_float16_3,log_softmax::CreateModel_float16_3)106 TEST_AVAILABLE_SINCE(V1_2, log_softmax_float16_3, log_softmax::CreateModel_float16_3)
107
108 TEST_F(DynamicOutputShapeTest, log_softmax_dynamic_output_shape_3) {
109 execute(log_softmax::CreateModel_dynamic_output_shape_3,
110 log_softmax::is_ignored_dynamic_output_shape_3,
111 log_softmax::get_examples_dynamic_output_shape_3());
112 }
113
TEST_F(DynamicOutputShapeTest,log_softmax_dynamic_output_shape_relaxed_3)114 TEST_F(DynamicOutputShapeTest, log_softmax_dynamic_output_shape_relaxed_3) {
115 execute(log_softmax::CreateModel_dynamic_output_shape_relaxed_3,
116 log_softmax::is_ignored_dynamic_output_shape_relaxed_3,
117 log_softmax::get_examples_dynamic_output_shape_relaxed_3());
118 }
119
TEST_F(DynamicOutputShapeTest,log_softmax_dynamic_output_shape_float16_3)120 TEST_F(DynamicOutputShapeTest, log_softmax_dynamic_output_shape_float16_3) {
121 execute(log_softmax::CreateModel_dynamic_output_shape_float16_3,
122 log_softmax::is_ignored_dynamic_output_shape_float16_3,
123 log_softmax::get_examples_dynamic_output_shape_float16_3());
124 }
125
TEST_F(GeneratedTests,log_softmax_4)126 TEST_F(GeneratedTests, log_softmax_4) {
127 execute(log_softmax::CreateModel_4,
128 log_softmax::is_ignored_4,
129 log_softmax::get_examples_4());
130 }
TEST_AVAILABLE_SINCE(V1_2,log_softmax_4,log_softmax::CreateModel_4)131 TEST_AVAILABLE_SINCE(V1_2, log_softmax_4, log_softmax::CreateModel_4)
132
133 TEST_F(GeneratedTests, log_softmax_relaxed_4) {
134 execute(log_softmax::CreateModel_relaxed_4,
135 log_softmax::is_ignored_relaxed_4,
136 log_softmax::get_examples_relaxed_4());
137 }
138
TEST_F(GeneratedTests,log_softmax_float16_4)139 TEST_F(GeneratedTests, log_softmax_float16_4) {
140 execute(log_softmax::CreateModel_float16_4,
141 log_softmax::is_ignored_float16_4,
142 log_softmax::get_examples_float16_4());
143 }
TEST_AVAILABLE_SINCE(V1_2,log_softmax_float16_4,log_softmax::CreateModel_float16_4)144 TEST_AVAILABLE_SINCE(V1_2, log_softmax_float16_4, log_softmax::CreateModel_float16_4)
145
146 TEST_F(DynamicOutputShapeTest, log_softmax_dynamic_output_shape_4) {
147 execute(log_softmax::CreateModel_dynamic_output_shape_4,
148 log_softmax::is_ignored_dynamic_output_shape_4,
149 log_softmax::get_examples_dynamic_output_shape_4());
150 }
151
TEST_F(DynamicOutputShapeTest,log_softmax_dynamic_output_shape_relaxed_4)152 TEST_F(DynamicOutputShapeTest, log_softmax_dynamic_output_shape_relaxed_4) {
153 execute(log_softmax::CreateModel_dynamic_output_shape_relaxed_4,
154 log_softmax::is_ignored_dynamic_output_shape_relaxed_4,
155 log_softmax::get_examples_dynamic_output_shape_relaxed_4());
156 }
157
TEST_F(DynamicOutputShapeTest,log_softmax_dynamic_output_shape_float16_4)158 TEST_F(DynamicOutputShapeTest, log_softmax_dynamic_output_shape_float16_4) {
159 execute(log_softmax::CreateModel_dynamic_output_shape_float16_4,
160 log_softmax::is_ignored_dynamic_output_shape_float16_4,
161 log_softmax::get_examples_dynamic_output_shape_float16_4());
162 }
163
164