1 // clang-format off
2 // Generated file (from: sin.mod.py). Do not edit
get_examples()3 std::vector<MixedTypedExample>& get_examples() {
4 static std::vector<MixedTypedExample> examples = {
5 // Begin of an example
6 {
7 .operands = {
8 //Input(s)
9 { // See tools/test_generator/include/TestHarness.h:MixedTyped
10 // int -> Dimensions map
11 .operandDimensions = {{0, {1, 2, 3, 4, 5}}},
12 // int -> FLOAT32 map
13 .float32Operands = {{0, {-6.0f, -5.9f, -5.8f, -5.7f, -5.6f, -5.5f, -5.4f, -5.3f, -5.2f, -5.1f, -5.0f, -4.9f, -4.8f, -4.7f, -4.6f, -4.5f, -4.4f, -4.3f, -4.2f, -4.1f, -4.0f, -3.9f, -3.8f, -3.7f, -3.6f, -3.5f, -3.4f, -3.3f, -3.2f, -3.1f, -3.0f, -2.9f, -2.8f, -2.7f, -2.6f, -2.5f, -2.4f, -2.3f, -2.2f, -2.1f, -2.0f, -1.9f, -1.8f, -1.7f, -1.6f, -1.5f, -1.4f, -1.3f, -1.2f, -1.1f, -1.0f, -0.9f, -0.8f, -0.7f, -0.6f, -0.5f, -0.4f, -0.3f, -0.2f, -0.1f, 0.0f, 0.1f, 0.2f, 0.3f, 0.4f, 0.5f, 0.6f, 0.7f, 0.8f, 0.9f, 1.0f, 1.1f, 1.2f, 1.3f, 1.4f, 1.5f, 1.6f, 1.7f, 1.8f, 1.9f, 2.0f, 2.1f, 2.2f, 2.3f, 2.4f, 2.5f, 2.6f, 2.7f, 2.8f, 2.9f, 3.0f, 3.1f, 3.2f, 3.3f, 3.4f, 3.5f, 3.6f, 3.7f, 3.8f, 3.9f, 4.0f, 4.1f, 4.2f, 4.3f, 4.4f, 4.5f, 4.6f, 4.7f, 4.8f, 4.9f, 5.0f, 5.1f, 5.2f, 5.3f, 5.4f, 5.5f, 5.6f, 5.7f, 5.8f, 5.9f}}},
14 // int -> INT32 map
15 .int32Operands = {},
16 // int -> QUANT8_ASYMM map
17 .quant8AsymmOperands = {},
18 // int -> QUANT16_SYMM map
19 .quant16SymmOperands = {},
20 // int -> FLOAT16 map
21 .float16Operands = {},
22 // int -> BOOL8 map
23 .bool8Operands = {},
24 // int -> QUANT8_SYMM_PER_CHANNEL map
25 .quant8ChannelOperands = {},
26 // int -> QUANT16_ASYMM map
27 .quant16AsymmOperands = {},
28 // int -> QUANT8_SYMM map
29 .quant8SymmOperands = {},
30 },
31 //Output(s)
32 { // See tools/test_generator/include/TestHarness.h:MixedTyped
33 // int -> Dimensions map
34 .operandDimensions = {{0, {1, 2, 3, 4, 5}}},
35 // int -> FLOAT32 map
36 .float32Operands = {{0, {0.27941549819892586f, 0.373876664830236f, 0.46460217941375737f, 0.5506855425976376f, 0.6312666378723216f, 0.7055403255703919f, 0.7727644875559871f, 0.8322674422239013f, 0.8834546557201531f, 0.9258146823277325f, 0.9589242746631385f, 0.9824526126243325f, 0.9961646088358407f, 0.9999232575641008f, 0.9936910036334644f, 0.977530117665097f, 0.951602073889516f, 0.9161659367494549f, 0.8715757724135882f, 0.8182771110644103f, 0.7568024953079282f, 0.6877661591839738f, 0.6118578909427189f, 0.5298361409084934f, 0.44252044329485246f, 0.35078322768961984f, 0.2555411020268312f, 0.1577456941432482f, 0.058374143427580086f, -0.04158066243329049f, -0.1411200080598672f, -0.23924932921398243f, -0.3349881501559051f, -0.4273798802338298f, -0.5155013718214642f, -0.5984721441039565f, -0.675463180551151f, -0.7457052121767203f, -0.8084964038195901f, -0.8632093666488737f, -0.9092974268256817f, -0.9463000876874145f, -0.9738476308781951f, -0.9916648104524686f, -0.9995736030415051f, -0.9974949866040544f, -0.9854497299884601f, -0.963558185417193f, -0.9320390859672263f, -0.8912073600614354f, -0.8414709848078965f, -0.7833269096274834f, -0.7173560908995228f, -0.644217687237691f, -0.5646424733950354f, -0.479425538604203f, -0.3894183423086505f, -0.29552020666133955f, -0.19866933079506122f, -0.09983341664682815f, 0.0f, 0.09983341664682815f, 0.19866933079506122f, 0.29552020666133955f, 0.3894183423086505f, 0.479425538604203f, 0.5646424733950354f, 0.644217687237691f, 0.7173560908995228f, 0.7833269096274834f, 0.8414709848078965f, 0.8912073600614354f, 0.9320390859672263f, 0.963558185417193f, 0.9854497299884601f, 0.9974949866040544f, 0.9995736030415051f, 0.9916648104524686f, 0.9738476308781951f, 0.9463000876874145f, 0.9092974268256817f, 0.8632093666488737f, 0.8084964038195901f, 0.7457052121767203f, 0.675463180551151f, 0.5984721441039565f, 0.5155013718214642f, 0.4273798802338298f, 0.3349881501559051f, 0.23924932921398243f, 0.1411200080598672f, 0.04158066243329049f, -0.058374143427580086f, -0.1577456941432482f, -0.2555411020268312f, -0.35078322768961984f, -0.44252044329485246f, -0.5298361409084934f, -0.6118578909427189f, -0.6877661591839738f, -0.7568024953079282f, -0.8182771110644103f, -0.8715757724135882f, -0.9161659367494549f, -0.951602073889516f, -0.977530117665097f, -0.9936910036334644f, -0.9999232575641008f, -0.9961646088358407f, -0.9824526126243325f, -0.9589242746631385f, -0.9258146823277325f, -0.8834546557201531f, -0.8322674422239013f, -0.7727644875559871f, -0.7055403255703919f, -0.6312666378723216f, -0.5506855425976376f, -0.46460217941375737f, -0.373876664830236f}}},
37 // int -> INT32 map
38 .int32Operands = {},
39 // int -> QUANT8_ASYMM map
40 .quant8AsymmOperands = {},
41 // int -> QUANT16_SYMM map
42 .quant16SymmOperands = {},
43 // int -> FLOAT16 map
44 .float16Operands = {},
45 // int -> BOOL8 map
46 .bool8Operands = {},
47 // int -> QUANT8_SYMM_PER_CHANNEL map
48 .quant8ChannelOperands = {},
49 // int -> QUANT16_ASYMM map
50 .quant16AsymmOperands = {},
51 // int -> QUANT8_SYMM map
52 .quant8SymmOperands = {},
53 }
54 },
55 }, // End of an example
56 };
57 return examples;
58 };
59
get_examples_relaxed()60 std::vector<MixedTypedExample>& get_examples_relaxed() {
61 static std::vector<MixedTypedExample> examples_relaxed = {
62 // Begin of an example
63 {
64 .operands = {
65 //Input(s)
66 { // See tools/test_generator/include/TestHarness.h:MixedTyped
67 // int -> Dimensions map
68 .operandDimensions = {{0, {1, 2, 3, 4, 5}}},
69 // int -> FLOAT32 map
70 .float32Operands = {{0, {-6.0f, -5.9f, -5.8f, -5.7f, -5.6f, -5.5f, -5.4f, -5.3f, -5.2f, -5.1f, -5.0f, -4.9f, -4.8f, -4.7f, -4.6f, -4.5f, -4.4f, -4.3f, -4.2f, -4.1f, -4.0f, -3.9f, -3.8f, -3.7f, -3.6f, -3.5f, -3.4f, -3.3f, -3.2f, -3.1f, -3.0f, -2.9f, -2.8f, -2.7f, -2.6f, -2.5f, -2.4f, -2.3f, -2.2f, -2.1f, -2.0f, -1.9f, -1.8f, -1.7f, -1.6f, -1.5f, -1.4f, -1.3f, -1.2f, -1.1f, -1.0f, -0.9f, -0.8f, -0.7f, -0.6f, -0.5f, -0.4f, -0.3f, -0.2f, -0.1f, 0.0f, 0.1f, 0.2f, 0.3f, 0.4f, 0.5f, 0.6f, 0.7f, 0.8f, 0.9f, 1.0f, 1.1f, 1.2f, 1.3f, 1.4f, 1.5f, 1.6f, 1.7f, 1.8f, 1.9f, 2.0f, 2.1f, 2.2f, 2.3f, 2.4f, 2.5f, 2.6f, 2.7f, 2.8f, 2.9f, 3.0f, 3.1f, 3.2f, 3.3f, 3.4f, 3.5f, 3.6f, 3.7f, 3.8f, 3.9f, 4.0f, 4.1f, 4.2f, 4.3f, 4.4f, 4.5f, 4.6f, 4.7f, 4.8f, 4.9f, 5.0f, 5.1f, 5.2f, 5.3f, 5.4f, 5.5f, 5.6f, 5.7f, 5.8f, 5.9f}}},
71 // int -> INT32 map
72 .int32Operands = {},
73 // int -> QUANT8_ASYMM map
74 .quant8AsymmOperands = {},
75 // int -> QUANT16_SYMM map
76 .quant16SymmOperands = {},
77 // int -> FLOAT16 map
78 .float16Operands = {},
79 // int -> BOOL8 map
80 .bool8Operands = {},
81 // int -> QUANT8_SYMM_PER_CHANNEL map
82 .quant8ChannelOperands = {},
83 // int -> QUANT16_ASYMM map
84 .quant16AsymmOperands = {},
85 // int -> QUANT8_SYMM map
86 .quant8SymmOperands = {},
87 },
88 //Output(s)
89 { // See tools/test_generator/include/TestHarness.h:MixedTyped
90 // int -> Dimensions map
91 .operandDimensions = {{0, {1, 2, 3, 4, 5}}},
92 // int -> FLOAT32 map
93 .float32Operands = {{0, {0.27941549819892586f, 0.373876664830236f, 0.46460217941375737f, 0.5506855425976376f, 0.6312666378723216f, 0.7055403255703919f, 0.7727644875559871f, 0.8322674422239013f, 0.8834546557201531f, 0.9258146823277325f, 0.9589242746631385f, 0.9824526126243325f, 0.9961646088358407f, 0.9999232575641008f, 0.9936910036334644f, 0.977530117665097f, 0.951602073889516f, 0.9161659367494549f, 0.8715757724135882f, 0.8182771110644103f, 0.7568024953079282f, 0.6877661591839738f, 0.6118578909427189f, 0.5298361409084934f, 0.44252044329485246f, 0.35078322768961984f, 0.2555411020268312f, 0.1577456941432482f, 0.058374143427580086f, -0.04158066243329049f, -0.1411200080598672f, -0.23924932921398243f, -0.3349881501559051f, -0.4273798802338298f, -0.5155013718214642f, -0.5984721441039565f, -0.675463180551151f, -0.7457052121767203f, -0.8084964038195901f, -0.8632093666488737f, -0.9092974268256817f, -0.9463000876874145f, -0.9738476308781951f, -0.9916648104524686f, -0.9995736030415051f, -0.9974949866040544f, -0.9854497299884601f, -0.963558185417193f, -0.9320390859672263f, -0.8912073600614354f, -0.8414709848078965f, -0.7833269096274834f, -0.7173560908995228f, -0.644217687237691f, -0.5646424733950354f, -0.479425538604203f, -0.3894183423086505f, -0.29552020666133955f, -0.19866933079506122f, -0.09983341664682815f, 0.0f, 0.09983341664682815f, 0.19866933079506122f, 0.29552020666133955f, 0.3894183423086505f, 0.479425538604203f, 0.5646424733950354f, 0.644217687237691f, 0.7173560908995228f, 0.7833269096274834f, 0.8414709848078965f, 0.8912073600614354f, 0.9320390859672263f, 0.963558185417193f, 0.9854497299884601f, 0.9974949866040544f, 0.9995736030415051f, 0.9916648104524686f, 0.9738476308781951f, 0.9463000876874145f, 0.9092974268256817f, 0.8632093666488737f, 0.8084964038195901f, 0.7457052121767203f, 0.675463180551151f, 0.5984721441039565f, 0.5155013718214642f, 0.4273798802338298f, 0.3349881501559051f, 0.23924932921398243f, 0.1411200080598672f, 0.04158066243329049f, -0.058374143427580086f, -0.1577456941432482f, -0.2555411020268312f, -0.35078322768961984f, -0.44252044329485246f, -0.5298361409084934f, -0.6118578909427189f, -0.6877661591839738f, -0.7568024953079282f, -0.8182771110644103f, -0.8715757724135882f, -0.9161659367494549f, -0.951602073889516f, -0.977530117665097f, -0.9936910036334644f, -0.9999232575641008f, -0.9961646088358407f, -0.9824526126243325f, -0.9589242746631385f, -0.9258146823277325f, -0.8834546557201531f, -0.8322674422239013f, -0.7727644875559871f, -0.7055403255703919f, -0.6312666378723216f, -0.5506855425976376f, -0.46460217941375737f, -0.373876664830236f}}},
94 // int -> INT32 map
95 .int32Operands = {},
96 // int -> QUANT8_ASYMM map
97 .quant8AsymmOperands = {},
98 // int -> QUANT16_SYMM map
99 .quant16SymmOperands = {},
100 // int -> FLOAT16 map
101 .float16Operands = {},
102 // int -> BOOL8 map
103 .bool8Operands = {},
104 // int -> QUANT8_SYMM_PER_CHANNEL map
105 .quant8ChannelOperands = {},
106 // int -> QUANT16_ASYMM map
107 .quant16AsymmOperands = {},
108 // int -> QUANT8_SYMM map
109 .quant8SymmOperands = {},
110 }
111 },
112 }, // End of an example
113 };
114 return examples_relaxed;
115 };
116
get_examples_float16()117 std::vector<MixedTypedExample>& get_examples_float16() {
118 static std::vector<MixedTypedExample> examples_float16 = {
119 // Begin of an example
120 {
121 .operands = {
122 //Input(s)
123 { // See tools/test_generator/include/TestHarness.h:MixedTyped
124 // int -> Dimensions map
125 .operandDimensions = {{0, {1, 2, 3, 4, 5}}},
126 // int -> FLOAT32 map
127 .float32Operands = {},
128 // int -> INT32 map
129 .int32Operands = {},
130 // int -> QUANT8_ASYMM map
131 .quant8AsymmOperands = {},
132 // int -> QUANT16_SYMM map
133 .quant16SymmOperands = {},
134 // int -> FLOAT16 map
135 .float16Operands = {{0, {-6.0f, -5.900000095367432f, -5.800000190734863f, -5.699999809265137f, -5.599999904632568f, -5.5f, -5.400000095367432f, -5.300000190734863f, -5.199999809265137f, -5.099999904632568f, -5.0f, -4.900000095367432f, -4.800000190734863f, -4.699999809265137f, -4.599999904632568f, -4.5f, -4.400000095367432f, -4.300000190734863f, -4.199999809265137f, -4.099999904632568f, -4.0f, -3.9000000953674316f, -3.799999952316284f, -3.700000047683716f, -3.5999999046325684f, -3.5f, -3.4000000953674316f, -3.299999952316284f, -3.200000047683716f, -3.0999999046325684f, -3.0f, -2.9000000953674316f, -2.799999952316284f, -2.700000047683716f, -2.5999999046325684f, -2.5f, -2.4000000953674316f, -2.299999952316284f, -2.200000047683716f, -2.0999999046325684f, -2.0f, -1.899999976158142f, -1.7999999523162842f, -1.7000000476837158f, -1.600000023841858f, -1.5f, -1.399999976158142f, -1.2999999523162842f, -1.2000000476837158f, -1.100000023841858f, -1.0f, -0.8999999761581421f, -0.800000011920929f, -0.699999988079071f, -0.6000000238418579f, -0.5f, -0.4000000059604645f, -0.30000001192092896f, -0.20000000298023224f, -0.10000000149011612f, 0.0f, 0.10000000149011612f, 0.20000000298023224f, 0.30000001192092896f, 0.4000000059604645f, 0.5f, 0.6000000238418579f, 0.699999988079071f, 0.800000011920929f, 0.8999999761581421f, 1.0f, 1.100000023841858f, 1.2000000476837158f, 1.2999999523162842f, 1.399999976158142f, 1.5f, 1.600000023841858f, 1.7000000476837158f, 1.7999999523162842f, 1.899999976158142f, 2.0f, 2.0999999046325684f, 2.200000047683716f, 2.299999952316284f, 2.4000000953674316f, 2.5f, 2.5999999046325684f, 2.700000047683716f, 2.799999952316284f, 2.9000000953674316f, 3.0f, 3.0999999046325684f, 3.200000047683716f, 3.299999952316284f, 3.4000000953674316f, 3.5f, 3.5999999046325684f, 3.700000047683716f, 3.799999952316284f, 3.9000000953674316f, 4.0f, 4.099999904632568f, 4.199999809265137f, 4.300000190734863f, 4.400000095367432f, 4.5f, 4.599999904632568f, 4.699999809265137f, 4.800000190734863f, 4.900000095367432f, 5.0f, 5.099999904632568f, 5.199999809265137f, 5.300000190734863f, 5.400000095367432f, 5.5f, 5.599999904632568f, 5.699999809265137f, 5.800000190734863f, 5.900000095367432f}}},
136 // int -> BOOL8 map
137 .bool8Operands = {},
138 // int -> QUANT8_SYMM_PER_CHANNEL map
139 .quant8ChannelOperands = {},
140 // int -> QUANT16_ASYMM map
141 .quant16AsymmOperands = {},
142 // int -> QUANT8_SYMM map
143 .quant8SymmOperands = {},
144 },
145 //Output(s)
146 { // See tools/test_generator/include/TestHarness.h:MixedTyped
147 // int -> Dimensions map
148 .operandDimensions = {{0, {1, 2, 3, 4, 5}}},
149 // int -> FLOAT32 map
150 .float32Operands = {},
151 // int -> INT32 map
152 .int32Operands = {},
153 // int -> QUANT8_ASYMM map
154 .quant8AsymmOperands = {},
155 // int -> QUANT16_SYMM map
156 .quant16SymmOperands = {},
157 // int -> FLOAT16 map
158 .float16Operands = {{0, {0.279415488243103f, 0.3738766610622406f, 0.46460217237472534f, 0.5506855249404907f, 0.6312666535377502f, 0.7055402994155884f, 0.7727645039558411f, 0.8322674632072449f, 0.8834546804428101f, 0.925814688205719f, 0.9589242935180664f, 0.9824526309967041f, 0.9961646199226379f, 0.9999232292175293f, 0.9936910271644592f, 0.9775301218032837f, 0.9516021013259888f, 0.9161659479141235f, 0.8715757727622986f, 0.81827712059021f, 0.756802499294281f, 0.6877661347389221f, 0.6118578910827637f, 0.529836118221283f, 0.4425204396247864f, 0.35078322887420654f, 0.2555411159992218f, 0.15774568915367126f, 0.05837414413690567f, -0.04158066213130951f, -0.14112000167369843f, -0.2392493337392807f, -0.33498814702033997f, -0.42737987637519836f, -0.5155013799667358f, -0.5984721183776855f, -0.6754631996154785f, -0.7457051873207092f, -0.8084964156150818f, -0.8632093667984009f, -0.9092974066734314f, -0.9463000893592834f, -0.9738476276397705f, -0.9916648268699646f, -0.9995735883712769f, -0.9974949955940247f, -0.9854497313499451f, -0.9635581970214844f, -0.9320390820503235f, -0.8912073373794556f, -0.8414709568023682f, -0.7833269238471985f, -0.7173560857772827f, -0.6442176699638367f, -0.5646424889564514f, -0.4794255495071411f, -0.3894183337688446f, -0.29552021622657776f, -0.19866932928562164f, -0.0998334139585495f, 0.0f, 0.0998334139585495f, 0.19866932928562164f, 0.29552021622657776f, 0.3894183337688446f, 0.4794255495071411f, 0.5646424889564514f, 0.6442176699638367f, 0.7173560857772827f, 0.7833269238471985f, 0.8414709568023682f, 0.8912073373794556f, 0.9320390820503235f, 0.9635581970214844f, 0.9854497313499451f, 0.9974949955940247f, 0.9995735883712769f, 0.9916648268699646f, 0.9738476276397705f, 0.9463000893592834f, 0.9092974066734314f, 0.8632093667984009f, 0.8084964156150818f, 0.7457051873207092f, 0.6754631996154785f, 0.5984721183776855f, 0.5155013799667358f, 0.42737987637519836f, 0.33498814702033997f, 0.2392493337392807f, 0.14112000167369843f, 0.04158066213130951f, -0.05837414413690567f, -0.15774568915367126f, -0.2555411159992218f, -0.35078322887420654f, -0.4425204396247864f, -0.529836118221283f, -0.6118578910827637f, -0.6877661347389221f, -0.756802499294281f, -0.81827712059021f, -0.8715757727622986f, -0.9161659479141235f, -0.9516021013259888f, -0.9775301218032837f, -0.9936910271644592f, -0.9999232292175293f, -0.9961646199226379f, -0.9824526309967041f, -0.9589242935180664f, -0.925814688205719f, -0.8834546804428101f, -0.8322674632072449f, -0.7727645039558411f, -0.7055402994155884f, -0.6312666535377502f, -0.5506855249404907f, -0.46460217237472534f, -0.3738766610622406f}}},
159 // int -> BOOL8 map
160 .bool8Operands = {},
161 // int -> QUANT8_SYMM_PER_CHANNEL map
162 .quant8ChannelOperands = {},
163 // int -> QUANT16_ASYMM map
164 .quant16AsymmOperands = {},
165 // int -> QUANT8_SYMM map
166 .quant8SymmOperands = {},
167 }
168 },
169 }, // End of an example
170 };
171 return examples_float16;
172 };
173
get_examples_dynamic_output_shape()174 std::vector<MixedTypedExample>& get_examples_dynamic_output_shape() {
175 static std::vector<MixedTypedExample> examples_dynamic_output_shape = {
176 // Begin of an example
177 {
178 .operands = {
179 //Input(s)
180 { // See tools/test_generator/include/TestHarness.h:MixedTyped
181 // int -> Dimensions map
182 .operandDimensions = {{0, {1, 2, 3, 4, 5}}},
183 // int -> FLOAT32 map
184 .float32Operands = {{0, {-6.0f, -5.9f, -5.8f, -5.7f, -5.6f, -5.5f, -5.4f, -5.3f, -5.2f, -5.1f, -5.0f, -4.9f, -4.8f, -4.7f, -4.6f, -4.5f, -4.4f, -4.3f, -4.2f, -4.1f, -4.0f, -3.9f, -3.8f, -3.7f, -3.6f, -3.5f, -3.4f, -3.3f, -3.2f, -3.1f, -3.0f, -2.9f, -2.8f, -2.7f, -2.6f, -2.5f, -2.4f, -2.3f, -2.2f, -2.1f, -2.0f, -1.9f, -1.8f, -1.7f, -1.6f, -1.5f, -1.4f, -1.3f, -1.2f, -1.1f, -1.0f, -0.9f, -0.8f, -0.7f, -0.6f, -0.5f, -0.4f, -0.3f, -0.2f, -0.1f, 0.0f, 0.1f, 0.2f, 0.3f, 0.4f, 0.5f, 0.6f, 0.7f, 0.8f, 0.9f, 1.0f, 1.1f, 1.2f, 1.3f, 1.4f, 1.5f, 1.6f, 1.7f, 1.8f, 1.9f, 2.0f, 2.1f, 2.2f, 2.3f, 2.4f, 2.5f, 2.6f, 2.7f, 2.8f, 2.9f, 3.0f, 3.1f, 3.2f, 3.3f, 3.4f, 3.5f, 3.6f, 3.7f, 3.8f, 3.9f, 4.0f, 4.1f, 4.2f, 4.3f, 4.4f, 4.5f, 4.6f, 4.7f, 4.8f, 4.9f, 5.0f, 5.1f, 5.2f, 5.3f, 5.4f, 5.5f, 5.6f, 5.7f, 5.8f, 5.9f}}},
185 // int -> INT32 map
186 .int32Operands = {},
187 // int -> QUANT8_ASYMM map
188 .quant8AsymmOperands = {},
189 // int -> QUANT16_SYMM map
190 .quant16SymmOperands = {},
191 // int -> FLOAT16 map
192 .float16Operands = {},
193 // int -> BOOL8 map
194 .bool8Operands = {},
195 // int -> QUANT8_SYMM_PER_CHANNEL map
196 .quant8ChannelOperands = {},
197 // int -> QUANT16_ASYMM map
198 .quant16AsymmOperands = {},
199 // int -> QUANT8_SYMM map
200 .quant8SymmOperands = {},
201 },
202 //Output(s)
203 { // See tools/test_generator/include/TestHarness.h:MixedTyped
204 // int -> Dimensions map
205 .operandDimensions = {{0, {1, 2, 3, 4, 5}}},
206 // int -> FLOAT32 map
207 .float32Operands = {{0, {0.27941549819892586f, 0.373876664830236f, 0.46460217941375737f, 0.5506855425976376f, 0.6312666378723216f, 0.7055403255703919f, 0.7727644875559871f, 0.8322674422239013f, 0.8834546557201531f, 0.9258146823277325f, 0.9589242746631385f, 0.9824526126243325f, 0.9961646088358407f, 0.9999232575641008f, 0.9936910036334644f, 0.977530117665097f, 0.951602073889516f, 0.9161659367494549f, 0.8715757724135882f, 0.8182771110644103f, 0.7568024953079282f, 0.6877661591839738f, 0.6118578909427189f, 0.5298361409084934f, 0.44252044329485246f, 0.35078322768961984f, 0.2555411020268312f, 0.1577456941432482f, 0.058374143427580086f, -0.04158066243329049f, -0.1411200080598672f, -0.23924932921398243f, -0.3349881501559051f, -0.4273798802338298f, -0.5155013718214642f, -0.5984721441039565f, -0.675463180551151f, -0.7457052121767203f, -0.8084964038195901f, -0.8632093666488737f, -0.9092974268256817f, -0.9463000876874145f, -0.9738476308781951f, -0.9916648104524686f, -0.9995736030415051f, -0.9974949866040544f, -0.9854497299884601f, -0.963558185417193f, -0.9320390859672263f, -0.8912073600614354f, -0.8414709848078965f, -0.7833269096274834f, -0.7173560908995228f, -0.644217687237691f, -0.5646424733950354f, -0.479425538604203f, -0.3894183423086505f, -0.29552020666133955f, -0.19866933079506122f, -0.09983341664682815f, 0.0f, 0.09983341664682815f, 0.19866933079506122f, 0.29552020666133955f, 0.3894183423086505f, 0.479425538604203f, 0.5646424733950354f, 0.644217687237691f, 0.7173560908995228f, 0.7833269096274834f, 0.8414709848078965f, 0.8912073600614354f, 0.9320390859672263f, 0.963558185417193f, 0.9854497299884601f, 0.9974949866040544f, 0.9995736030415051f, 0.9916648104524686f, 0.9738476308781951f, 0.9463000876874145f, 0.9092974268256817f, 0.8632093666488737f, 0.8084964038195901f, 0.7457052121767203f, 0.675463180551151f, 0.5984721441039565f, 0.5155013718214642f, 0.4273798802338298f, 0.3349881501559051f, 0.23924932921398243f, 0.1411200080598672f, 0.04158066243329049f, -0.058374143427580086f, -0.1577456941432482f, -0.2555411020268312f, -0.35078322768961984f, -0.44252044329485246f, -0.5298361409084934f, -0.6118578909427189f, -0.6877661591839738f, -0.7568024953079282f, -0.8182771110644103f, -0.8715757724135882f, -0.9161659367494549f, -0.951602073889516f, -0.977530117665097f, -0.9936910036334644f, -0.9999232575641008f, -0.9961646088358407f, -0.9824526126243325f, -0.9589242746631385f, -0.9258146823277325f, -0.8834546557201531f, -0.8322674422239013f, -0.7727644875559871f, -0.7055403255703919f, -0.6312666378723216f, -0.5506855425976376f, -0.46460217941375737f, -0.373876664830236f}}},
208 // int -> INT32 map
209 .int32Operands = {},
210 // int -> QUANT8_ASYMM map
211 .quant8AsymmOperands = {},
212 // int -> QUANT16_SYMM map
213 .quant16SymmOperands = {},
214 // int -> FLOAT16 map
215 .float16Operands = {},
216 // int -> BOOL8 map
217 .bool8Operands = {},
218 // int -> QUANT8_SYMM_PER_CHANNEL map
219 .quant8ChannelOperands = {},
220 // int -> QUANT16_ASYMM map
221 .quant16AsymmOperands = {},
222 // int -> QUANT8_SYMM map
223 .quant8SymmOperands = {},
224 }
225 },
226 }, // End of an example
227 };
228 return examples_dynamic_output_shape;
229 };
230
get_examples_dynamic_output_shape_relaxed()231 std::vector<MixedTypedExample>& get_examples_dynamic_output_shape_relaxed() {
232 static std::vector<MixedTypedExample> examples_dynamic_output_shape_relaxed = {
233 // Begin of an example
234 {
235 .operands = {
236 //Input(s)
237 { // See tools/test_generator/include/TestHarness.h:MixedTyped
238 // int -> Dimensions map
239 .operandDimensions = {{0, {1, 2, 3, 4, 5}}},
240 // int -> FLOAT32 map
241 .float32Operands = {{0, {-6.0f, -5.9f, -5.8f, -5.7f, -5.6f, -5.5f, -5.4f, -5.3f, -5.2f, -5.1f, -5.0f, -4.9f, -4.8f, -4.7f, -4.6f, -4.5f, -4.4f, -4.3f, -4.2f, -4.1f, -4.0f, -3.9f, -3.8f, -3.7f, -3.6f, -3.5f, -3.4f, -3.3f, -3.2f, -3.1f, -3.0f, -2.9f, -2.8f, -2.7f, -2.6f, -2.5f, -2.4f, -2.3f, -2.2f, -2.1f, -2.0f, -1.9f, -1.8f, -1.7f, -1.6f, -1.5f, -1.4f, -1.3f, -1.2f, -1.1f, -1.0f, -0.9f, -0.8f, -0.7f, -0.6f, -0.5f, -0.4f, -0.3f, -0.2f, -0.1f, 0.0f, 0.1f, 0.2f, 0.3f, 0.4f, 0.5f, 0.6f, 0.7f, 0.8f, 0.9f, 1.0f, 1.1f, 1.2f, 1.3f, 1.4f, 1.5f, 1.6f, 1.7f, 1.8f, 1.9f, 2.0f, 2.1f, 2.2f, 2.3f, 2.4f, 2.5f, 2.6f, 2.7f, 2.8f, 2.9f, 3.0f, 3.1f, 3.2f, 3.3f, 3.4f, 3.5f, 3.6f, 3.7f, 3.8f, 3.9f, 4.0f, 4.1f, 4.2f, 4.3f, 4.4f, 4.5f, 4.6f, 4.7f, 4.8f, 4.9f, 5.0f, 5.1f, 5.2f, 5.3f, 5.4f, 5.5f, 5.6f, 5.7f, 5.8f, 5.9f}}},
242 // int -> INT32 map
243 .int32Operands = {},
244 // int -> QUANT8_ASYMM map
245 .quant8AsymmOperands = {},
246 // int -> QUANT16_SYMM map
247 .quant16SymmOperands = {},
248 // int -> FLOAT16 map
249 .float16Operands = {},
250 // int -> BOOL8 map
251 .bool8Operands = {},
252 // int -> QUANT8_SYMM_PER_CHANNEL map
253 .quant8ChannelOperands = {},
254 // int -> QUANT16_ASYMM map
255 .quant16AsymmOperands = {},
256 // int -> QUANT8_SYMM map
257 .quant8SymmOperands = {},
258 },
259 //Output(s)
260 { // See tools/test_generator/include/TestHarness.h:MixedTyped
261 // int -> Dimensions map
262 .operandDimensions = {{0, {1, 2, 3, 4, 5}}},
263 // int -> FLOAT32 map
264 .float32Operands = {{0, {0.27941549819892586f, 0.373876664830236f, 0.46460217941375737f, 0.5506855425976376f, 0.6312666378723216f, 0.7055403255703919f, 0.7727644875559871f, 0.8322674422239013f, 0.8834546557201531f, 0.9258146823277325f, 0.9589242746631385f, 0.9824526126243325f, 0.9961646088358407f, 0.9999232575641008f, 0.9936910036334644f, 0.977530117665097f, 0.951602073889516f, 0.9161659367494549f, 0.8715757724135882f, 0.8182771110644103f, 0.7568024953079282f, 0.6877661591839738f, 0.6118578909427189f, 0.5298361409084934f, 0.44252044329485246f, 0.35078322768961984f, 0.2555411020268312f, 0.1577456941432482f, 0.058374143427580086f, -0.04158066243329049f, -0.1411200080598672f, -0.23924932921398243f, -0.3349881501559051f, -0.4273798802338298f, -0.5155013718214642f, -0.5984721441039565f, -0.675463180551151f, -0.7457052121767203f, -0.8084964038195901f, -0.8632093666488737f, -0.9092974268256817f, -0.9463000876874145f, -0.9738476308781951f, -0.9916648104524686f, -0.9995736030415051f, -0.9974949866040544f, -0.9854497299884601f, -0.963558185417193f, -0.9320390859672263f, -0.8912073600614354f, -0.8414709848078965f, -0.7833269096274834f, -0.7173560908995228f, -0.644217687237691f, -0.5646424733950354f, -0.479425538604203f, -0.3894183423086505f, -0.29552020666133955f, -0.19866933079506122f, -0.09983341664682815f, 0.0f, 0.09983341664682815f, 0.19866933079506122f, 0.29552020666133955f, 0.3894183423086505f, 0.479425538604203f, 0.5646424733950354f, 0.644217687237691f, 0.7173560908995228f, 0.7833269096274834f, 0.8414709848078965f, 0.8912073600614354f, 0.9320390859672263f, 0.963558185417193f, 0.9854497299884601f, 0.9974949866040544f, 0.9995736030415051f, 0.9916648104524686f, 0.9738476308781951f, 0.9463000876874145f, 0.9092974268256817f, 0.8632093666488737f, 0.8084964038195901f, 0.7457052121767203f, 0.675463180551151f, 0.5984721441039565f, 0.5155013718214642f, 0.4273798802338298f, 0.3349881501559051f, 0.23924932921398243f, 0.1411200080598672f, 0.04158066243329049f, -0.058374143427580086f, -0.1577456941432482f, -0.2555411020268312f, -0.35078322768961984f, -0.44252044329485246f, -0.5298361409084934f, -0.6118578909427189f, -0.6877661591839738f, -0.7568024953079282f, -0.8182771110644103f, -0.8715757724135882f, -0.9161659367494549f, -0.951602073889516f, -0.977530117665097f, -0.9936910036334644f, -0.9999232575641008f, -0.9961646088358407f, -0.9824526126243325f, -0.9589242746631385f, -0.9258146823277325f, -0.8834546557201531f, -0.8322674422239013f, -0.7727644875559871f, -0.7055403255703919f, -0.6312666378723216f, -0.5506855425976376f, -0.46460217941375737f, -0.373876664830236f}}},
265 // int -> INT32 map
266 .int32Operands = {},
267 // int -> QUANT8_ASYMM map
268 .quant8AsymmOperands = {},
269 // int -> QUANT16_SYMM map
270 .quant16SymmOperands = {},
271 // int -> FLOAT16 map
272 .float16Operands = {},
273 // int -> BOOL8 map
274 .bool8Operands = {},
275 // int -> QUANT8_SYMM_PER_CHANNEL map
276 .quant8ChannelOperands = {},
277 // int -> QUANT16_ASYMM map
278 .quant16AsymmOperands = {},
279 // int -> QUANT8_SYMM map
280 .quant8SymmOperands = {},
281 }
282 },
283 }, // End of an example
284 };
285 return examples_dynamic_output_shape_relaxed;
286 };
287
get_examples_dynamic_output_shape_float16()288 std::vector<MixedTypedExample>& get_examples_dynamic_output_shape_float16() {
289 static std::vector<MixedTypedExample> examples_dynamic_output_shape_float16 = {
290 // Begin of an example
291 {
292 .operands = {
293 //Input(s)
294 { // See tools/test_generator/include/TestHarness.h:MixedTyped
295 // int -> Dimensions map
296 .operandDimensions = {{0, {1, 2, 3, 4, 5}}},
297 // int -> FLOAT32 map
298 .float32Operands = {},
299 // int -> INT32 map
300 .int32Operands = {},
301 // int -> QUANT8_ASYMM map
302 .quant8AsymmOperands = {},
303 // int -> QUANT16_SYMM map
304 .quant16SymmOperands = {},
305 // int -> FLOAT16 map
306 .float16Operands = {{0, {-6.0f, -5.900000095367432f, -5.800000190734863f, -5.699999809265137f, -5.599999904632568f, -5.5f, -5.400000095367432f, -5.300000190734863f, -5.199999809265137f, -5.099999904632568f, -5.0f, -4.900000095367432f, -4.800000190734863f, -4.699999809265137f, -4.599999904632568f, -4.5f, -4.400000095367432f, -4.300000190734863f, -4.199999809265137f, -4.099999904632568f, -4.0f, -3.9000000953674316f, -3.799999952316284f, -3.700000047683716f, -3.5999999046325684f, -3.5f, -3.4000000953674316f, -3.299999952316284f, -3.200000047683716f, -3.0999999046325684f, -3.0f, -2.9000000953674316f, -2.799999952316284f, -2.700000047683716f, -2.5999999046325684f, -2.5f, -2.4000000953674316f, -2.299999952316284f, -2.200000047683716f, -2.0999999046325684f, -2.0f, -1.899999976158142f, -1.7999999523162842f, -1.7000000476837158f, -1.600000023841858f, -1.5f, -1.399999976158142f, -1.2999999523162842f, -1.2000000476837158f, -1.100000023841858f, -1.0f, -0.8999999761581421f, -0.800000011920929f, -0.699999988079071f, -0.6000000238418579f, -0.5f, -0.4000000059604645f, -0.30000001192092896f, -0.20000000298023224f, -0.10000000149011612f, 0.0f, 0.10000000149011612f, 0.20000000298023224f, 0.30000001192092896f, 0.4000000059604645f, 0.5f, 0.6000000238418579f, 0.699999988079071f, 0.800000011920929f, 0.8999999761581421f, 1.0f, 1.100000023841858f, 1.2000000476837158f, 1.2999999523162842f, 1.399999976158142f, 1.5f, 1.600000023841858f, 1.7000000476837158f, 1.7999999523162842f, 1.899999976158142f, 2.0f, 2.0999999046325684f, 2.200000047683716f, 2.299999952316284f, 2.4000000953674316f, 2.5f, 2.5999999046325684f, 2.700000047683716f, 2.799999952316284f, 2.9000000953674316f, 3.0f, 3.0999999046325684f, 3.200000047683716f, 3.299999952316284f, 3.4000000953674316f, 3.5f, 3.5999999046325684f, 3.700000047683716f, 3.799999952316284f, 3.9000000953674316f, 4.0f, 4.099999904632568f, 4.199999809265137f, 4.300000190734863f, 4.400000095367432f, 4.5f, 4.599999904632568f, 4.699999809265137f, 4.800000190734863f, 4.900000095367432f, 5.0f, 5.099999904632568f, 5.199999809265137f, 5.300000190734863f, 5.400000095367432f, 5.5f, 5.599999904632568f, 5.699999809265137f, 5.800000190734863f, 5.900000095367432f}}},
307 // int -> BOOL8 map
308 .bool8Operands = {},
309 // int -> QUANT8_SYMM_PER_CHANNEL map
310 .quant8ChannelOperands = {},
311 // int -> QUANT16_ASYMM map
312 .quant16AsymmOperands = {},
313 // int -> QUANT8_SYMM map
314 .quant8SymmOperands = {},
315 },
316 //Output(s)
317 { // See tools/test_generator/include/TestHarness.h:MixedTyped
318 // int -> Dimensions map
319 .operandDimensions = {{0, {1, 2, 3, 4, 5}}},
320 // int -> FLOAT32 map
321 .float32Operands = {},
322 // int -> INT32 map
323 .int32Operands = {},
324 // int -> QUANT8_ASYMM map
325 .quant8AsymmOperands = {},
326 // int -> QUANT16_SYMM map
327 .quant16SymmOperands = {},
328 // int -> FLOAT16 map
329 .float16Operands = {{0, {0.279415488243103f, 0.3738766610622406f, 0.46460217237472534f, 0.5506855249404907f, 0.6312666535377502f, 0.7055402994155884f, 0.7727645039558411f, 0.8322674632072449f, 0.8834546804428101f, 0.925814688205719f, 0.9589242935180664f, 0.9824526309967041f, 0.9961646199226379f, 0.9999232292175293f, 0.9936910271644592f, 0.9775301218032837f, 0.9516021013259888f, 0.9161659479141235f, 0.8715757727622986f, 0.81827712059021f, 0.756802499294281f, 0.6877661347389221f, 0.6118578910827637f, 0.529836118221283f, 0.4425204396247864f, 0.35078322887420654f, 0.2555411159992218f, 0.15774568915367126f, 0.05837414413690567f, -0.04158066213130951f, -0.14112000167369843f, -0.2392493337392807f, -0.33498814702033997f, -0.42737987637519836f, -0.5155013799667358f, -0.5984721183776855f, -0.6754631996154785f, -0.7457051873207092f, -0.8084964156150818f, -0.8632093667984009f, -0.9092974066734314f, -0.9463000893592834f, -0.9738476276397705f, -0.9916648268699646f, -0.9995735883712769f, -0.9974949955940247f, -0.9854497313499451f, -0.9635581970214844f, -0.9320390820503235f, -0.8912073373794556f, -0.8414709568023682f, -0.7833269238471985f, -0.7173560857772827f, -0.6442176699638367f, -0.5646424889564514f, -0.4794255495071411f, -0.3894183337688446f, -0.29552021622657776f, -0.19866932928562164f, -0.0998334139585495f, 0.0f, 0.0998334139585495f, 0.19866932928562164f, 0.29552021622657776f, 0.3894183337688446f, 0.4794255495071411f, 0.5646424889564514f, 0.6442176699638367f, 0.7173560857772827f, 0.7833269238471985f, 0.8414709568023682f, 0.8912073373794556f, 0.9320390820503235f, 0.9635581970214844f, 0.9854497313499451f, 0.9974949955940247f, 0.9995735883712769f, 0.9916648268699646f, 0.9738476276397705f, 0.9463000893592834f, 0.9092974066734314f, 0.8632093667984009f, 0.8084964156150818f, 0.7457051873207092f, 0.6754631996154785f, 0.5984721183776855f, 0.5155013799667358f, 0.42737987637519836f, 0.33498814702033997f, 0.2392493337392807f, 0.14112000167369843f, 0.04158066213130951f, -0.05837414413690567f, -0.15774568915367126f, -0.2555411159992218f, -0.35078322887420654f, -0.4425204396247864f, -0.529836118221283f, -0.6118578910827637f, -0.6877661347389221f, -0.756802499294281f, -0.81827712059021f, -0.8715757727622986f, -0.9161659479141235f, -0.9516021013259888f, -0.9775301218032837f, -0.9936910271644592f, -0.9999232292175293f, -0.9961646199226379f, -0.9824526309967041f, -0.9589242935180664f, -0.925814688205719f, -0.8834546804428101f, -0.8322674632072449f, -0.7727645039558411f, -0.7055402994155884f, -0.6312666535377502f, -0.5506855249404907f, -0.46460217237472534f, -0.3738766610622406f}}},
330 // int -> BOOL8 map
331 .bool8Operands = {},
332 // int -> QUANT8_SYMM_PER_CHANNEL map
333 .quant8ChannelOperands = {},
334 // int -> QUANT16_ASYMM map
335 .quant16AsymmOperands = {},
336 // int -> QUANT8_SYMM map
337 .quant8SymmOperands = {},
338 }
339 },
340 }, // End of an example
341 };
342 return examples_dynamic_output_shape_float16;
343 };
344
345