1 // Generated from quantize.mod.py
2 // DO NOT EDIT
3 // clang-format off
4 #include "TestHarness.h"
5 using namespace test_helper;  // NOLINT(google-build-using-namespace)
6 
7 namespace generated_tests::quantize {
8 
get_test_model_quant8()9 const TestModel& get_test_model_quant8() {
10     static TestModel model = {
11         .main = {
12                 .operands = {{ // input0
13                             .type = TestOperandType::TENSOR_FLOAT32,
14                             .dimensions = {300},
15                             .numberOfConsumers = 1,
16                             .scale = 0.0f,
17                             .zeroPoint = 0,
18                             .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
19                             .channelQuant = {},
20                             .isIgnored = false,
21                             .data = TestBuffer::createFromVector<float>({-10.0f, -9.933110367892976f, -9.866220735785953f, -9.799331103678929f, -9.732441471571907f, -9.665551839464882f, -9.59866220735786f, -9.531772575250836f, -9.464882943143813f, -9.397993311036789f, -9.331103678929766f, -9.264214046822742f, -9.19732441471572f, -9.130434782608695f, -9.063545150501673f, -8.996655518394649f, -8.929765886287626f, -8.862876254180602f, -8.79598662207358f, -8.729096989966555f, -8.662207357859533f, -8.595317725752508f, -8.528428093645484f, -8.461538461538462f, -8.39464882943144f, -8.327759197324415f, -8.26086956521739f, -8.193979933110368f, -8.127090301003344f, -8.060200668896321f, -7.993311036789297f, -7.926421404682275f, -7.8595317725752505f, -7.792642140468228f, -7.725752508361204f, -7.658862876254181f, -7.591973244147157f, -7.5250836120401345f, -7.45819397993311f, -7.391304347826087f, -7.3244147157190636f, -7.25752508361204f, -7.190635451505017f, -7.1237458193979935f, -7.05685618729097f, -6.989966555183947f, -6.923076923076923f, -6.8561872909699f, -6.789297658862877f, -6.722408026755852f, -6.65551839464883f, -6.588628762541806f, -6.521739130434783f, -6.454849498327759f, -6.387959866220736f, -6.321070234113712f, -6.25418060200669f, -6.187290969899665f, -6.120401337792643f, -6.053511705685619f, -5.986622073578595f, -5.919732441471572f, -5.852842809364549f, -5.785953177257525f, -5.719063545150502f, -5.6521739130434785f, -5.585284280936455f, -5.518394648829432f, -5.451505016722408f, -5.384615384615385f, -5.317725752508362f, -5.250836120401338f, -5.183946488294315f, -5.117056856187292f, -5.050167224080268f, -4.983277591973244f, -4.916387959866221f, -4.849498327759197f, -4.782608695652174f, -4.7157190635451505f, -4.648829431438127f, -4.581939799331104f, -4.51505016722408f, -4.448160535117057f, -4.381270903010034f, -4.31438127090301f, -4.247491638795987f, -4.1806020066889635f, -4.11371237458194f, -4.046822742474917f, -3.9799331103678934f, -3.91304347826087f, -3.8461538461538467f, -3.7792642140468233f, -3.7123745819398f, -3.6454849498327766f, -3.5785953177257532f, -3.511705685618729f, -3.4448160535117056f, -3.3779264214046822f, -3.311036789297659f, -3.2441471571906355f, -3.177257525083612f, -3.1103678929765888f, -3.0434782608695654f, -2.976588628762542f, -2.9096989966555187f, -2.8428093645484953f, -2.775919732441472f, -2.7090301003344486f, -2.642140468227425f, -2.575250836120402f, -2.5083612040133785f, -2.441471571906355f, -2.3745819397993317f, -2.3076923076923084f, -2.240802675585285f, -2.1739130434782616f, -2.1070234113712374f, -2.040133779264214f, -1.9732441471571907f, -1.9063545150501682f, -1.839464882943144f, -1.7725752508361214f, -1.7056856187290972f, -1.6387959866220747f, -1.5719063545150505f, -1.505016722408028f, -1.4381270903010037f, -1.3712374581939795f, -1.304347826086957f, -1.2374581939799327f, -1.1705685618729103f, -1.103678929765886f, -1.0367892976588635f, -0.9698996655518393f, -0.9030100334448168f, -0.8361204013377925f, -0.76923076923077f, -0.7023411371237458f, -0.6354515050167233f, -0.5685618729096991f, -0.5016722408026766f, -0.43478260869565233f, -0.36789297658862985f, -0.3010033444816056f, -0.23411371237458312f, -0.16722408026755886f, -0.10033444816053638f, -0.03344481605351213f, 0.03344481605351213f, 0.1003344481605346f, 0.16722408026755886f, 0.23411371237458134f, 0.3010033444816056f, 0.3678929765886281f, 0.43478260869565233f, 0.5016722408026748f, 0.5685618729096991f, 0.6354515050167215f, 0.7023411371237458f, 0.7692307692307683f, 0.8361204013377925f, 0.903010033444815f, 0.9698996655518393f, 1.0367892976588617f, 1.103678929765886f, 1.1705685618729085f, 1.2374581939799327f, 1.3043478260869552f, 1.3712374581939795f, 1.4381270903010037f, 1.5050167224080262f, 1.5719063545150505f, 1.638795986622073f, 1.7056856187290972f, 1.7725752508361197f, 1.839464882943144f, 1.9063545150501664f, 1.9732441471571907f, 2.040133779264213f, 2.1070234113712374f, 2.17391304347826f, 2.240802675585284f, 2.3076923076923066f, 2.374581939799331f, 2.4414715719063533f, 2.5083612040133776f, 2.5752508361204f, 2.6421404682274243f, 2.709030100334447f, 2.775919732441471f, 2.8428093645484935f, 2.909698996655518f, 2.976588628762542f, 3.0434782608695645f, 3.1103678929765888f, 3.1772575250836113f, 3.2441471571906355f, 3.311036789297658f, 3.3779264214046822f, 3.4448160535117047f, 3.511705685618729f, 3.5785953177257515f, 3.6454849498327757f, 3.712374581939798f, 3.7792642140468224f, 3.846153846153845f, 3.913043478260869f, 3.9799331103678917f, 4.046822742474916f, 4.113712374581938f, 4.180602006688963f, 4.247491638795985f, 4.314381270903009f, 4.381270903010034f, 4.448160535117056f, 4.51505016722408f, 4.581939799331103f, 4.648829431438127f, 4.71571906354515f, 4.782608695652174f, 4.849498327759196f, 4.916387959866221f, 4.983277591973243f, 5.050167224080267f, 5.11705685618729f, 5.183946488294314f, 5.2508361204013365f, 5.317725752508361f, 5.384615384615383f, 5.4515050167224075f, 5.51839464882943f, 5.585284280936454f, 5.652173913043477f, 5.719063545150501f, 5.785953177257525f, 5.852842809364548f, 5.919732441471572f, 5.986622073578594f, 6.053511705685619f, 6.120401337792643f, 6.187290969899664f, 6.254180602006688f, 6.321070234113712f, 6.387959866220736f, 6.454849498327757f, 6.521739130434781f, 6.588628762541806f, 6.65551839464883f, 6.722408026755851f, 6.789297658862875f, 6.856187290969899f, 6.923076923076923f, 6.989966555183944f, 7.056856187290968f, 7.123745819397993f, 7.190635451505017f, 7.257525083612041f, 7.324414715719062f, 7.391304347826086f, 7.45819397993311f, 7.5250836120401345f, 7.591973244147155f, 7.6588628762541795f, 7.725752508361204f, 7.792642140468228f, 7.859531772575249f, 7.926421404682273f, 7.993311036789297f, 8.060200668896321f, 8.127090301003342f, 8.193979933110366f, 8.26086956521739f, 8.327759197324415f, 8.394648829431436f, 8.46153846153846f, 8.528428093645484f, 8.595317725752508f, 8.662207357859533f, 8.729096989966553f, 8.795986622073578f, 8.862876254180602f, 8.929765886287626f, 8.996655518394647f, 9.063545150501671f, 9.130434782608695f, 9.19732441471572f, 9.26421404682274f, 9.331103678929765f, 9.397993311036789f, 9.464882943143813f, 9.531772575250834f, 9.598662207357858f, 9.665551839464882f, 9.732441471571907f, 9.799331103678927f, 9.866220735785951f, 9.933110367892976f, 10.0f})
22                         }, { // output0
23                             .type = TestOperandType::TENSOR_QUANT8_ASYMM,
24                             .dimensions = {300},
25                             .numberOfConsumers = 0,
26                             .scale = 1.0f,
27                             .zeroPoint = 0,
28                             .lifetime = TestOperandLifeTime::SUBGRAPH_OUTPUT,
29                             .channelQuant = {},
30                             .isIgnored = false,
31                             .data = TestBuffer::createFromVector<uint8_t>({0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10})
32                         }},
33                 .operations = {{
34                             .type = TestOperationType::QUANTIZE,
35                             .inputs = {0},
36                             .outputs = {1}
37                         }},
38                 .inputIndexes = {0},
39                 .outputIndexes = {1}
40             },
41         .referenced = {},
42         .isRelaxed = false,
43         .expectedMultinomialDistributionTolerance = 0,
44         .expectFailure = false,
45         .minSupportedVersion = TestHalVersion::V1_2
46     };
47     return model;
48 }
49 
50 const auto dummy_test_model_quant8 = TestModelManager::get().add("quantize_quant8", get_test_model_quant8());
51 
52 }  // namespace generated_tests::quantize
53 
54 namespace generated_tests::quantize {
55 
get_test_model_quant8_all_inputs_as_internal()56 const TestModel& get_test_model_quant8_all_inputs_as_internal() {
57     static TestModel model = {
58         .main = {
59                 .operands = {{ // input0
60                             .type = TestOperandType::TENSOR_FLOAT32,
61                             .dimensions = {300},
62                             .numberOfConsumers = 1,
63                             .scale = 0.0f,
64                             .zeroPoint = 0,
65                             .lifetime = TestOperandLifeTime::TEMPORARY_VARIABLE,
66                             .channelQuant = {},
67                             .isIgnored = false,
68                             .data = TestBuffer::createFromVector<float>({})
69                         }, { // output0
70                             .type = TestOperandType::TENSOR_QUANT8_ASYMM,
71                             .dimensions = {300},
72                             .numberOfConsumers = 0,
73                             .scale = 1.0f,
74                             .zeroPoint = 0,
75                             .lifetime = TestOperandLifeTime::SUBGRAPH_OUTPUT,
76                             .channelQuant = {},
77                             .isIgnored = false,
78                             .data = TestBuffer::createFromVector<uint8_t>({0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10})
79                         }, { // input0_new
80                             .type = TestOperandType::TENSOR_FLOAT32,
81                             .dimensions = {300},
82                             .numberOfConsumers = 1,
83                             .scale = 0.0f,
84                             .zeroPoint = 0,
85                             .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
86                             .channelQuant = {},
87                             .isIgnored = false,
88                             .data = TestBuffer::createFromVector<float>({-10.0f, -9.933110367892976f, -9.866220735785953f, -9.799331103678929f, -9.732441471571907f, -9.665551839464882f, -9.59866220735786f, -9.531772575250836f, -9.464882943143813f, -9.397993311036789f, -9.331103678929766f, -9.264214046822742f, -9.19732441471572f, -9.130434782608695f, -9.063545150501673f, -8.996655518394649f, -8.929765886287626f, -8.862876254180602f, -8.79598662207358f, -8.729096989966555f, -8.662207357859533f, -8.595317725752508f, -8.528428093645484f, -8.461538461538462f, -8.39464882943144f, -8.327759197324415f, -8.26086956521739f, -8.193979933110368f, -8.127090301003344f, -8.060200668896321f, -7.993311036789297f, -7.926421404682275f, -7.8595317725752505f, -7.792642140468228f, -7.725752508361204f, -7.658862876254181f, -7.591973244147157f, -7.5250836120401345f, -7.45819397993311f, -7.391304347826087f, -7.3244147157190636f, -7.25752508361204f, -7.190635451505017f, -7.1237458193979935f, -7.05685618729097f, -6.989966555183947f, -6.923076923076923f, -6.8561872909699f, -6.789297658862877f, -6.722408026755852f, -6.65551839464883f, -6.588628762541806f, -6.521739130434783f, -6.454849498327759f, -6.387959866220736f, -6.321070234113712f, -6.25418060200669f, -6.187290969899665f, -6.120401337792643f, -6.053511705685619f, -5.986622073578595f, -5.919732441471572f, -5.852842809364549f, -5.785953177257525f, -5.719063545150502f, -5.6521739130434785f, -5.585284280936455f, -5.518394648829432f, -5.451505016722408f, -5.384615384615385f, -5.317725752508362f, -5.250836120401338f, -5.183946488294315f, -5.117056856187292f, -5.050167224080268f, -4.983277591973244f, -4.916387959866221f, -4.849498327759197f, -4.782608695652174f, -4.7157190635451505f, -4.648829431438127f, -4.581939799331104f, -4.51505016722408f, -4.448160535117057f, -4.381270903010034f, -4.31438127090301f, -4.247491638795987f, -4.1806020066889635f, -4.11371237458194f, -4.046822742474917f, -3.9799331103678934f, -3.91304347826087f, -3.8461538461538467f, -3.7792642140468233f, -3.7123745819398f, -3.6454849498327766f, -3.5785953177257532f, -3.511705685618729f, -3.4448160535117056f, -3.3779264214046822f, -3.311036789297659f, -3.2441471571906355f, -3.177257525083612f, -3.1103678929765888f, -3.0434782608695654f, -2.976588628762542f, -2.9096989966555187f, -2.8428093645484953f, -2.775919732441472f, -2.7090301003344486f, -2.642140468227425f, -2.575250836120402f, -2.5083612040133785f, -2.441471571906355f, -2.3745819397993317f, -2.3076923076923084f, -2.240802675585285f, -2.1739130434782616f, -2.1070234113712374f, -2.040133779264214f, -1.9732441471571907f, -1.9063545150501682f, -1.839464882943144f, -1.7725752508361214f, -1.7056856187290972f, -1.6387959866220747f, -1.5719063545150505f, -1.505016722408028f, -1.4381270903010037f, -1.3712374581939795f, -1.304347826086957f, -1.2374581939799327f, -1.1705685618729103f, -1.103678929765886f, -1.0367892976588635f, -0.9698996655518393f, -0.9030100334448168f, -0.8361204013377925f, -0.76923076923077f, -0.7023411371237458f, -0.6354515050167233f, -0.5685618729096991f, -0.5016722408026766f, -0.43478260869565233f, -0.36789297658862985f, -0.3010033444816056f, -0.23411371237458312f, -0.16722408026755886f, -0.10033444816053638f, -0.03344481605351213f, 0.03344481605351213f, 0.1003344481605346f, 0.16722408026755886f, 0.23411371237458134f, 0.3010033444816056f, 0.3678929765886281f, 0.43478260869565233f, 0.5016722408026748f, 0.5685618729096991f, 0.6354515050167215f, 0.7023411371237458f, 0.7692307692307683f, 0.8361204013377925f, 0.903010033444815f, 0.9698996655518393f, 1.0367892976588617f, 1.103678929765886f, 1.1705685618729085f, 1.2374581939799327f, 1.3043478260869552f, 1.3712374581939795f, 1.4381270903010037f, 1.5050167224080262f, 1.5719063545150505f, 1.638795986622073f, 1.7056856187290972f, 1.7725752508361197f, 1.839464882943144f, 1.9063545150501664f, 1.9732441471571907f, 2.040133779264213f, 2.1070234113712374f, 2.17391304347826f, 2.240802675585284f, 2.3076923076923066f, 2.374581939799331f, 2.4414715719063533f, 2.5083612040133776f, 2.5752508361204f, 2.6421404682274243f, 2.709030100334447f, 2.775919732441471f, 2.8428093645484935f, 2.909698996655518f, 2.976588628762542f, 3.0434782608695645f, 3.1103678929765888f, 3.1772575250836113f, 3.2441471571906355f, 3.311036789297658f, 3.3779264214046822f, 3.4448160535117047f, 3.511705685618729f, 3.5785953177257515f, 3.6454849498327757f, 3.712374581939798f, 3.7792642140468224f, 3.846153846153845f, 3.913043478260869f, 3.9799331103678917f, 4.046822742474916f, 4.113712374581938f, 4.180602006688963f, 4.247491638795985f, 4.314381270903009f, 4.381270903010034f, 4.448160535117056f, 4.51505016722408f, 4.581939799331103f, 4.648829431438127f, 4.71571906354515f, 4.782608695652174f, 4.849498327759196f, 4.916387959866221f, 4.983277591973243f, 5.050167224080267f, 5.11705685618729f, 5.183946488294314f, 5.2508361204013365f, 5.317725752508361f, 5.384615384615383f, 5.4515050167224075f, 5.51839464882943f, 5.585284280936454f, 5.652173913043477f, 5.719063545150501f, 5.785953177257525f, 5.852842809364548f, 5.919732441471572f, 5.986622073578594f, 6.053511705685619f, 6.120401337792643f, 6.187290969899664f, 6.254180602006688f, 6.321070234113712f, 6.387959866220736f, 6.454849498327757f, 6.521739130434781f, 6.588628762541806f, 6.65551839464883f, 6.722408026755851f, 6.789297658862875f, 6.856187290969899f, 6.923076923076923f, 6.989966555183944f, 7.056856187290968f, 7.123745819397993f, 7.190635451505017f, 7.257525083612041f, 7.324414715719062f, 7.391304347826086f, 7.45819397993311f, 7.5250836120401345f, 7.591973244147155f, 7.6588628762541795f, 7.725752508361204f, 7.792642140468228f, 7.859531772575249f, 7.926421404682273f, 7.993311036789297f, 8.060200668896321f, 8.127090301003342f, 8.193979933110366f, 8.26086956521739f, 8.327759197324415f, 8.394648829431436f, 8.46153846153846f, 8.528428093645484f, 8.595317725752508f, 8.662207357859533f, 8.729096989966553f, 8.795986622073578f, 8.862876254180602f, 8.929765886287626f, 8.996655518394647f, 9.063545150501671f, 9.130434782608695f, 9.19732441471572f, 9.26421404682274f, 9.331103678929765f, 9.397993311036789f, 9.464882943143813f, 9.531772575250834f, 9.598662207357858f, 9.665551839464882f, 9.732441471571907f, 9.799331103678927f, 9.866220735785951f, 9.933110367892976f, 10.0f})
89                         }, { // placeholder
90                             .type = TestOperandType::TENSOR_FLOAT32,
91                             .dimensions = {1},
92                             .numberOfConsumers = 1,
93                             .scale = 0.0f,
94                             .zeroPoint = 0,
95                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
96                             .channelQuant = {},
97                             .isIgnored = false,
98                             .data = TestBuffer::createFromVector<float>({0.0f})
99                         }, { // param13
100                             .type = TestOperandType::INT32,
101                             .dimensions = {},
102                             .numberOfConsumers = 1,
103                             .scale = 0.0f,
104                             .zeroPoint = 0,
105                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
106                             .channelQuant = {},
107                             .isIgnored = false,
108                             .data = TestBuffer::createFromVector<int32_t>({0})
109                         }},
110                 .operations = {{
111                             .type = TestOperationType::ADD,
112                             .inputs = {2, 3, 4},
113                             .outputs = {0}
114                         }, {
115                             .type = TestOperationType::QUANTIZE,
116                             .inputs = {0},
117                             .outputs = {1}
118                         }},
119                 .inputIndexes = {2},
120                 .outputIndexes = {1}
121             },
122         .referenced = {},
123         .isRelaxed = false,
124         .expectedMultinomialDistributionTolerance = 0,
125         .expectFailure = false,
126         .minSupportedVersion = TestHalVersion::V1_2
127     };
128     return model;
129 }
130 
131 const auto dummy_test_model_quant8_all_inputs_as_internal = TestModelManager::get().add("quantize_quant8_all_inputs_as_internal", get_test_model_quant8_all_inputs_as_internal());
132 
133 }  // namespace generated_tests::quantize
134 
135 namespace generated_tests::quantize {
136 
get_test_model_quant8_2()137 const TestModel& get_test_model_quant8_2() {
138     static TestModel model = {
139         .main = {
140                 .operands = {{ // input01
141                             .type = TestOperandType::TENSOR_FLOAT32,
142                             .dimensions = {300},
143                             .numberOfConsumers = 1,
144                             .scale = 0.0f,
145                             .zeroPoint = 0,
146                             .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
147                             .channelQuant = {},
148                             .isIgnored = false,
149                             .data = TestBuffer::createFromVector<float>({-10.0f, -9.933110367892976f, -9.866220735785953f, -9.799331103678929f, -9.732441471571907f, -9.665551839464882f, -9.59866220735786f, -9.531772575250836f, -9.464882943143813f, -9.397993311036789f, -9.331103678929766f, -9.264214046822742f, -9.19732441471572f, -9.130434782608695f, -9.063545150501673f, -8.996655518394649f, -8.929765886287626f, -8.862876254180602f, -8.79598662207358f, -8.729096989966555f, -8.662207357859533f, -8.595317725752508f, -8.528428093645484f, -8.461538461538462f, -8.39464882943144f, -8.327759197324415f, -8.26086956521739f, -8.193979933110368f, -8.127090301003344f, -8.060200668896321f, -7.993311036789297f, -7.926421404682275f, -7.8595317725752505f, -7.792642140468228f, -7.725752508361204f, -7.658862876254181f, -7.591973244147157f, -7.5250836120401345f, -7.45819397993311f, -7.391304347826087f, -7.3244147157190636f, -7.25752508361204f, -7.190635451505017f, -7.1237458193979935f, -7.05685618729097f, -6.989966555183947f, -6.923076923076923f, -6.8561872909699f, -6.789297658862877f, -6.722408026755852f, -6.65551839464883f, -6.588628762541806f, -6.521739130434783f, -6.454849498327759f, -6.387959866220736f, -6.321070234113712f, -6.25418060200669f, -6.187290969899665f, -6.120401337792643f, -6.053511705685619f, -5.986622073578595f, -5.919732441471572f, -5.852842809364549f, -5.785953177257525f, -5.719063545150502f, -5.6521739130434785f, -5.585284280936455f, -5.518394648829432f, -5.451505016722408f, -5.384615384615385f, -5.317725752508362f, -5.250836120401338f, -5.183946488294315f, -5.117056856187292f, -5.050167224080268f, -4.983277591973244f, -4.916387959866221f, -4.849498327759197f, -4.782608695652174f, -4.7157190635451505f, -4.648829431438127f, -4.581939799331104f, -4.51505016722408f, -4.448160535117057f, -4.381270903010034f, -4.31438127090301f, -4.247491638795987f, -4.1806020066889635f, -4.11371237458194f, -4.046822742474917f, -3.9799331103678934f, -3.91304347826087f, -3.8461538461538467f, -3.7792642140468233f, -3.7123745819398f, -3.6454849498327766f, -3.5785953177257532f, -3.511705685618729f, -3.4448160535117056f, -3.3779264214046822f, -3.311036789297659f, -3.2441471571906355f, -3.177257525083612f, -3.1103678929765888f, -3.0434782608695654f, -2.976588628762542f, -2.9096989966555187f, -2.8428093645484953f, -2.775919732441472f, -2.7090301003344486f, -2.642140468227425f, -2.575250836120402f, -2.5083612040133785f, -2.441471571906355f, -2.3745819397993317f, -2.3076923076923084f, -2.240802675585285f, -2.1739130434782616f, -2.1070234113712374f, -2.040133779264214f, -1.9732441471571907f, -1.9063545150501682f, -1.839464882943144f, -1.7725752508361214f, -1.7056856187290972f, -1.6387959866220747f, -1.5719063545150505f, -1.505016722408028f, -1.4381270903010037f, -1.3712374581939795f, -1.304347826086957f, -1.2374581939799327f, -1.1705685618729103f, -1.103678929765886f, -1.0367892976588635f, -0.9698996655518393f, -0.9030100334448168f, -0.8361204013377925f, -0.76923076923077f, -0.7023411371237458f, -0.6354515050167233f, -0.5685618729096991f, -0.5016722408026766f, -0.43478260869565233f, -0.36789297658862985f, -0.3010033444816056f, -0.23411371237458312f, -0.16722408026755886f, -0.10033444816053638f, -0.03344481605351213f, 0.03344481605351213f, 0.1003344481605346f, 0.16722408026755886f, 0.23411371237458134f, 0.3010033444816056f, 0.3678929765886281f, 0.43478260869565233f, 0.5016722408026748f, 0.5685618729096991f, 0.6354515050167215f, 0.7023411371237458f, 0.7692307692307683f, 0.8361204013377925f, 0.903010033444815f, 0.9698996655518393f, 1.0367892976588617f, 1.103678929765886f, 1.1705685618729085f, 1.2374581939799327f, 1.3043478260869552f, 1.3712374581939795f, 1.4381270903010037f, 1.5050167224080262f, 1.5719063545150505f, 1.638795986622073f, 1.7056856187290972f, 1.7725752508361197f, 1.839464882943144f, 1.9063545150501664f, 1.9732441471571907f, 2.040133779264213f, 2.1070234113712374f, 2.17391304347826f, 2.240802675585284f, 2.3076923076923066f, 2.374581939799331f, 2.4414715719063533f, 2.5083612040133776f, 2.5752508361204f, 2.6421404682274243f, 2.709030100334447f, 2.775919732441471f, 2.8428093645484935f, 2.909698996655518f, 2.976588628762542f, 3.0434782608695645f, 3.1103678929765888f, 3.1772575250836113f, 3.2441471571906355f, 3.311036789297658f, 3.3779264214046822f, 3.4448160535117047f, 3.511705685618729f, 3.5785953177257515f, 3.6454849498327757f, 3.712374581939798f, 3.7792642140468224f, 3.846153846153845f, 3.913043478260869f, 3.9799331103678917f, 4.046822742474916f, 4.113712374581938f, 4.180602006688963f, 4.247491638795985f, 4.314381270903009f, 4.381270903010034f, 4.448160535117056f, 4.51505016722408f, 4.581939799331103f, 4.648829431438127f, 4.71571906354515f, 4.782608695652174f, 4.849498327759196f, 4.916387959866221f, 4.983277591973243f, 5.050167224080267f, 5.11705685618729f, 5.183946488294314f, 5.2508361204013365f, 5.317725752508361f, 5.384615384615383f, 5.4515050167224075f, 5.51839464882943f, 5.585284280936454f, 5.652173913043477f, 5.719063545150501f, 5.785953177257525f, 5.852842809364548f, 5.919732441471572f, 5.986622073578594f, 6.053511705685619f, 6.120401337792643f, 6.187290969899664f, 6.254180602006688f, 6.321070234113712f, 6.387959866220736f, 6.454849498327757f, 6.521739130434781f, 6.588628762541806f, 6.65551839464883f, 6.722408026755851f, 6.789297658862875f, 6.856187290969899f, 6.923076923076923f, 6.989966555183944f, 7.056856187290968f, 7.123745819397993f, 7.190635451505017f, 7.257525083612041f, 7.324414715719062f, 7.391304347826086f, 7.45819397993311f, 7.5250836120401345f, 7.591973244147155f, 7.6588628762541795f, 7.725752508361204f, 7.792642140468228f, 7.859531772575249f, 7.926421404682273f, 7.993311036789297f, 8.060200668896321f, 8.127090301003342f, 8.193979933110366f, 8.26086956521739f, 8.327759197324415f, 8.394648829431436f, 8.46153846153846f, 8.528428093645484f, 8.595317725752508f, 8.662207357859533f, 8.729096989966553f, 8.795986622073578f, 8.862876254180602f, 8.929765886287626f, 8.996655518394647f, 9.063545150501671f, 9.130434782608695f, 9.19732441471572f, 9.26421404682274f, 9.331103678929765f, 9.397993311036789f, 9.464882943143813f, 9.531772575250834f, 9.598662207357858f, 9.665551839464882f, 9.732441471571907f, 9.799331103678927f, 9.866220735785951f, 9.933110367892976f, 10.0f})
150                         }, { // output01
151                             .type = TestOperandType::TENSOR_QUANT8_ASYMM,
152                             .dimensions = {300},
153                             .numberOfConsumers = 0,
154                             .scale = 1.0f,
155                             .zeroPoint = 1,
156                             .lifetime = TestOperandLifeTime::SUBGRAPH_OUTPUT,
157                             .channelQuant = {},
158                             .isIgnored = false,
159                             .data = TestBuffer::createFromVector<uint8_t>({0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11})
160                         }},
161                 .operations = {{
162                             .type = TestOperationType::QUANTIZE,
163                             .inputs = {0},
164                             .outputs = {1}
165                         }},
166                 .inputIndexes = {0},
167                 .outputIndexes = {1}
168             },
169         .referenced = {},
170         .isRelaxed = false,
171         .expectedMultinomialDistributionTolerance = 0,
172         .expectFailure = false,
173         .minSupportedVersion = TestHalVersion::V1_2
174     };
175     return model;
176 }
177 
178 const auto dummy_test_model_quant8_2 = TestModelManager::get().add("quantize_quant8_2", get_test_model_quant8_2());
179 
180 }  // namespace generated_tests::quantize
181 
182 namespace generated_tests::quantize {
183 
get_test_model_quant8_all_inputs_as_internal_2()184 const TestModel& get_test_model_quant8_all_inputs_as_internal_2() {
185     static TestModel model = {
186         .main = {
187                 .operands = {{ // input01
188                             .type = TestOperandType::TENSOR_FLOAT32,
189                             .dimensions = {300},
190                             .numberOfConsumers = 1,
191                             .scale = 0.0f,
192                             .zeroPoint = 0,
193                             .lifetime = TestOperandLifeTime::TEMPORARY_VARIABLE,
194                             .channelQuant = {},
195                             .isIgnored = false,
196                             .data = TestBuffer::createFromVector<float>({})
197                         }, { // output01
198                             .type = TestOperandType::TENSOR_QUANT8_ASYMM,
199                             .dimensions = {300},
200                             .numberOfConsumers = 0,
201                             .scale = 1.0f,
202                             .zeroPoint = 1,
203                             .lifetime = TestOperandLifeTime::SUBGRAPH_OUTPUT,
204                             .channelQuant = {},
205                             .isIgnored = false,
206                             .data = TestBuffer::createFromVector<uint8_t>({0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11})
207                         }, { // input01_new
208                             .type = TestOperandType::TENSOR_FLOAT32,
209                             .dimensions = {300},
210                             .numberOfConsumers = 1,
211                             .scale = 0.0f,
212                             .zeroPoint = 0,
213                             .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
214                             .channelQuant = {},
215                             .isIgnored = false,
216                             .data = TestBuffer::createFromVector<float>({-10.0f, -9.933110367892976f, -9.866220735785953f, -9.799331103678929f, -9.732441471571907f, -9.665551839464882f, -9.59866220735786f, -9.531772575250836f, -9.464882943143813f, -9.397993311036789f, -9.331103678929766f, -9.264214046822742f, -9.19732441471572f, -9.130434782608695f, -9.063545150501673f, -8.996655518394649f, -8.929765886287626f, -8.862876254180602f, -8.79598662207358f, -8.729096989966555f, -8.662207357859533f, -8.595317725752508f, -8.528428093645484f, -8.461538461538462f, -8.39464882943144f, -8.327759197324415f, -8.26086956521739f, -8.193979933110368f, -8.127090301003344f, -8.060200668896321f, -7.993311036789297f, -7.926421404682275f, -7.8595317725752505f, -7.792642140468228f, -7.725752508361204f, -7.658862876254181f, -7.591973244147157f, -7.5250836120401345f, -7.45819397993311f, -7.391304347826087f, -7.3244147157190636f, -7.25752508361204f, -7.190635451505017f, -7.1237458193979935f, -7.05685618729097f, -6.989966555183947f, -6.923076923076923f, -6.8561872909699f, -6.789297658862877f, -6.722408026755852f, -6.65551839464883f, -6.588628762541806f, -6.521739130434783f, -6.454849498327759f, -6.387959866220736f, -6.321070234113712f, -6.25418060200669f, -6.187290969899665f, -6.120401337792643f, -6.053511705685619f, -5.986622073578595f, -5.919732441471572f, -5.852842809364549f, -5.785953177257525f, -5.719063545150502f, -5.6521739130434785f, -5.585284280936455f, -5.518394648829432f, -5.451505016722408f, -5.384615384615385f, -5.317725752508362f, -5.250836120401338f, -5.183946488294315f, -5.117056856187292f, -5.050167224080268f, -4.983277591973244f, -4.916387959866221f, -4.849498327759197f, -4.782608695652174f, -4.7157190635451505f, -4.648829431438127f, -4.581939799331104f, -4.51505016722408f, -4.448160535117057f, -4.381270903010034f, -4.31438127090301f, -4.247491638795987f, -4.1806020066889635f, -4.11371237458194f, -4.046822742474917f, -3.9799331103678934f, -3.91304347826087f, -3.8461538461538467f, -3.7792642140468233f, -3.7123745819398f, -3.6454849498327766f, -3.5785953177257532f, -3.511705685618729f, -3.4448160535117056f, -3.3779264214046822f, -3.311036789297659f, -3.2441471571906355f, -3.177257525083612f, -3.1103678929765888f, -3.0434782608695654f, -2.976588628762542f, -2.9096989966555187f, -2.8428093645484953f, -2.775919732441472f, -2.7090301003344486f, -2.642140468227425f, -2.575250836120402f, -2.5083612040133785f, -2.441471571906355f, -2.3745819397993317f, -2.3076923076923084f, -2.240802675585285f, -2.1739130434782616f, -2.1070234113712374f, -2.040133779264214f, -1.9732441471571907f, -1.9063545150501682f, -1.839464882943144f, -1.7725752508361214f, -1.7056856187290972f, -1.6387959866220747f, -1.5719063545150505f, -1.505016722408028f, -1.4381270903010037f, -1.3712374581939795f, -1.304347826086957f, -1.2374581939799327f, -1.1705685618729103f, -1.103678929765886f, -1.0367892976588635f, -0.9698996655518393f, -0.9030100334448168f, -0.8361204013377925f, -0.76923076923077f, -0.7023411371237458f, -0.6354515050167233f, -0.5685618729096991f, -0.5016722408026766f, -0.43478260869565233f, -0.36789297658862985f, -0.3010033444816056f, -0.23411371237458312f, -0.16722408026755886f, -0.10033444816053638f, -0.03344481605351213f, 0.03344481605351213f, 0.1003344481605346f, 0.16722408026755886f, 0.23411371237458134f, 0.3010033444816056f, 0.3678929765886281f, 0.43478260869565233f, 0.5016722408026748f, 0.5685618729096991f, 0.6354515050167215f, 0.7023411371237458f, 0.7692307692307683f, 0.8361204013377925f, 0.903010033444815f, 0.9698996655518393f, 1.0367892976588617f, 1.103678929765886f, 1.1705685618729085f, 1.2374581939799327f, 1.3043478260869552f, 1.3712374581939795f, 1.4381270903010037f, 1.5050167224080262f, 1.5719063545150505f, 1.638795986622073f, 1.7056856187290972f, 1.7725752508361197f, 1.839464882943144f, 1.9063545150501664f, 1.9732441471571907f, 2.040133779264213f, 2.1070234113712374f, 2.17391304347826f, 2.240802675585284f, 2.3076923076923066f, 2.374581939799331f, 2.4414715719063533f, 2.5083612040133776f, 2.5752508361204f, 2.6421404682274243f, 2.709030100334447f, 2.775919732441471f, 2.8428093645484935f, 2.909698996655518f, 2.976588628762542f, 3.0434782608695645f, 3.1103678929765888f, 3.1772575250836113f, 3.2441471571906355f, 3.311036789297658f, 3.3779264214046822f, 3.4448160535117047f, 3.511705685618729f, 3.5785953177257515f, 3.6454849498327757f, 3.712374581939798f, 3.7792642140468224f, 3.846153846153845f, 3.913043478260869f, 3.9799331103678917f, 4.046822742474916f, 4.113712374581938f, 4.180602006688963f, 4.247491638795985f, 4.314381270903009f, 4.381270903010034f, 4.448160535117056f, 4.51505016722408f, 4.581939799331103f, 4.648829431438127f, 4.71571906354515f, 4.782608695652174f, 4.849498327759196f, 4.916387959866221f, 4.983277591973243f, 5.050167224080267f, 5.11705685618729f, 5.183946488294314f, 5.2508361204013365f, 5.317725752508361f, 5.384615384615383f, 5.4515050167224075f, 5.51839464882943f, 5.585284280936454f, 5.652173913043477f, 5.719063545150501f, 5.785953177257525f, 5.852842809364548f, 5.919732441471572f, 5.986622073578594f, 6.053511705685619f, 6.120401337792643f, 6.187290969899664f, 6.254180602006688f, 6.321070234113712f, 6.387959866220736f, 6.454849498327757f, 6.521739130434781f, 6.588628762541806f, 6.65551839464883f, 6.722408026755851f, 6.789297658862875f, 6.856187290969899f, 6.923076923076923f, 6.989966555183944f, 7.056856187290968f, 7.123745819397993f, 7.190635451505017f, 7.257525083612041f, 7.324414715719062f, 7.391304347826086f, 7.45819397993311f, 7.5250836120401345f, 7.591973244147155f, 7.6588628762541795f, 7.725752508361204f, 7.792642140468228f, 7.859531772575249f, 7.926421404682273f, 7.993311036789297f, 8.060200668896321f, 8.127090301003342f, 8.193979933110366f, 8.26086956521739f, 8.327759197324415f, 8.394648829431436f, 8.46153846153846f, 8.528428093645484f, 8.595317725752508f, 8.662207357859533f, 8.729096989966553f, 8.795986622073578f, 8.862876254180602f, 8.929765886287626f, 8.996655518394647f, 9.063545150501671f, 9.130434782608695f, 9.19732441471572f, 9.26421404682274f, 9.331103678929765f, 9.397993311036789f, 9.464882943143813f, 9.531772575250834f, 9.598662207357858f, 9.665551839464882f, 9.732441471571907f, 9.799331103678927f, 9.866220735785951f, 9.933110367892976f, 10.0f})
217                         }, { // placeholder1
218                             .type = TestOperandType::TENSOR_FLOAT32,
219                             .dimensions = {1},
220                             .numberOfConsumers = 1,
221                             .scale = 0.0f,
222                             .zeroPoint = 0,
223                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
224                             .channelQuant = {},
225                             .isIgnored = false,
226                             .data = TestBuffer::createFromVector<float>({0.0f})
227                         }, { // param14
228                             .type = TestOperandType::INT32,
229                             .dimensions = {},
230                             .numberOfConsumers = 1,
231                             .scale = 0.0f,
232                             .zeroPoint = 0,
233                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
234                             .channelQuant = {},
235                             .isIgnored = false,
236                             .data = TestBuffer::createFromVector<int32_t>({0})
237                         }},
238                 .operations = {{
239                             .type = TestOperationType::ADD,
240                             .inputs = {2, 3, 4},
241                             .outputs = {0}
242                         }, {
243                             .type = TestOperationType::QUANTIZE,
244                             .inputs = {0},
245                             .outputs = {1}
246                         }},
247                 .inputIndexes = {2},
248                 .outputIndexes = {1}
249             },
250         .referenced = {},
251         .isRelaxed = false,
252         .expectedMultinomialDistributionTolerance = 0,
253         .expectFailure = false,
254         .minSupportedVersion = TestHalVersion::V1_2
255     };
256     return model;
257 }
258 
259 const auto dummy_test_model_quant8_all_inputs_as_internal_2 = TestModelManager::get().add("quantize_quant8_all_inputs_as_internal_2", get_test_model_quant8_all_inputs_as_internal_2());
260 
261 }  // namespace generated_tests::quantize
262 
263 namespace generated_tests::quantize {
264 
get_test_model_quant8_3()265 const TestModel& get_test_model_quant8_3() {
266     static TestModel model = {
267         .main = {
268                 .operands = {{ // input02
269                             .type = TestOperandType::TENSOR_FLOAT32,
270                             .dimensions = {300},
271                             .numberOfConsumers = 1,
272                             .scale = 0.0f,
273                             .zeroPoint = 0,
274                             .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
275                             .channelQuant = {},
276                             .isIgnored = false,
277                             .data = TestBuffer::createFromVector<float>({-10.0f, -9.933110367892976f, -9.866220735785953f, -9.799331103678929f, -9.732441471571907f, -9.665551839464882f, -9.59866220735786f, -9.531772575250836f, -9.464882943143813f, -9.397993311036789f, -9.331103678929766f, -9.264214046822742f, -9.19732441471572f, -9.130434782608695f, -9.063545150501673f, -8.996655518394649f, -8.929765886287626f, -8.862876254180602f, -8.79598662207358f, -8.729096989966555f, -8.662207357859533f, -8.595317725752508f, -8.528428093645484f, -8.461538461538462f, -8.39464882943144f, -8.327759197324415f, -8.26086956521739f, -8.193979933110368f, -8.127090301003344f, -8.060200668896321f, -7.993311036789297f, -7.926421404682275f, -7.8595317725752505f, -7.792642140468228f, -7.725752508361204f, -7.658862876254181f, -7.591973244147157f, -7.5250836120401345f, -7.45819397993311f, -7.391304347826087f, -7.3244147157190636f, -7.25752508361204f, -7.190635451505017f, -7.1237458193979935f, -7.05685618729097f, -6.989966555183947f, -6.923076923076923f, -6.8561872909699f, -6.789297658862877f, -6.722408026755852f, -6.65551839464883f, -6.588628762541806f, -6.521739130434783f, -6.454849498327759f, -6.387959866220736f, -6.321070234113712f, -6.25418060200669f, -6.187290969899665f, -6.120401337792643f, -6.053511705685619f, -5.986622073578595f, -5.919732441471572f, -5.852842809364549f, -5.785953177257525f, -5.719063545150502f, -5.6521739130434785f, -5.585284280936455f, -5.518394648829432f, -5.451505016722408f, -5.384615384615385f, -5.317725752508362f, -5.250836120401338f, -5.183946488294315f, -5.117056856187292f, -5.050167224080268f, -4.983277591973244f, -4.916387959866221f, -4.849498327759197f, -4.782608695652174f, -4.7157190635451505f, -4.648829431438127f, -4.581939799331104f, -4.51505016722408f, -4.448160535117057f, -4.381270903010034f, -4.31438127090301f, -4.247491638795987f, -4.1806020066889635f, -4.11371237458194f, -4.046822742474917f, -3.9799331103678934f, -3.91304347826087f, -3.8461538461538467f, -3.7792642140468233f, -3.7123745819398f, -3.6454849498327766f, -3.5785953177257532f, -3.511705685618729f, -3.4448160535117056f, -3.3779264214046822f, -3.311036789297659f, -3.2441471571906355f, -3.177257525083612f, -3.1103678929765888f, -3.0434782608695654f, -2.976588628762542f, -2.9096989966555187f, -2.8428093645484953f, -2.775919732441472f, -2.7090301003344486f, -2.642140468227425f, -2.575250836120402f, -2.5083612040133785f, -2.441471571906355f, -2.3745819397993317f, -2.3076923076923084f, -2.240802675585285f, -2.1739130434782616f, -2.1070234113712374f, -2.040133779264214f, -1.9732441471571907f, -1.9063545150501682f, -1.839464882943144f, -1.7725752508361214f, -1.7056856187290972f, -1.6387959866220747f, -1.5719063545150505f, -1.505016722408028f, -1.4381270903010037f, -1.3712374581939795f, -1.304347826086957f, -1.2374581939799327f, -1.1705685618729103f, -1.103678929765886f, -1.0367892976588635f, -0.9698996655518393f, -0.9030100334448168f, -0.8361204013377925f, -0.76923076923077f, -0.7023411371237458f, -0.6354515050167233f, -0.5685618729096991f, -0.5016722408026766f, -0.43478260869565233f, -0.36789297658862985f, -0.3010033444816056f, -0.23411371237458312f, -0.16722408026755886f, -0.10033444816053638f, -0.03344481605351213f, 0.03344481605351213f, 0.1003344481605346f, 0.16722408026755886f, 0.23411371237458134f, 0.3010033444816056f, 0.3678929765886281f, 0.43478260869565233f, 0.5016722408026748f, 0.5685618729096991f, 0.6354515050167215f, 0.7023411371237458f, 0.7692307692307683f, 0.8361204013377925f, 0.903010033444815f, 0.9698996655518393f, 1.0367892976588617f, 1.103678929765886f, 1.1705685618729085f, 1.2374581939799327f, 1.3043478260869552f, 1.3712374581939795f, 1.4381270903010037f, 1.5050167224080262f, 1.5719063545150505f, 1.638795986622073f, 1.7056856187290972f, 1.7725752508361197f, 1.839464882943144f, 1.9063545150501664f, 1.9732441471571907f, 2.040133779264213f, 2.1070234113712374f, 2.17391304347826f, 2.240802675585284f, 2.3076923076923066f, 2.374581939799331f, 2.4414715719063533f, 2.5083612040133776f, 2.5752508361204f, 2.6421404682274243f, 2.709030100334447f, 2.775919732441471f, 2.8428093645484935f, 2.909698996655518f, 2.976588628762542f, 3.0434782608695645f, 3.1103678929765888f, 3.1772575250836113f, 3.2441471571906355f, 3.311036789297658f, 3.3779264214046822f, 3.4448160535117047f, 3.511705685618729f, 3.5785953177257515f, 3.6454849498327757f, 3.712374581939798f, 3.7792642140468224f, 3.846153846153845f, 3.913043478260869f, 3.9799331103678917f, 4.046822742474916f, 4.113712374581938f, 4.180602006688963f, 4.247491638795985f, 4.314381270903009f, 4.381270903010034f, 4.448160535117056f, 4.51505016722408f, 4.581939799331103f, 4.648829431438127f, 4.71571906354515f, 4.782608695652174f, 4.849498327759196f, 4.916387959866221f, 4.983277591973243f, 5.050167224080267f, 5.11705685618729f, 5.183946488294314f, 5.2508361204013365f, 5.317725752508361f, 5.384615384615383f, 5.4515050167224075f, 5.51839464882943f, 5.585284280936454f, 5.652173913043477f, 5.719063545150501f, 5.785953177257525f, 5.852842809364548f, 5.919732441471572f, 5.986622073578594f, 6.053511705685619f, 6.120401337792643f, 6.187290969899664f, 6.254180602006688f, 6.321070234113712f, 6.387959866220736f, 6.454849498327757f, 6.521739130434781f, 6.588628762541806f, 6.65551839464883f, 6.722408026755851f, 6.789297658862875f, 6.856187290969899f, 6.923076923076923f, 6.989966555183944f, 7.056856187290968f, 7.123745819397993f, 7.190635451505017f, 7.257525083612041f, 7.324414715719062f, 7.391304347826086f, 7.45819397993311f, 7.5250836120401345f, 7.591973244147155f, 7.6588628762541795f, 7.725752508361204f, 7.792642140468228f, 7.859531772575249f, 7.926421404682273f, 7.993311036789297f, 8.060200668896321f, 8.127090301003342f, 8.193979933110366f, 8.26086956521739f, 8.327759197324415f, 8.394648829431436f, 8.46153846153846f, 8.528428093645484f, 8.595317725752508f, 8.662207357859533f, 8.729096989966553f, 8.795986622073578f, 8.862876254180602f, 8.929765886287626f, 8.996655518394647f, 9.063545150501671f, 9.130434782608695f, 9.19732441471572f, 9.26421404682274f, 9.331103678929765f, 9.397993311036789f, 9.464882943143813f, 9.531772575250834f, 9.598662207357858f, 9.665551839464882f, 9.732441471571907f, 9.799331103678927f, 9.866220735785951f, 9.933110367892976f, 10.0f})
278                         }, { // output02
279                             .type = TestOperandType::TENSOR_QUANT8_ASYMM,
280                             .dimensions = {300},
281                             .numberOfConsumers = 0,
282                             .scale = 0.01f,
283                             .zeroPoint = 120,
284                             .lifetime = TestOperandLifeTime::SUBGRAPH_OUTPUT,
285                             .channelQuant = {},
286                             .isIgnored = false,
287                             .data = TestBuffer::createFromVector<uint8_t>({0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 10, 16, 23, 30, 36, 43, 50, 56, 63, 70, 77, 83, 90, 97, 103, 110, 117, 123, 130, 137, 143, 150, 157, 163, 170, 177, 184, 190, 197, 204, 210, 217, 224, 230, 237, 244, 250, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255})
288                         }},
289                 .operations = {{
290                             .type = TestOperationType::QUANTIZE,
291                             .inputs = {0},
292                             .outputs = {1}
293                         }},
294                 .inputIndexes = {0},
295                 .outputIndexes = {1}
296             },
297         .referenced = {},
298         .isRelaxed = false,
299         .expectedMultinomialDistributionTolerance = 0,
300         .expectFailure = false,
301         .minSupportedVersion = TestHalVersion::V1_2
302     };
303     return model;
304 }
305 
306 const auto dummy_test_model_quant8_3 = TestModelManager::get().add("quantize_quant8_3", get_test_model_quant8_3());
307 
308 }  // namespace generated_tests::quantize
309 
310 namespace generated_tests::quantize {
311 
get_test_model_quant8_all_inputs_as_internal_3()312 const TestModel& get_test_model_quant8_all_inputs_as_internal_3() {
313     static TestModel model = {
314         .main = {
315                 .operands = {{ // input02
316                             .type = TestOperandType::TENSOR_FLOAT32,
317                             .dimensions = {300},
318                             .numberOfConsumers = 1,
319                             .scale = 0.0f,
320                             .zeroPoint = 0,
321                             .lifetime = TestOperandLifeTime::TEMPORARY_VARIABLE,
322                             .channelQuant = {},
323                             .isIgnored = false,
324                             .data = TestBuffer::createFromVector<float>({})
325                         }, { // output02
326                             .type = TestOperandType::TENSOR_QUANT8_ASYMM,
327                             .dimensions = {300},
328                             .numberOfConsumers = 0,
329                             .scale = 0.01f,
330                             .zeroPoint = 120,
331                             .lifetime = TestOperandLifeTime::SUBGRAPH_OUTPUT,
332                             .channelQuant = {},
333                             .isIgnored = false,
334                             .data = TestBuffer::createFromVector<uint8_t>({0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 10, 16, 23, 30, 36, 43, 50, 56, 63, 70, 77, 83, 90, 97, 103, 110, 117, 123, 130, 137, 143, 150, 157, 163, 170, 177, 184, 190, 197, 204, 210, 217, 224, 230, 237, 244, 250, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255})
335                         }, { // input02_new
336                             .type = TestOperandType::TENSOR_FLOAT32,
337                             .dimensions = {300},
338                             .numberOfConsumers = 1,
339                             .scale = 0.0f,
340                             .zeroPoint = 0,
341                             .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
342                             .channelQuant = {},
343                             .isIgnored = false,
344                             .data = TestBuffer::createFromVector<float>({-10.0f, -9.933110367892976f, -9.866220735785953f, -9.799331103678929f, -9.732441471571907f, -9.665551839464882f, -9.59866220735786f, -9.531772575250836f, -9.464882943143813f, -9.397993311036789f, -9.331103678929766f, -9.264214046822742f, -9.19732441471572f, -9.130434782608695f, -9.063545150501673f, -8.996655518394649f, -8.929765886287626f, -8.862876254180602f, -8.79598662207358f, -8.729096989966555f, -8.662207357859533f, -8.595317725752508f, -8.528428093645484f, -8.461538461538462f, -8.39464882943144f, -8.327759197324415f, -8.26086956521739f, -8.193979933110368f, -8.127090301003344f, -8.060200668896321f, -7.993311036789297f, -7.926421404682275f, -7.8595317725752505f, -7.792642140468228f, -7.725752508361204f, -7.658862876254181f, -7.591973244147157f, -7.5250836120401345f, -7.45819397993311f, -7.391304347826087f, -7.3244147157190636f, -7.25752508361204f, -7.190635451505017f, -7.1237458193979935f, -7.05685618729097f, -6.989966555183947f, -6.923076923076923f, -6.8561872909699f, -6.789297658862877f, -6.722408026755852f, -6.65551839464883f, -6.588628762541806f, -6.521739130434783f, -6.454849498327759f, -6.387959866220736f, -6.321070234113712f, -6.25418060200669f, -6.187290969899665f, -6.120401337792643f, -6.053511705685619f, -5.986622073578595f, -5.919732441471572f, -5.852842809364549f, -5.785953177257525f, -5.719063545150502f, -5.6521739130434785f, -5.585284280936455f, -5.518394648829432f, -5.451505016722408f, -5.384615384615385f, -5.317725752508362f, -5.250836120401338f, -5.183946488294315f, -5.117056856187292f, -5.050167224080268f, -4.983277591973244f, -4.916387959866221f, -4.849498327759197f, -4.782608695652174f, -4.7157190635451505f, -4.648829431438127f, -4.581939799331104f, -4.51505016722408f, -4.448160535117057f, -4.381270903010034f, -4.31438127090301f, -4.247491638795987f, -4.1806020066889635f, -4.11371237458194f, -4.046822742474917f, -3.9799331103678934f, -3.91304347826087f, -3.8461538461538467f, -3.7792642140468233f, -3.7123745819398f, -3.6454849498327766f, -3.5785953177257532f, -3.511705685618729f, -3.4448160535117056f, -3.3779264214046822f, -3.311036789297659f, -3.2441471571906355f, -3.177257525083612f, -3.1103678929765888f, -3.0434782608695654f, -2.976588628762542f, -2.9096989966555187f, -2.8428093645484953f, -2.775919732441472f, -2.7090301003344486f, -2.642140468227425f, -2.575250836120402f, -2.5083612040133785f, -2.441471571906355f, -2.3745819397993317f, -2.3076923076923084f, -2.240802675585285f, -2.1739130434782616f, -2.1070234113712374f, -2.040133779264214f, -1.9732441471571907f, -1.9063545150501682f, -1.839464882943144f, -1.7725752508361214f, -1.7056856187290972f, -1.6387959866220747f, -1.5719063545150505f, -1.505016722408028f, -1.4381270903010037f, -1.3712374581939795f, -1.304347826086957f, -1.2374581939799327f, -1.1705685618729103f, -1.103678929765886f, -1.0367892976588635f, -0.9698996655518393f, -0.9030100334448168f, -0.8361204013377925f, -0.76923076923077f, -0.7023411371237458f, -0.6354515050167233f, -0.5685618729096991f, -0.5016722408026766f, -0.43478260869565233f, -0.36789297658862985f, -0.3010033444816056f, -0.23411371237458312f, -0.16722408026755886f, -0.10033444816053638f, -0.03344481605351213f, 0.03344481605351213f, 0.1003344481605346f, 0.16722408026755886f, 0.23411371237458134f, 0.3010033444816056f, 0.3678929765886281f, 0.43478260869565233f, 0.5016722408026748f, 0.5685618729096991f, 0.6354515050167215f, 0.7023411371237458f, 0.7692307692307683f, 0.8361204013377925f, 0.903010033444815f, 0.9698996655518393f, 1.0367892976588617f, 1.103678929765886f, 1.1705685618729085f, 1.2374581939799327f, 1.3043478260869552f, 1.3712374581939795f, 1.4381270903010037f, 1.5050167224080262f, 1.5719063545150505f, 1.638795986622073f, 1.7056856187290972f, 1.7725752508361197f, 1.839464882943144f, 1.9063545150501664f, 1.9732441471571907f, 2.040133779264213f, 2.1070234113712374f, 2.17391304347826f, 2.240802675585284f, 2.3076923076923066f, 2.374581939799331f, 2.4414715719063533f, 2.5083612040133776f, 2.5752508361204f, 2.6421404682274243f, 2.709030100334447f, 2.775919732441471f, 2.8428093645484935f, 2.909698996655518f, 2.976588628762542f, 3.0434782608695645f, 3.1103678929765888f, 3.1772575250836113f, 3.2441471571906355f, 3.311036789297658f, 3.3779264214046822f, 3.4448160535117047f, 3.511705685618729f, 3.5785953177257515f, 3.6454849498327757f, 3.712374581939798f, 3.7792642140468224f, 3.846153846153845f, 3.913043478260869f, 3.9799331103678917f, 4.046822742474916f, 4.113712374581938f, 4.180602006688963f, 4.247491638795985f, 4.314381270903009f, 4.381270903010034f, 4.448160535117056f, 4.51505016722408f, 4.581939799331103f, 4.648829431438127f, 4.71571906354515f, 4.782608695652174f, 4.849498327759196f, 4.916387959866221f, 4.983277591973243f, 5.050167224080267f, 5.11705685618729f, 5.183946488294314f, 5.2508361204013365f, 5.317725752508361f, 5.384615384615383f, 5.4515050167224075f, 5.51839464882943f, 5.585284280936454f, 5.652173913043477f, 5.719063545150501f, 5.785953177257525f, 5.852842809364548f, 5.919732441471572f, 5.986622073578594f, 6.053511705685619f, 6.120401337792643f, 6.187290969899664f, 6.254180602006688f, 6.321070234113712f, 6.387959866220736f, 6.454849498327757f, 6.521739130434781f, 6.588628762541806f, 6.65551839464883f, 6.722408026755851f, 6.789297658862875f, 6.856187290969899f, 6.923076923076923f, 6.989966555183944f, 7.056856187290968f, 7.123745819397993f, 7.190635451505017f, 7.257525083612041f, 7.324414715719062f, 7.391304347826086f, 7.45819397993311f, 7.5250836120401345f, 7.591973244147155f, 7.6588628762541795f, 7.725752508361204f, 7.792642140468228f, 7.859531772575249f, 7.926421404682273f, 7.993311036789297f, 8.060200668896321f, 8.127090301003342f, 8.193979933110366f, 8.26086956521739f, 8.327759197324415f, 8.394648829431436f, 8.46153846153846f, 8.528428093645484f, 8.595317725752508f, 8.662207357859533f, 8.729096989966553f, 8.795986622073578f, 8.862876254180602f, 8.929765886287626f, 8.996655518394647f, 9.063545150501671f, 9.130434782608695f, 9.19732441471572f, 9.26421404682274f, 9.331103678929765f, 9.397993311036789f, 9.464882943143813f, 9.531772575250834f, 9.598662207357858f, 9.665551839464882f, 9.732441471571907f, 9.799331103678927f, 9.866220735785951f, 9.933110367892976f, 10.0f})
345                         }, { // placeholder2
346                             .type = TestOperandType::TENSOR_FLOAT32,
347                             .dimensions = {1},
348                             .numberOfConsumers = 1,
349                             .scale = 0.0f,
350                             .zeroPoint = 0,
351                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
352                             .channelQuant = {},
353                             .isIgnored = false,
354                             .data = TestBuffer::createFromVector<float>({0.0f})
355                         }, { // param15
356                             .type = TestOperandType::INT32,
357                             .dimensions = {},
358                             .numberOfConsumers = 1,
359                             .scale = 0.0f,
360                             .zeroPoint = 0,
361                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
362                             .channelQuant = {},
363                             .isIgnored = false,
364                             .data = TestBuffer::createFromVector<int32_t>({0})
365                         }},
366                 .operations = {{
367                             .type = TestOperationType::ADD,
368                             .inputs = {2, 3, 4},
369                             .outputs = {0}
370                         }, {
371                             .type = TestOperationType::QUANTIZE,
372                             .inputs = {0},
373                             .outputs = {1}
374                         }},
375                 .inputIndexes = {2},
376                 .outputIndexes = {1}
377             },
378         .referenced = {},
379         .isRelaxed = false,
380         .expectedMultinomialDistributionTolerance = 0,
381         .expectFailure = false,
382         .minSupportedVersion = TestHalVersion::V1_2
383     };
384     return model;
385 }
386 
387 const auto dummy_test_model_quant8_all_inputs_as_internal_3 = TestModelManager::get().add("quantize_quant8_all_inputs_as_internal_3", get_test_model_quant8_all_inputs_as_internal_3());
388 
389 }  // namespace generated_tests::quantize
390 
391 namespace generated_tests::quantize {
392 
get_test_model_quant8_4()393 const TestModel& get_test_model_quant8_4() {
394     static TestModel model = {
395         .main = {
396                 .operands = {{ // input03
397                             .type = TestOperandType::TENSOR_FLOAT32,
398                             .dimensions = {300},
399                             .numberOfConsumers = 1,
400                             .scale = 0.0f,
401                             .zeroPoint = 0,
402                             .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
403                             .channelQuant = {},
404                             .isIgnored = false,
405                             .data = TestBuffer::createFromVector<float>({-10.0f, -9.933110367892976f, -9.866220735785953f, -9.799331103678929f, -9.732441471571907f, -9.665551839464882f, -9.59866220735786f, -9.531772575250836f, -9.464882943143813f, -9.397993311036789f, -9.331103678929766f, -9.264214046822742f, -9.19732441471572f, -9.130434782608695f, -9.063545150501673f, -8.996655518394649f, -8.929765886287626f, -8.862876254180602f, -8.79598662207358f, -8.729096989966555f, -8.662207357859533f, -8.595317725752508f, -8.528428093645484f, -8.461538461538462f, -8.39464882943144f, -8.327759197324415f, -8.26086956521739f, -8.193979933110368f, -8.127090301003344f, -8.060200668896321f, -7.993311036789297f, -7.926421404682275f, -7.8595317725752505f, -7.792642140468228f, -7.725752508361204f, -7.658862876254181f, -7.591973244147157f, -7.5250836120401345f, -7.45819397993311f, -7.391304347826087f, -7.3244147157190636f, -7.25752508361204f, -7.190635451505017f, -7.1237458193979935f, -7.05685618729097f, -6.989966555183947f, -6.923076923076923f, -6.8561872909699f, -6.789297658862877f, -6.722408026755852f, -6.65551839464883f, -6.588628762541806f, -6.521739130434783f, -6.454849498327759f, -6.387959866220736f, -6.321070234113712f, -6.25418060200669f, -6.187290969899665f, -6.120401337792643f, -6.053511705685619f, -5.986622073578595f, -5.919732441471572f, -5.852842809364549f, -5.785953177257525f, -5.719063545150502f, -5.6521739130434785f, -5.585284280936455f, -5.518394648829432f, -5.451505016722408f, -5.384615384615385f, -5.317725752508362f, -5.250836120401338f, -5.183946488294315f, -5.117056856187292f, -5.050167224080268f, -4.983277591973244f, -4.916387959866221f, -4.849498327759197f, -4.782608695652174f, -4.7157190635451505f, -4.648829431438127f, -4.581939799331104f, -4.51505016722408f, -4.448160535117057f, -4.381270903010034f, -4.31438127090301f, -4.247491638795987f, -4.1806020066889635f, -4.11371237458194f, -4.046822742474917f, -3.9799331103678934f, -3.91304347826087f, -3.8461538461538467f, -3.7792642140468233f, -3.7123745819398f, -3.6454849498327766f, -3.5785953177257532f, -3.511705685618729f, -3.4448160535117056f, -3.3779264214046822f, -3.311036789297659f, -3.2441471571906355f, -3.177257525083612f, -3.1103678929765888f, -3.0434782608695654f, -2.976588628762542f, -2.9096989966555187f, -2.8428093645484953f, -2.775919732441472f, -2.7090301003344486f, -2.642140468227425f, -2.575250836120402f, -2.5083612040133785f, -2.441471571906355f, -2.3745819397993317f, -2.3076923076923084f, -2.240802675585285f, -2.1739130434782616f, -2.1070234113712374f, -2.040133779264214f, -1.9732441471571907f, -1.9063545150501682f, -1.839464882943144f, -1.7725752508361214f, -1.7056856187290972f, -1.6387959866220747f, -1.5719063545150505f, -1.505016722408028f, -1.4381270903010037f, -1.3712374581939795f, -1.304347826086957f, -1.2374581939799327f, -1.1705685618729103f, -1.103678929765886f, -1.0367892976588635f, -0.9698996655518393f, -0.9030100334448168f, -0.8361204013377925f, -0.76923076923077f, -0.7023411371237458f, -0.6354515050167233f, -0.5685618729096991f, -0.5016722408026766f, -0.43478260869565233f, -0.36789297658862985f, -0.3010033444816056f, -0.23411371237458312f, -0.16722408026755886f, -0.10033444816053638f, -0.03344481605351213f, 0.03344481605351213f, 0.1003344481605346f, 0.16722408026755886f, 0.23411371237458134f, 0.3010033444816056f, 0.3678929765886281f, 0.43478260869565233f, 0.5016722408026748f, 0.5685618729096991f, 0.6354515050167215f, 0.7023411371237458f, 0.7692307692307683f, 0.8361204013377925f, 0.903010033444815f, 0.9698996655518393f, 1.0367892976588617f, 1.103678929765886f, 1.1705685618729085f, 1.2374581939799327f, 1.3043478260869552f, 1.3712374581939795f, 1.4381270903010037f, 1.5050167224080262f, 1.5719063545150505f, 1.638795986622073f, 1.7056856187290972f, 1.7725752508361197f, 1.839464882943144f, 1.9063545150501664f, 1.9732441471571907f, 2.040133779264213f, 2.1070234113712374f, 2.17391304347826f, 2.240802675585284f, 2.3076923076923066f, 2.374581939799331f, 2.4414715719063533f, 2.5083612040133776f, 2.5752508361204f, 2.6421404682274243f, 2.709030100334447f, 2.775919732441471f, 2.8428093645484935f, 2.909698996655518f, 2.976588628762542f, 3.0434782608695645f, 3.1103678929765888f, 3.1772575250836113f, 3.2441471571906355f, 3.311036789297658f, 3.3779264214046822f, 3.4448160535117047f, 3.511705685618729f, 3.5785953177257515f, 3.6454849498327757f, 3.712374581939798f, 3.7792642140468224f, 3.846153846153845f, 3.913043478260869f, 3.9799331103678917f, 4.046822742474916f, 4.113712374581938f, 4.180602006688963f, 4.247491638795985f, 4.314381270903009f, 4.381270903010034f, 4.448160535117056f, 4.51505016722408f, 4.581939799331103f, 4.648829431438127f, 4.71571906354515f, 4.782608695652174f, 4.849498327759196f, 4.916387959866221f, 4.983277591973243f, 5.050167224080267f, 5.11705685618729f, 5.183946488294314f, 5.2508361204013365f, 5.317725752508361f, 5.384615384615383f, 5.4515050167224075f, 5.51839464882943f, 5.585284280936454f, 5.652173913043477f, 5.719063545150501f, 5.785953177257525f, 5.852842809364548f, 5.919732441471572f, 5.986622073578594f, 6.053511705685619f, 6.120401337792643f, 6.187290969899664f, 6.254180602006688f, 6.321070234113712f, 6.387959866220736f, 6.454849498327757f, 6.521739130434781f, 6.588628762541806f, 6.65551839464883f, 6.722408026755851f, 6.789297658862875f, 6.856187290969899f, 6.923076923076923f, 6.989966555183944f, 7.056856187290968f, 7.123745819397993f, 7.190635451505017f, 7.257525083612041f, 7.324414715719062f, 7.391304347826086f, 7.45819397993311f, 7.5250836120401345f, 7.591973244147155f, 7.6588628762541795f, 7.725752508361204f, 7.792642140468228f, 7.859531772575249f, 7.926421404682273f, 7.993311036789297f, 8.060200668896321f, 8.127090301003342f, 8.193979933110366f, 8.26086956521739f, 8.327759197324415f, 8.394648829431436f, 8.46153846153846f, 8.528428093645484f, 8.595317725752508f, 8.662207357859533f, 8.729096989966553f, 8.795986622073578f, 8.862876254180602f, 8.929765886287626f, 8.996655518394647f, 9.063545150501671f, 9.130434782608695f, 9.19732441471572f, 9.26421404682274f, 9.331103678929765f, 9.397993311036789f, 9.464882943143813f, 9.531772575250834f, 9.598662207357858f, 9.665551839464882f, 9.732441471571907f, 9.799331103678927f, 9.866220735785951f, 9.933110367892976f, 10.0f})
406                         }, { // output03
407                             .type = TestOperandType::TENSOR_QUANT8_ASYMM,
408                             .dimensions = {300},
409                             .numberOfConsumers = 0,
410                             .scale = 10.0f,
411                             .zeroPoint = 120,
412                             .lifetime = TestOperandLifeTime::SUBGRAPH_OUTPUT,
413                             .channelQuant = {},
414                             .isIgnored = false,
415                             .data = TestBuffer::createFromVector<uint8_t>({119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121})
416                         }},
417                 .operations = {{
418                             .type = TestOperationType::QUANTIZE,
419                             .inputs = {0},
420                             .outputs = {1}
421                         }},
422                 .inputIndexes = {0},
423                 .outputIndexes = {1}
424             },
425         .referenced = {},
426         .isRelaxed = false,
427         .expectedMultinomialDistributionTolerance = 0,
428         .expectFailure = false,
429         .minSupportedVersion = TestHalVersion::V1_2
430     };
431     return model;
432 }
433 
434 const auto dummy_test_model_quant8_4 = TestModelManager::get().add("quantize_quant8_4", get_test_model_quant8_4());
435 
436 }  // namespace generated_tests::quantize
437 
438 namespace generated_tests::quantize {
439 
get_test_model_quant8_all_inputs_as_internal_4()440 const TestModel& get_test_model_quant8_all_inputs_as_internal_4() {
441     static TestModel model = {
442         .main = {
443                 .operands = {{ // input03
444                             .type = TestOperandType::TENSOR_FLOAT32,
445                             .dimensions = {300},
446                             .numberOfConsumers = 1,
447                             .scale = 0.0f,
448                             .zeroPoint = 0,
449                             .lifetime = TestOperandLifeTime::TEMPORARY_VARIABLE,
450                             .channelQuant = {},
451                             .isIgnored = false,
452                             .data = TestBuffer::createFromVector<float>({})
453                         }, { // output03
454                             .type = TestOperandType::TENSOR_QUANT8_ASYMM,
455                             .dimensions = {300},
456                             .numberOfConsumers = 0,
457                             .scale = 10.0f,
458                             .zeroPoint = 120,
459                             .lifetime = TestOperandLifeTime::SUBGRAPH_OUTPUT,
460                             .channelQuant = {},
461                             .isIgnored = false,
462                             .data = TestBuffer::createFromVector<uint8_t>({119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121})
463                         }, { // input03_new
464                             .type = TestOperandType::TENSOR_FLOAT32,
465                             .dimensions = {300},
466                             .numberOfConsumers = 1,
467                             .scale = 0.0f,
468                             .zeroPoint = 0,
469                             .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
470                             .channelQuant = {},
471                             .isIgnored = false,
472                             .data = TestBuffer::createFromVector<float>({-10.0f, -9.933110367892976f, -9.866220735785953f, -9.799331103678929f, -9.732441471571907f, -9.665551839464882f, -9.59866220735786f, -9.531772575250836f, -9.464882943143813f, -9.397993311036789f, -9.331103678929766f, -9.264214046822742f, -9.19732441471572f, -9.130434782608695f, -9.063545150501673f, -8.996655518394649f, -8.929765886287626f, -8.862876254180602f, -8.79598662207358f, -8.729096989966555f, -8.662207357859533f, -8.595317725752508f, -8.528428093645484f, -8.461538461538462f, -8.39464882943144f, -8.327759197324415f, -8.26086956521739f, -8.193979933110368f, -8.127090301003344f, -8.060200668896321f, -7.993311036789297f, -7.926421404682275f, -7.8595317725752505f, -7.792642140468228f, -7.725752508361204f, -7.658862876254181f, -7.591973244147157f, -7.5250836120401345f, -7.45819397993311f, -7.391304347826087f, -7.3244147157190636f, -7.25752508361204f, -7.190635451505017f, -7.1237458193979935f, -7.05685618729097f, -6.989966555183947f, -6.923076923076923f, -6.8561872909699f, -6.789297658862877f, -6.722408026755852f, -6.65551839464883f, -6.588628762541806f, -6.521739130434783f, -6.454849498327759f, -6.387959866220736f, -6.321070234113712f, -6.25418060200669f, -6.187290969899665f, -6.120401337792643f, -6.053511705685619f, -5.986622073578595f, -5.919732441471572f, -5.852842809364549f, -5.785953177257525f, -5.719063545150502f, -5.6521739130434785f, -5.585284280936455f, -5.518394648829432f, -5.451505016722408f, -5.384615384615385f, -5.317725752508362f, -5.250836120401338f, -5.183946488294315f, -5.117056856187292f, -5.050167224080268f, -4.983277591973244f, -4.916387959866221f, -4.849498327759197f, -4.782608695652174f, -4.7157190635451505f, -4.648829431438127f, -4.581939799331104f, -4.51505016722408f, -4.448160535117057f, -4.381270903010034f, -4.31438127090301f, -4.247491638795987f, -4.1806020066889635f, -4.11371237458194f, -4.046822742474917f, -3.9799331103678934f, -3.91304347826087f, -3.8461538461538467f, -3.7792642140468233f, -3.7123745819398f, -3.6454849498327766f, -3.5785953177257532f, -3.511705685618729f, -3.4448160535117056f, -3.3779264214046822f, -3.311036789297659f, -3.2441471571906355f, -3.177257525083612f, -3.1103678929765888f, -3.0434782608695654f, -2.976588628762542f, -2.9096989966555187f, -2.8428093645484953f, -2.775919732441472f, -2.7090301003344486f, -2.642140468227425f, -2.575250836120402f, -2.5083612040133785f, -2.441471571906355f, -2.3745819397993317f, -2.3076923076923084f, -2.240802675585285f, -2.1739130434782616f, -2.1070234113712374f, -2.040133779264214f, -1.9732441471571907f, -1.9063545150501682f, -1.839464882943144f, -1.7725752508361214f, -1.7056856187290972f, -1.6387959866220747f, -1.5719063545150505f, -1.505016722408028f, -1.4381270903010037f, -1.3712374581939795f, -1.304347826086957f, -1.2374581939799327f, -1.1705685618729103f, -1.103678929765886f, -1.0367892976588635f, -0.9698996655518393f, -0.9030100334448168f, -0.8361204013377925f, -0.76923076923077f, -0.7023411371237458f, -0.6354515050167233f, -0.5685618729096991f, -0.5016722408026766f, -0.43478260869565233f, -0.36789297658862985f, -0.3010033444816056f, -0.23411371237458312f, -0.16722408026755886f, -0.10033444816053638f, -0.03344481605351213f, 0.03344481605351213f, 0.1003344481605346f, 0.16722408026755886f, 0.23411371237458134f, 0.3010033444816056f, 0.3678929765886281f, 0.43478260869565233f, 0.5016722408026748f, 0.5685618729096991f, 0.6354515050167215f, 0.7023411371237458f, 0.7692307692307683f, 0.8361204013377925f, 0.903010033444815f, 0.9698996655518393f, 1.0367892976588617f, 1.103678929765886f, 1.1705685618729085f, 1.2374581939799327f, 1.3043478260869552f, 1.3712374581939795f, 1.4381270903010037f, 1.5050167224080262f, 1.5719063545150505f, 1.638795986622073f, 1.7056856187290972f, 1.7725752508361197f, 1.839464882943144f, 1.9063545150501664f, 1.9732441471571907f, 2.040133779264213f, 2.1070234113712374f, 2.17391304347826f, 2.240802675585284f, 2.3076923076923066f, 2.374581939799331f, 2.4414715719063533f, 2.5083612040133776f, 2.5752508361204f, 2.6421404682274243f, 2.709030100334447f, 2.775919732441471f, 2.8428093645484935f, 2.909698996655518f, 2.976588628762542f, 3.0434782608695645f, 3.1103678929765888f, 3.1772575250836113f, 3.2441471571906355f, 3.311036789297658f, 3.3779264214046822f, 3.4448160535117047f, 3.511705685618729f, 3.5785953177257515f, 3.6454849498327757f, 3.712374581939798f, 3.7792642140468224f, 3.846153846153845f, 3.913043478260869f, 3.9799331103678917f, 4.046822742474916f, 4.113712374581938f, 4.180602006688963f, 4.247491638795985f, 4.314381270903009f, 4.381270903010034f, 4.448160535117056f, 4.51505016722408f, 4.581939799331103f, 4.648829431438127f, 4.71571906354515f, 4.782608695652174f, 4.849498327759196f, 4.916387959866221f, 4.983277591973243f, 5.050167224080267f, 5.11705685618729f, 5.183946488294314f, 5.2508361204013365f, 5.317725752508361f, 5.384615384615383f, 5.4515050167224075f, 5.51839464882943f, 5.585284280936454f, 5.652173913043477f, 5.719063545150501f, 5.785953177257525f, 5.852842809364548f, 5.919732441471572f, 5.986622073578594f, 6.053511705685619f, 6.120401337792643f, 6.187290969899664f, 6.254180602006688f, 6.321070234113712f, 6.387959866220736f, 6.454849498327757f, 6.521739130434781f, 6.588628762541806f, 6.65551839464883f, 6.722408026755851f, 6.789297658862875f, 6.856187290969899f, 6.923076923076923f, 6.989966555183944f, 7.056856187290968f, 7.123745819397993f, 7.190635451505017f, 7.257525083612041f, 7.324414715719062f, 7.391304347826086f, 7.45819397993311f, 7.5250836120401345f, 7.591973244147155f, 7.6588628762541795f, 7.725752508361204f, 7.792642140468228f, 7.859531772575249f, 7.926421404682273f, 7.993311036789297f, 8.060200668896321f, 8.127090301003342f, 8.193979933110366f, 8.26086956521739f, 8.327759197324415f, 8.394648829431436f, 8.46153846153846f, 8.528428093645484f, 8.595317725752508f, 8.662207357859533f, 8.729096989966553f, 8.795986622073578f, 8.862876254180602f, 8.929765886287626f, 8.996655518394647f, 9.063545150501671f, 9.130434782608695f, 9.19732441471572f, 9.26421404682274f, 9.331103678929765f, 9.397993311036789f, 9.464882943143813f, 9.531772575250834f, 9.598662207357858f, 9.665551839464882f, 9.732441471571907f, 9.799331103678927f, 9.866220735785951f, 9.933110367892976f, 10.0f})
473                         }, { // placeholder3
474                             .type = TestOperandType::TENSOR_FLOAT32,
475                             .dimensions = {1},
476                             .numberOfConsumers = 1,
477                             .scale = 0.0f,
478                             .zeroPoint = 0,
479                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
480                             .channelQuant = {},
481                             .isIgnored = false,
482                             .data = TestBuffer::createFromVector<float>({0.0f})
483                         }, { // param16
484                             .type = TestOperandType::INT32,
485                             .dimensions = {},
486                             .numberOfConsumers = 1,
487                             .scale = 0.0f,
488                             .zeroPoint = 0,
489                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
490                             .channelQuant = {},
491                             .isIgnored = false,
492                             .data = TestBuffer::createFromVector<int32_t>({0})
493                         }},
494                 .operations = {{
495                             .type = TestOperationType::ADD,
496                             .inputs = {2, 3, 4},
497                             .outputs = {0}
498                         }, {
499                             .type = TestOperationType::QUANTIZE,
500                             .inputs = {0},
501                             .outputs = {1}
502                         }},
503                 .inputIndexes = {2},
504                 .outputIndexes = {1}
505             },
506         .referenced = {},
507         .isRelaxed = false,
508         .expectedMultinomialDistributionTolerance = 0,
509         .expectFailure = false,
510         .minSupportedVersion = TestHalVersion::V1_2
511     };
512     return model;
513 }
514 
515 const auto dummy_test_model_quant8_all_inputs_as_internal_4 = TestModelManager::get().add("quantize_quant8_all_inputs_as_internal_4", get_test_model_quant8_all_inputs_as_internal_4());
516 
517 }  // namespace generated_tests::quantize
518 
519 namespace generated_tests::quantize {
520 
get_test_model_quant8_5()521 const TestModel& get_test_model_quant8_5() {
522     static TestModel model = {
523         .main = {
524                 .operands = {{ // input04
525                             .type = TestOperandType::TENSOR_FLOAT16,
526                             .dimensions = {300},
527                             .numberOfConsumers = 1,
528                             .scale = 0.0f,
529                             .zeroPoint = 0,
530                             .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
531                             .channelQuant = {},
532                             .isIgnored = false,
533                             .data = TestBuffer::createFromVector<_Float16>({-10.0f, -9.933110367892976f, -9.866220735785953f, -9.799331103678929f, -9.732441471571907f, -9.665551839464882f, -9.59866220735786f, -9.531772575250836f, -9.464882943143813f, -9.397993311036789f, -9.331103678929766f, -9.264214046822742f, -9.19732441471572f, -9.130434782608695f, -9.063545150501673f, -8.996655518394649f, -8.929765886287626f, -8.862876254180602f, -8.79598662207358f, -8.729096989966555f, -8.662207357859533f, -8.595317725752508f, -8.528428093645484f, -8.461538461538462f, -8.39464882943144f, -8.327759197324415f, -8.26086956521739f, -8.193979933110368f, -8.127090301003344f, -8.060200668896321f, -7.993311036789297f, -7.926421404682275f, -7.8595317725752505f, -7.792642140468228f, -7.725752508361204f, -7.658862876254181f, -7.591973244147157f, -7.5250836120401345f, -7.45819397993311f, -7.391304347826087f, -7.3244147157190636f, -7.25752508361204f, -7.190635451505017f, -7.1237458193979935f, -7.05685618729097f, -6.989966555183947f, -6.923076923076923f, -6.8561872909699f, -6.789297658862877f, -6.722408026755852f, -6.65551839464883f, -6.588628762541806f, -6.521739130434783f, -6.454849498327759f, -6.387959866220736f, -6.321070234113712f, -6.25418060200669f, -6.187290969899665f, -6.120401337792643f, -6.053511705685619f, -5.986622073578595f, -5.919732441471572f, -5.852842809364549f, -5.785953177257525f, -5.719063545150502f, -5.6521739130434785f, -5.585284280936455f, -5.518394648829432f, -5.451505016722408f, -5.384615384615385f, -5.317725752508362f, -5.250836120401338f, -5.183946488294315f, -5.117056856187292f, -5.050167224080268f, -4.983277591973244f, -4.916387959866221f, -4.849498327759197f, -4.782608695652174f, -4.7157190635451505f, -4.648829431438127f, -4.581939799331104f, -4.51505016722408f, -4.448160535117057f, -4.381270903010034f, -4.31438127090301f, -4.247491638795987f, -4.1806020066889635f, -4.11371237458194f, -4.046822742474917f, -3.9799331103678934f, -3.91304347826087f, -3.8461538461538467f, -3.7792642140468233f, -3.7123745819398f, -3.6454849498327766f, -3.5785953177257532f, -3.511705685618729f, -3.4448160535117056f, -3.3779264214046822f, -3.311036789297659f, -3.2441471571906355f, -3.177257525083612f, -3.1103678929765888f, -3.0434782608695654f, -2.976588628762542f, -2.9096989966555187f, -2.8428093645484953f, -2.775919732441472f, -2.7090301003344486f, -2.642140468227425f, -2.575250836120402f, -2.5083612040133785f, -2.441471571906355f, -2.3745819397993317f, -2.3076923076923084f, -2.240802675585285f, -2.1739130434782616f, -2.1070234113712374f, -2.040133779264214f, -1.9732441471571907f, -1.9063545150501682f, -1.839464882943144f, -1.7725752508361214f, -1.7056856187290972f, -1.6387959866220747f, -1.5719063545150505f, -1.505016722408028f, -1.4381270903010037f, -1.3712374581939795f, -1.304347826086957f, -1.2374581939799327f, -1.1705685618729103f, -1.103678929765886f, -1.0367892976588635f, -0.9698996655518393f, -0.9030100334448168f, -0.8361204013377925f, -0.76923076923077f, -0.7023411371237458f, -0.6354515050167233f, -0.5685618729096991f, -0.5016722408026766f, -0.43478260869565233f, -0.36789297658862985f, -0.3010033444816056f, -0.23411371237458312f, -0.16722408026755886f, -0.10033444816053638f, -0.03344481605351213f, 0.03344481605351213f, 0.1003344481605346f, 0.16722408026755886f, 0.23411371237458134f, 0.3010033444816056f, 0.3678929765886281f, 0.43478260869565233f, 0.5016722408026748f, 0.5685618729096991f, 0.6354515050167215f, 0.7023411371237458f, 0.7692307692307683f, 0.8361204013377925f, 0.903010033444815f, 0.9698996655518393f, 1.0367892976588617f, 1.103678929765886f, 1.1705685618729085f, 1.2374581939799327f, 1.3043478260869552f, 1.3712374581939795f, 1.4381270903010037f, 1.5050167224080262f, 1.5719063545150505f, 1.638795986622073f, 1.7056856187290972f, 1.7725752508361197f, 1.839464882943144f, 1.9063545150501664f, 1.9732441471571907f, 2.040133779264213f, 2.1070234113712374f, 2.17391304347826f, 2.240802675585284f, 2.3076923076923066f, 2.374581939799331f, 2.4414715719063533f, 2.5083612040133776f, 2.5752508361204f, 2.6421404682274243f, 2.709030100334447f, 2.775919732441471f, 2.8428093645484935f, 2.909698996655518f, 2.976588628762542f, 3.0434782608695645f, 3.1103678929765888f, 3.1772575250836113f, 3.2441471571906355f, 3.311036789297658f, 3.3779264214046822f, 3.4448160535117047f, 3.511705685618729f, 3.5785953177257515f, 3.6454849498327757f, 3.712374581939798f, 3.7792642140468224f, 3.846153846153845f, 3.913043478260869f, 3.9799331103678917f, 4.046822742474916f, 4.113712374581938f, 4.180602006688963f, 4.247491638795985f, 4.314381270903009f, 4.381270903010034f, 4.448160535117056f, 4.51505016722408f, 4.581939799331103f, 4.648829431438127f, 4.71571906354515f, 4.782608695652174f, 4.849498327759196f, 4.916387959866221f, 4.983277591973243f, 5.050167224080267f, 5.11705685618729f, 5.183946488294314f, 5.2508361204013365f, 5.317725752508361f, 5.384615384615383f, 5.4515050167224075f, 5.51839464882943f, 5.585284280936454f, 5.652173913043477f, 5.719063545150501f, 5.785953177257525f, 5.852842809364548f, 5.919732441471572f, 5.986622073578594f, 6.053511705685619f, 6.120401337792643f, 6.187290969899664f, 6.254180602006688f, 6.321070234113712f, 6.387959866220736f, 6.454849498327757f, 6.521739130434781f, 6.588628762541806f, 6.65551839464883f, 6.722408026755851f, 6.789297658862875f, 6.856187290969899f, 6.923076923076923f, 6.989966555183944f, 7.056856187290968f, 7.123745819397993f, 7.190635451505017f, 7.257525083612041f, 7.324414715719062f, 7.391304347826086f, 7.45819397993311f, 7.5250836120401345f, 7.591973244147155f, 7.6588628762541795f, 7.725752508361204f, 7.792642140468228f, 7.859531772575249f, 7.926421404682273f, 7.993311036789297f, 8.060200668896321f, 8.127090301003342f, 8.193979933110366f, 8.26086956521739f, 8.327759197324415f, 8.394648829431436f, 8.46153846153846f, 8.528428093645484f, 8.595317725752508f, 8.662207357859533f, 8.729096989966553f, 8.795986622073578f, 8.862876254180602f, 8.929765886287626f, 8.996655518394647f, 9.063545150501671f, 9.130434782608695f, 9.19732441471572f, 9.26421404682274f, 9.331103678929765f, 9.397993311036789f, 9.464882943143813f, 9.531772575250834f, 9.598662207357858f, 9.665551839464882f, 9.732441471571907f, 9.799331103678927f, 9.866220735785951f, 9.933110367892976f, 10.0f})
534                         }, { // output04
535                             .type = TestOperandType::TENSOR_QUANT8_ASYMM,
536                             .dimensions = {300},
537                             .numberOfConsumers = 0,
538                             .scale = 1.0f,
539                             .zeroPoint = 0,
540                             .lifetime = TestOperandLifeTime::SUBGRAPH_OUTPUT,
541                             .channelQuant = {},
542                             .isIgnored = false,
543                             .data = TestBuffer::createFromVector<uint8_t>({0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10})
544                         }},
545                 .operations = {{
546                             .type = TestOperationType::QUANTIZE,
547                             .inputs = {0},
548                             .outputs = {1}
549                         }},
550                 .inputIndexes = {0},
551                 .outputIndexes = {1}
552             },
553         .referenced = {},
554         .isRelaxed = false,
555         .expectedMultinomialDistributionTolerance = 0,
556         .expectFailure = false,
557         .minSupportedVersion = TestHalVersion::V1_2
558     };
559     return model;
560 }
561 
562 const auto dummy_test_model_quant8_5 = TestModelManager::get().add("quantize_quant8_5", get_test_model_quant8_5());
563 
564 }  // namespace generated_tests::quantize
565 
566 namespace generated_tests::quantize {
567 
get_test_model_quant8_all_inputs_as_internal_5()568 const TestModel& get_test_model_quant8_all_inputs_as_internal_5() {
569     static TestModel model = {
570         .main = {
571                 .operands = {{ // input04
572                             .type = TestOperandType::TENSOR_FLOAT16,
573                             .dimensions = {300},
574                             .numberOfConsumers = 1,
575                             .scale = 0.0f,
576                             .zeroPoint = 0,
577                             .lifetime = TestOperandLifeTime::TEMPORARY_VARIABLE,
578                             .channelQuant = {},
579                             .isIgnored = false,
580                             .data = TestBuffer::createFromVector<_Float16>({})
581                         }, { // output04
582                             .type = TestOperandType::TENSOR_QUANT8_ASYMM,
583                             .dimensions = {300},
584                             .numberOfConsumers = 0,
585                             .scale = 1.0f,
586                             .zeroPoint = 0,
587                             .lifetime = TestOperandLifeTime::SUBGRAPH_OUTPUT,
588                             .channelQuant = {},
589                             .isIgnored = false,
590                             .data = TestBuffer::createFromVector<uint8_t>({0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10})
591                         }, { // input04_new
592                             .type = TestOperandType::TENSOR_FLOAT16,
593                             .dimensions = {300},
594                             .numberOfConsumers = 1,
595                             .scale = 0.0f,
596                             .zeroPoint = 0,
597                             .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
598                             .channelQuant = {},
599                             .isIgnored = false,
600                             .data = TestBuffer::createFromVector<_Float16>({-10.0f, -9.933110367892976f, -9.866220735785953f, -9.799331103678929f, -9.732441471571907f, -9.665551839464882f, -9.59866220735786f, -9.531772575250836f, -9.464882943143813f, -9.397993311036789f, -9.331103678929766f, -9.264214046822742f, -9.19732441471572f, -9.130434782608695f, -9.063545150501673f, -8.996655518394649f, -8.929765886287626f, -8.862876254180602f, -8.79598662207358f, -8.729096989966555f, -8.662207357859533f, -8.595317725752508f, -8.528428093645484f, -8.461538461538462f, -8.39464882943144f, -8.327759197324415f, -8.26086956521739f, -8.193979933110368f, -8.127090301003344f, -8.060200668896321f, -7.993311036789297f, -7.926421404682275f, -7.8595317725752505f, -7.792642140468228f, -7.725752508361204f, -7.658862876254181f, -7.591973244147157f, -7.5250836120401345f, -7.45819397993311f, -7.391304347826087f, -7.3244147157190636f, -7.25752508361204f, -7.190635451505017f, -7.1237458193979935f, -7.05685618729097f, -6.989966555183947f, -6.923076923076923f, -6.8561872909699f, -6.789297658862877f, -6.722408026755852f, -6.65551839464883f, -6.588628762541806f, -6.521739130434783f, -6.454849498327759f, -6.387959866220736f, -6.321070234113712f, -6.25418060200669f, -6.187290969899665f, -6.120401337792643f, -6.053511705685619f, -5.986622073578595f, -5.919732441471572f, -5.852842809364549f, -5.785953177257525f, -5.719063545150502f, -5.6521739130434785f, -5.585284280936455f, -5.518394648829432f, -5.451505016722408f, -5.384615384615385f, -5.317725752508362f, -5.250836120401338f, -5.183946488294315f, -5.117056856187292f, -5.050167224080268f, -4.983277591973244f, -4.916387959866221f, -4.849498327759197f, -4.782608695652174f, -4.7157190635451505f, -4.648829431438127f, -4.581939799331104f, -4.51505016722408f, -4.448160535117057f, -4.381270903010034f, -4.31438127090301f, -4.247491638795987f, -4.1806020066889635f, -4.11371237458194f, -4.046822742474917f, -3.9799331103678934f, -3.91304347826087f, -3.8461538461538467f, -3.7792642140468233f, -3.7123745819398f, -3.6454849498327766f, -3.5785953177257532f, -3.511705685618729f, -3.4448160535117056f, -3.3779264214046822f, -3.311036789297659f, -3.2441471571906355f, -3.177257525083612f, -3.1103678929765888f, -3.0434782608695654f, -2.976588628762542f, -2.9096989966555187f, -2.8428093645484953f, -2.775919732441472f, -2.7090301003344486f, -2.642140468227425f, -2.575250836120402f, -2.5083612040133785f, -2.441471571906355f, -2.3745819397993317f, -2.3076923076923084f, -2.240802675585285f, -2.1739130434782616f, -2.1070234113712374f, -2.040133779264214f, -1.9732441471571907f, -1.9063545150501682f, -1.839464882943144f, -1.7725752508361214f, -1.7056856187290972f, -1.6387959866220747f, -1.5719063545150505f, -1.505016722408028f, -1.4381270903010037f, -1.3712374581939795f, -1.304347826086957f, -1.2374581939799327f, -1.1705685618729103f, -1.103678929765886f, -1.0367892976588635f, -0.9698996655518393f, -0.9030100334448168f, -0.8361204013377925f, -0.76923076923077f, -0.7023411371237458f, -0.6354515050167233f, -0.5685618729096991f, -0.5016722408026766f, -0.43478260869565233f, -0.36789297658862985f, -0.3010033444816056f, -0.23411371237458312f, -0.16722408026755886f, -0.10033444816053638f, -0.03344481605351213f, 0.03344481605351213f, 0.1003344481605346f, 0.16722408026755886f, 0.23411371237458134f, 0.3010033444816056f, 0.3678929765886281f, 0.43478260869565233f, 0.5016722408026748f, 0.5685618729096991f, 0.6354515050167215f, 0.7023411371237458f, 0.7692307692307683f, 0.8361204013377925f, 0.903010033444815f, 0.9698996655518393f, 1.0367892976588617f, 1.103678929765886f, 1.1705685618729085f, 1.2374581939799327f, 1.3043478260869552f, 1.3712374581939795f, 1.4381270903010037f, 1.5050167224080262f, 1.5719063545150505f, 1.638795986622073f, 1.7056856187290972f, 1.7725752508361197f, 1.839464882943144f, 1.9063545150501664f, 1.9732441471571907f, 2.040133779264213f, 2.1070234113712374f, 2.17391304347826f, 2.240802675585284f, 2.3076923076923066f, 2.374581939799331f, 2.4414715719063533f, 2.5083612040133776f, 2.5752508361204f, 2.6421404682274243f, 2.709030100334447f, 2.775919732441471f, 2.8428093645484935f, 2.909698996655518f, 2.976588628762542f, 3.0434782608695645f, 3.1103678929765888f, 3.1772575250836113f, 3.2441471571906355f, 3.311036789297658f, 3.3779264214046822f, 3.4448160535117047f, 3.511705685618729f, 3.5785953177257515f, 3.6454849498327757f, 3.712374581939798f, 3.7792642140468224f, 3.846153846153845f, 3.913043478260869f, 3.9799331103678917f, 4.046822742474916f, 4.113712374581938f, 4.180602006688963f, 4.247491638795985f, 4.314381270903009f, 4.381270903010034f, 4.448160535117056f, 4.51505016722408f, 4.581939799331103f, 4.648829431438127f, 4.71571906354515f, 4.782608695652174f, 4.849498327759196f, 4.916387959866221f, 4.983277591973243f, 5.050167224080267f, 5.11705685618729f, 5.183946488294314f, 5.2508361204013365f, 5.317725752508361f, 5.384615384615383f, 5.4515050167224075f, 5.51839464882943f, 5.585284280936454f, 5.652173913043477f, 5.719063545150501f, 5.785953177257525f, 5.852842809364548f, 5.919732441471572f, 5.986622073578594f, 6.053511705685619f, 6.120401337792643f, 6.187290969899664f, 6.254180602006688f, 6.321070234113712f, 6.387959866220736f, 6.454849498327757f, 6.521739130434781f, 6.588628762541806f, 6.65551839464883f, 6.722408026755851f, 6.789297658862875f, 6.856187290969899f, 6.923076923076923f, 6.989966555183944f, 7.056856187290968f, 7.123745819397993f, 7.190635451505017f, 7.257525083612041f, 7.324414715719062f, 7.391304347826086f, 7.45819397993311f, 7.5250836120401345f, 7.591973244147155f, 7.6588628762541795f, 7.725752508361204f, 7.792642140468228f, 7.859531772575249f, 7.926421404682273f, 7.993311036789297f, 8.060200668896321f, 8.127090301003342f, 8.193979933110366f, 8.26086956521739f, 8.327759197324415f, 8.394648829431436f, 8.46153846153846f, 8.528428093645484f, 8.595317725752508f, 8.662207357859533f, 8.729096989966553f, 8.795986622073578f, 8.862876254180602f, 8.929765886287626f, 8.996655518394647f, 9.063545150501671f, 9.130434782608695f, 9.19732441471572f, 9.26421404682274f, 9.331103678929765f, 9.397993311036789f, 9.464882943143813f, 9.531772575250834f, 9.598662207357858f, 9.665551839464882f, 9.732441471571907f, 9.799331103678927f, 9.866220735785951f, 9.933110367892976f, 10.0f})
601                         }, { // placeholder4
602                             .type = TestOperandType::TENSOR_FLOAT16,
603                             .dimensions = {1},
604                             .numberOfConsumers = 1,
605                             .scale = 0.0f,
606                             .zeroPoint = 0,
607                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
608                             .channelQuant = {},
609                             .isIgnored = false,
610                             .data = TestBuffer::createFromVector<_Float16>({0.0f})
611                         }, { // param17
612                             .type = TestOperandType::INT32,
613                             .dimensions = {},
614                             .numberOfConsumers = 1,
615                             .scale = 0.0f,
616                             .zeroPoint = 0,
617                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
618                             .channelQuant = {},
619                             .isIgnored = false,
620                             .data = TestBuffer::createFromVector<int32_t>({0})
621                         }},
622                 .operations = {{
623                             .type = TestOperationType::ADD,
624                             .inputs = {2, 3, 4},
625                             .outputs = {0}
626                         }, {
627                             .type = TestOperationType::QUANTIZE,
628                             .inputs = {0},
629                             .outputs = {1}
630                         }},
631                 .inputIndexes = {2},
632                 .outputIndexes = {1}
633             },
634         .referenced = {},
635         .isRelaxed = false,
636         .expectedMultinomialDistributionTolerance = 0,
637         .expectFailure = false,
638         .minSupportedVersion = TestHalVersion::V1_2
639     };
640     return model;
641 }
642 
643 const auto dummy_test_model_quant8_all_inputs_as_internal_5 = TestModelManager::get().add("quantize_quant8_all_inputs_as_internal_5", get_test_model_quant8_all_inputs_as_internal_5());
644 
645 }  // namespace generated_tests::quantize
646 
647 namespace generated_tests::quantize {
648 
get_test_model_quant8_6()649 const TestModel& get_test_model_quant8_6() {
650     static TestModel model = {
651         .main = {
652                 .operands = {{ // input05
653                             .type = TestOperandType::TENSOR_FLOAT16,
654                             .dimensions = {300},
655                             .numberOfConsumers = 1,
656                             .scale = 0.0f,
657                             .zeroPoint = 0,
658                             .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
659                             .channelQuant = {},
660                             .isIgnored = false,
661                             .data = TestBuffer::createFromVector<_Float16>({-10.0f, -9.933110367892976f, -9.866220735785953f, -9.799331103678929f, -9.732441471571907f, -9.665551839464882f, -9.59866220735786f, -9.531772575250836f, -9.464882943143813f, -9.397993311036789f, -9.331103678929766f, -9.264214046822742f, -9.19732441471572f, -9.130434782608695f, -9.063545150501673f, -8.996655518394649f, -8.929765886287626f, -8.862876254180602f, -8.79598662207358f, -8.729096989966555f, -8.662207357859533f, -8.595317725752508f, -8.528428093645484f, -8.461538461538462f, -8.39464882943144f, -8.327759197324415f, -8.26086956521739f, -8.193979933110368f, -8.127090301003344f, -8.060200668896321f, -7.993311036789297f, -7.926421404682275f, -7.8595317725752505f, -7.792642140468228f, -7.725752508361204f, -7.658862876254181f, -7.591973244147157f, -7.5250836120401345f, -7.45819397993311f, -7.391304347826087f, -7.3244147157190636f, -7.25752508361204f, -7.190635451505017f, -7.1237458193979935f, -7.05685618729097f, -6.989966555183947f, -6.923076923076923f, -6.8561872909699f, -6.789297658862877f, -6.722408026755852f, -6.65551839464883f, -6.588628762541806f, -6.521739130434783f, -6.454849498327759f, -6.387959866220736f, -6.321070234113712f, -6.25418060200669f, -6.187290969899665f, -6.120401337792643f, -6.053511705685619f, -5.986622073578595f, -5.919732441471572f, -5.852842809364549f, -5.785953177257525f, -5.719063545150502f, -5.6521739130434785f, -5.585284280936455f, -5.518394648829432f, -5.451505016722408f, -5.384615384615385f, -5.317725752508362f, -5.250836120401338f, -5.183946488294315f, -5.117056856187292f, -5.050167224080268f, -4.983277591973244f, -4.916387959866221f, -4.849498327759197f, -4.782608695652174f, -4.7157190635451505f, -4.648829431438127f, -4.581939799331104f, -4.51505016722408f, -4.448160535117057f, -4.381270903010034f, -4.31438127090301f, -4.247491638795987f, -4.1806020066889635f, -4.11371237458194f, -4.046822742474917f, -3.9799331103678934f, -3.91304347826087f, -3.8461538461538467f, -3.7792642140468233f, -3.7123745819398f, -3.6454849498327766f, -3.5785953177257532f, -3.511705685618729f, -3.4448160535117056f, -3.3779264214046822f, -3.311036789297659f, -3.2441471571906355f, -3.177257525083612f, -3.1103678929765888f, -3.0434782608695654f, -2.976588628762542f, -2.9096989966555187f, -2.8428093645484953f, -2.775919732441472f, -2.7090301003344486f, -2.642140468227425f, -2.575250836120402f, -2.5083612040133785f, -2.441471571906355f, -2.3745819397993317f, -2.3076923076923084f, -2.240802675585285f, -2.1739130434782616f, -2.1070234113712374f, -2.040133779264214f, -1.9732441471571907f, -1.9063545150501682f, -1.839464882943144f, -1.7725752508361214f, -1.7056856187290972f, -1.6387959866220747f, -1.5719063545150505f, -1.505016722408028f, -1.4381270903010037f, -1.3712374581939795f, -1.304347826086957f, -1.2374581939799327f, -1.1705685618729103f, -1.103678929765886f, -1.0367892976588635f, -0.9698996655518393f, -0.9030100334448168f, -0.8361204013377925f, -0.76923076923077f, -0.7023411371237458f, -0.6354515050167233f, -0.5685618729096991f, -0.5016722408026766f, -0.43478260869565233f, -0.36789297658862985f, -0.3010033444816056f, -0.23411371237458312f, -0.16722408026755886f, -0.10033444816053638f, -0.03344481605351213f, 0.03344481605351213f, 0.1003344481605346f, 0.16722408026755886f, 0.23411371237458134f, 0.3010033444816056f, 0.3678929765886281f, 0.43478260869565233f, 0.5016722408026748f, 0.5685618729096991f, 0.6354515050167215f, 0.7023411371237458f, 0.7692307692307683f, 0.8361204013377925f, 0.903010033444815f, 0.9698996655518393f, 1.0367892976588617f, 1.103678929765886f, 1.1705685618729085f, 1.2374581939799327f, 1.3043478260869552f, 1.3712374581939795f, 1.4381270903010037f, 1.5050167224080262f, 1.5719063545150505f, 1.638795986622073f, 1.7056856187290972f, 1.7725752508361197f, 1.839464882943144f, 1.9063545150501664f, 1.9732441471571907f, 2.040133779264213f, 2.1070234113712374f, 2.17391304347826f, 2.240802675585284f, 2.3076923076923066f, 2.374581939799331f, 2.4414715719063533f, 2.5083612040133776f, 2.5752508361204f, 2.6421404682274243f, 2.709030100334447f, 2.775919732441471f, 2.8428093645484935f, 2.909698996655518f, 2.976588628762542f, 3.0434782608695645f, 3.1103678929765888f, 3.1772575250836113f, 3.2441471571906355f, 3.311036789297658f, 3.3779264214046822f, 3.4448160535117047f, 3.511705685618729f, 3.5785953177257515f, 3.6454849498327757f, 3.712374581939798f, 3.7792642140468224f, 3.846153846153845f, 3.913043478260869f, 3.9799331103678917f, 4.046822742474916f, 4.113712374581938f, 4.180602006688963f, 4.247491638795985f, 4.314381270903009f, 4.381270903010034f, 4.448160535117056f, 4.51505016722408f, 4.581939799331103f, 4.648829431438127f, 4.71571906354515f, 4.782608695652174f, 4.849498327759196f, 4.916387959866221f, 4.983277591973243f, 5.050167224080267f, 5.11705685618729f, 5.183946488294314f, 5.2508361204013365f, 5.317725752508361f, 5.384615384615383f, 5.4515050167224075f, 5.51839464882943f, 5.585284280936454f, 5.652173913043477f, 5.719063545150501f, 5.785953177257525f, 5.852842809364548f, 5.919732441471572f, 5.986622073578594f, 6.053511705685619f, 6.120401337792643f, 6.187290969899664f, 6.254180602006688f, 6.321070234113712f, 6.387959866220736f, 6.454849498327757f, 6.521739130434781f, 6.588628762541806f, 6.65551839464883f, 6.722408026755851f, 6.789297658862875f, 6.856187290969899f, 6.923076923076923f, 6.989966555183944f, 7.056856187290968f, 7.123745819397993f, 7.190635451505017f, 7.257525083612041f, 7.324414715719062f, 7.391304347826086f, 7.45819397993311f, 7.5250836120401345f, 7.591973244147155f, 7.6588628762541795f, 7.725752508361204f, 7.792642140468228f, 7.859531772575249f, 7.926421404682273f, 7.993311036789297f, 8.060200668896321f, 8.127090301003342f, 8.193979933110366f, 8.26086956521739f, 8.327759197324415f, 8.394648829431436f, 8.46153846153846f, 8.528428093645484f, 8.595317725752508f, 8.662207357859533f, 8.729096989966553f, 8.795986622073578f, 8.862876254180602f, 8.929765886287626f, 8.996655518394647f, 9.063545150501671f, 9.130434782608695f, 9.19732441471572f, 9.26421404682274f, 9.331103678929765f, 9.397993311036789f, 9.464882943143813f, 9.531772575250834f, 9.598662207357858f, 9.665551839464882f, 9.732441471571907f, 9.799331103678927f, 9.866220735785951f, 9.933110367892976f, 10.0f})
662                         }, { // output05
663                             .type = TestOperandType::TENSOR_QUANT8_ASYMM,
664                             .dimensions = {300},
665                             .numberOfConsumers = 0,
666                             .scale = 1.0f,
667                             .zeroPoint = 1,
668                             .lifetime = TestOperandLifeTime::SUBGRAPH_OUTPUT,
669                             .channelQuant = {},
670                             .isIgnored = false,
671                             .data = TestBuffer::createFromVector<uint8_t>({0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11})
672                         }},
673                 .operations = {{
674                             .type = TestOperationType::QUANTIZE,
675                             .inputs = {0},
676                             .outputs = {1}
677                         }},
678                 .inputIndexes = {0},
679                 .outputIndexes = {1}
680             },
681         .referenced = {},
682         .isRelaxed = false,
683         .expectedMultinomialDistributionTolerance = 0,
684         .expectFailure = false,
685         .minSupportedVersion = TestHalVersion::V1_2
686     };
687     return model;
688 }
689 
690 const auto dummy_test_model_quant8_6 = TestModelManager::get().add("quantize_quant8_6", get_test_model_quant8_6());
691 
692 }  // namespace generated_tests::quantize
693 
694 namespace generated_tests::quantize {
695 
get_test_model_quant8_all_inputs_as_internal_6()696 const TestModel& get_test_model_quant8_all_inputs_as_internal_6() {
697     static TestModel model = {
698         .main = {
699                 .operands = {{ // input05
700                             .type = TestOperandType::TENSOR_FLOAT16,
701                             .dimensions = {300},
702                             .numberOfConsumers = 1,
703                             .scale = 0.0f,
704                             .zeroPoint = 0,
705                             .lifetime = TestOperandLifeTime::TEMPORARY_VARIABLE,
706                             .channelQuant = {},
707                             .isIgnored = false,
708                             .data = TestBuffer::createFromVector<_Float16>({})
709                         }, { // output05
710                             .type = TestOperandType::TENSOR_QUANT8_ASYMM,
711                             .dimensions = {300},
712                             .numberOfConsumers = 0,
713                             .scale = 1.0f,
714                             .zeroPoint = 1,
715                             .lifetime = TestOperandLifeTime::SUBGRAPH_OUTPUT,
716                             .channelQuant = {},
717                             .isIgnored = false,
718                             .data = TestBuffer::createFromVector<uint8_t>({0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11})
719                         }, { // input05_new
720                             .type = TestOperandType::TENSOR_FLOAT16,
721                             .dimensions = {300},
722                             .numberOfConsumers = 1,
723                             .scale = 0.0f,
724                             .zeroPoint = 0,
725                             .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
726                             .channelQuant = {},
727                             .isIgnored = false,
728                             .data = TestBuffer::createFromVector<_Float16>({-10.0f, -9.933110367892976f, -9.866220735785953f, -9.799331103678929f, -9.732441471571907f, -9.665551839464882f, -9.59866220735786f, -9.531772575250836f, -9.464882943143813f, -9.397993311036789f, -9.331103678929766f, -9.264214046822742f, -9.19732441471572f, -9.130434782608695f, -9.063545150501673f, -8.996655518394649f, -8.929765886287626f, -8.862876254180602f, -8.79598662207358f, -8.729096989966555f, -8.662207357859533f, -8.595317725752508f, -8.528428093645484f, -8.461538461538462f, -8.39464882943144f, -8.327759197324415f, -8.26086956521739f, -8.193979933110368f, -8.127090301003344f, -8.060200668896321f, -7.993311036789297f, -7.926421404682275f, -7.8595317725752505f, -7.792642140468228f, -7.725752508361204f, -7.658862876254181f, -7.591973244147157f, -7.5250836120401345f, -7.45819397993311f, -7.391304347826087f, -7.3244147157190636f, -7.25752508361204f, -7.190635451505017f, -7.1237458193979935f, -7.05685618729097f, -6.989966555183947f, -6.923076923076923f, -6.8561872909699f, -6.789297658862877f, -6.722408026755852f, -6.65551839464883f, -6.588628762541806f, -6.521739130434783f, -6.454849498327759f, -6.387959866220736f, -6.321070234113712f, -6.25418060200669f, -6.187290969899665f, -6.120401337792643f, -6.053511705685619f, -5.986622073578595f, -5.919732441471572f, -5.852842809364549f, -5.785953177257525f, -5.719063545150502f, -5.6521739130434785f, -5.585284280936455f, -5.518394648829432f, -5.451505016722408f, -5.384615384615385f, -5.317725752508362f, -5.250836120401338f, -5.183946488294315f, -5.117056856187292f, -5.050167224080268f, -4.983277591973244f, -4.916387959866221f, -4.849498327759197f, -4.782608695652174f, -4.7157190635451505f, -4.648829431438127f, -4.581939799331104f, -4.51505016722408f, -4.448160535117057f, -4.381270903010034f, -4.31438127090301f, -4.247491638795987f, -4.1806020066889635f, -4.11371237458194f, -4.046822742474917f, -3.9799331103678934f, -3.91304347826087f, -3.8461538461538467f, -3.7792642140468233f, -3.7123745819398f, -3.6454849498327766f, -3.5785953177257532f, -3.511705685618729f, -3.4448160535117056f, -3.3779264214046822f, -3.311036789297659f, -3.2441471571906355f, -3.177257525083612f, -3.1103678929765888f, -3.0434782608695654f, -2.976588628762542f, -2.9096989966555187f, -2.8428093645484953f, -2.775919732441472f, -2.7090301003344486f, -2.642140468227425f, -2.575250836120402f, -2.5083612040133785f, -2.441471571906355f, -2.3745819397993317f, -2.3076923076923084f, -2.240802675585285f, -2.1739130434782616f, -2.1070234113712374f, -2.040133779264214f, -1.9732441471571907f, -1.9063545150501682f, -1.839464882943144f, -1.7725752508361214f, -1.7056856187290972f, -1.6387959866220747f, -1.5719063545150505f, -1.505016722408028f, -1.4381270903010037f, -1.3712374581939795f, -1.304347826086957f, -1.2374581939799327f, -1.1705685618729103f, -1.103678929765886f, -1.0367892976588635f, -0.9698996655518393f, -0.9030100334448168f, -0.8361204013377925f, -0.76923076923077f, -0.7023411371237458f, -0.6354515050167233f, -0.5685618729096991f, -0.5016722408026766f, -0.43478260869565233f, -0.36789297658862985f, -0.3010033444816056f, -0.23411371237458312f, -0.16722408026755886f, -0.10033444816053638f, -0.03344481605351213f, 0.03344481605351213f, 0.1003344481605346f, 0.16722408026755886f, 0.23411371237458134f, 0.3010033444816056f, 0.3678929765886281f, 0.43478260869565233f, 0.5016722408026748f, 0.5685618729096991f, 0.6354515050167215f, 0.7023411371237458f, 0.7692307692307683f, 0.8361204013377925f, 0.903010033444815f, 0.9698996655518393f, 1.0367892976588617f, 1.103678929765886f, 1.1705685618729085f, 1.2374581939799327f, 1.3043478260869552f, 1.3712374581939795f, 1.4381270903010037f, 1.5050167224080262f, 1.5719063545150505f, 1.638795986622073f, 1.7056856187290972f, 1.7725752508361197f, 1.839464882943144f, 1.9063545150501664f, 1.9732441471571907f, 2.040133779264213f, 2.1070234113712374f, 2.17391304347826f, 2.240802675585284f, 2.3076923076923066f, 2.374581939799331f, 2.4414715719063533f, 2.5083612040133776f, 2.5752508361204f, 2.6421404682274243f, 2.709030100334447f, 2.775919732441471f, 2.8428093645484935f, 2.909698996655518f, 2.976588628762542f, 3.0434782608695645f, 3.1103678929765888f, 3.1772575250836113f, 3.2441471571906355f, 3.311036789297658f, 3.3779264214046822f, 3.4448160535117047f, 3.511705685618729f, 3.5785953177257515f, 3.6454849498327757f, 3.712374581939798f, 3.7792642140468224f, 3.846153846153845f, 3.913043478260869f, 3.9799331103678917f, 4.046822742474916f, 4.113712374581938f, 4.180602006688963f, 4.247491638795985f, 4.314381270903009f, 4.381270903010034f, 4.448160535117056f, 4.51505016722408f, 4.581939799331103f, 4.648829431438127f, 4.71571906354515f, 4.782608695652174f, 4.849498327759196f, 4.916387959866221f, 4.983277591973243f, 5.050167224080267f, 5.11705685618729f, 5.183946488294314f, 5.2508361204013365f, 5.317725752508361f, 5.384615384615383f, 5.4515050167224075f, 5.51839464882943f, 5.585284280936454f, 5.652173913043477f, 5.719063545150501f, 5.785953177257525f, 5.852842809364548f, 5.919732441471572f, 5.986622073578594f, 6.053511705685619f, 6.120401337792643f, 6.187290969899664f, 6.254180602006688f, 6.321070234113712f, 6.387959866220736f, 6.454849498327757f, 6.521739130434781f, 6.588628762541806f, 6.65551839464883f, 6.722408026755851f, 6.789297658862875f, 6.856187290969899f, 6.923076923076923f, 6.989966555183944f, 7.056856187290968f, 7.123745819397993f, 7.190635451505017f, 7.257525083612041f, 7.324414715719062f, 7.391304347826086f, 7.45819397993311f, 7.5250836120401345f, 7.591973244147155f, 7.6588628762541795f, 7.725752508361204f, 7.792642140468228f, 7.859531772575249f, 7.926421404682273f, 7.993311036789297f, 8.060200668896321f, 8.127090301003342f, 8.193979933110366f, 8.26086956521739f, 8.327759197324415f, 8.394648829431436f, 8.46153846153846f, 8.528428093645484f, 8.595317725752508f, 8.662207357859533f, 8.729096989966553f, 8.795986622073578f, 8.862876254180602f, 8.929765886287626f, 8.996655518394647f, 9.063545150501671f, 9.130434782608695f, 9.19732441471572f, 9.26421404682274f, 9.331103678929765f, 9.397993311036789f, 9.464882943143813f, 9.531772575250834f, 9.598662207357858f, 9.665551839464882f, 9.732441471571907f, 9.799331103678927f, 9.866220735785951f, 9.933110367892976f, 10.0f})
729                         }, { // placeholder5
730                             .type = TestOperandType::TENSOR_FLOAT16,
731                             .dimensions = {1},
732                             .numberOfConsumers = 1,
733                             .scale = 0.0f,
734                             .zeroPoint = 0,
735                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
736                             .channelQuant = {},
737                             .isIgnored = false,
738                             .data = TestBuffer::createFromVector<_Float16>({0.0f})
739                         }, { // param18
740                             .type = TestOperandType::INT32,
741                             .dimensions = {},
742                             .numberOfConsumers = 1,
743                             .scale = 0.0f,
744                             .zeroPoint = 0,
745                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
746                             .channelQuant = {},
747                             .isIgnored = false,
748                             .data = TestBuffer::createFromVector<int32_t>({0})
749                         }},
750                 .operations = {{
751                             .type = TestOperationType::ADD,
752                             .inputs = {2, 3, 4},
753                             .outputs = {0}
754                         }, {
755                             .type = TestOperationType::QUANTIZE,
756                             .inputs = {0},
757                             .outputs = {1}
758                         }},
759                 .inputIndexes = {2},
760                 .outputIndexes = {1}
761             },
762         .referenced = {},
763         .isRelaxed = false,
764         .expectedMultinomialDistributionTolerance = 0,
765         .expectFailure = false,
766         .minSupportedVersion = TestHalVersion::V1_2
767     };
768     return model;
769 }
770 
771 const auto dummy_test_model_quant8_all_inputs_as_internal_6 = TestModelManager::get().add("quantize_quant8_all_inputs_as_internal_6", get_test_model_quant8_all_inputs_as_internal_6());
772 
773 }  // namespace generated_tests::quantize
774 
775 namespace generated_tests::quantize {
776 
get_test_model_quant8_7()777 const TestModel& get_test_model_quant8_7() {
778     static TestModel model = {
779         .main = {
780                 .operands = {{ // input06
781                             .type = TestOperandType::TENSOR_FLOAT16,
782                             .dimensions = {300},
783                             .numberOfConsumers = 1,
784                             .scale = 0.0f,
785                             .zeroPoint = 0,
786                             .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
787                             .channelQuant = {},
788                             .isIgnored = false,
789                             .data = TestBuffer::createFromVector<_Float16>({-10.0f, -9.933110367892976f, -9.866220735785953f, -9.799331103678929f, -9.732441471571907f, -9.665551839464882f, -9.59866220735786f, -9.531772575250836f, -9.464882943143813f, -9.397993311036789f, -9.331103678929766f, -9.264214046822742f, -9.19732441471572f, -9.130434782608695f, -9.063545150501673f, -8.996655518394649f, -8.929765886287626f, -8.862876254180602f, -8.79598662207358f, -8.729096989966555f, -8.662207357859533f, -8.595317725752508f, -8.528428093645484f, -8.461538461538462f, -8.39464882943144f, -8.327759197324415f, -8.26086956521739f, -8.193979933110368f, -8.127090301003344f, -8.060200668896321f, -7.993311036789297f, -7.926421404682275f, -7.8595317725752505f, -7.792642140468228f, -7.725752508361204f, -7.658862876254181f, -7.591973244147157f, -7.5250836120401345f, -7.45819397993311f, -7.391304347826087f, -7.3244147157190636f, -7.25752508361204f, -7.190635451505017f, -7.1237458193979935f, -7.05685618729097f, -6.989966555183947f, -6.923076923076923f, -6.8561872909699f, -6.789297658862877f, -6.722408026755852f, -6.65551839464883f, -6.588628762541806f, -6.521739130434783f, -6.454849498327759f, -6.387959866220736f, -6.321070234113712f, -6.25418060200669f, -6.187290969899665f, -6.120401337792643f, -6.053511705685619f, -5.986622073578595f, -5.919732441471572f, -5.852842809364549f, -5.785953177257525f, -5.719063545150502f, -5.6521739130434785f, -5.585284280936455f, -5.518394648829432f, -5.451505016722408f, -5.384615384615385f, -5.317725752508362f, -5.250836120401338f, -5.183946488294315f, -5.117056856187292f, -5.050167224080268f, -4.983277591973244f, -4.916387959866221f, -4.849498327759197f, -4.782608695652174f, -4.7157190635451505f, -4.648829431438127f, -4.581939799331104f, -4.51505016722408f, -4.448160535117057f, -4.381270903010034f, -4.31438127090301f, -4.247491638795987f, -4.1806020066889635f, -4.11371237458194f, -4.046822742474917f, -3.9799331103678934f, -3.91304347826087f, -3.8461538461538467f, -3.7792642140468233f, -3.7123745819398f, -3.6454849498327766f, -3.5785953177257532f, -3.511705685618729f, -3.4448160535117056f, -3.3779264214046822f, -3.311036789297659f, -3.2441471571906355f, -3.177257525083612f, -3.1103678929765888f, -3.0434782608695654f, -2.976588628762542f, -2.9096989966555187f, -2.8428093645484953f, -2.775919732441472f, -2.7090301003344486f, -2.642140468227425f, -2.575250836120402f, -2.5083612040133785f, -2.441471571906355f, -2.3745819397993317f, -2.3076923076923084f, -2.240802675585285f, -2.1739130434782616f, -2.1070234113712374f, -2.040133779264214f, -1.9732441471571907f, -1.9063545150501682f, -1.839464882943144f, -1.7725752508361214f, -1.7056856187290972f, -1.6387959866220747f, -1.5719063545150505f, -1.505016722408028f, -1.4381270903010037f, -1.3712374581939795f, -1.304347826086957f, -1.2374581939799327f, -1.1705685618729103f, -1.103678929765886f, -1.0367892976588635f, -0.9698996655518393f, -0.9030100334448168f, -0.8361204013377925f, -0.76923076923077f, -0.7023411371237458f, -0.6354515050167233f, -0.5685618729096991f, -0.5016722408026766f, -0.43478260869565233f, -0.36789297658862985f, -0.3010033444816056f, -0.23411371237458312f, -0.16722408026755886f, -0.10033444816053638f, -0.03344481605351213f, 0.03344481605351213f, 0.1003344481605346f, 0.16722408026755886f, 0.23411371237458134f, 0.3010033444816056f, 0.3678929765886281f, 0.43478260869565233f, 0.5016722408026748f, 0.5685618729096991f, 0.6354515050167215f, 0.7023411371237458f, 0.7692307692307683f, 0.8361204013377925f, 0.903010033444815f, 0.9698996655518393f, 1.0367892976588617f, 1.103678929765886f, 1.1705685618729085f, 1.2374581939799327f, 1.3043478260869552f, 1.3712374581939795f, 1.4381270903010037f, 1.5050167224080262f, 1.5719063545150505f, 1.638795986622073f, 1.7056856187290972f, 1.7725752508361197f, 1.839464882943144f, 1.9063545150501664f, 1.9732441471571907f, 2.040133779264213f, 2.1070234113712374f, 2.17391304347826f, 2.240802675585284f, 2.3076923076923066f, 2.374581939799331f, 2.4414715719063533f, 2.5083612040133776f, 2.5752508361204f, 2.6421404682274243f, 2.709030100334447f, 2.775919732441471f, 2.8428093645484935f, 2.909698996655518f, 2.976588628762542f, 3.0434782608695645f, 3.1103678929765888f, 3.1772575250836113f, 3.2441471571906355f, 3.311036789297658f, 3.3779264214046822f, 3.4448160535117047f, 3.511705685618729f, 3.5785953177257515f, 3.6454849498327757f, 3.712374581939798f, 3.7792642140468224f, 3.846153846153845f, 3.913043478260869f, 3.9799331103678917f, 4.046822742474916f, 4.113712374581938f, 4.180602006688963f, 4.247491638795985f, 4.314381270903009f, 4.381270903010034f, 4.448160535117056f, 4.51505016722408f, 4.581939799331103f, 4.648829431438127f, 4.71571906354515f, 4.782608695652174f, 4.849498327759196f, 4.916387959866221f, 4.983277591973243f, 5.050167224080267f, 5.11705685618729f, 5.183946488294314f, 5.2508361204013365f, 5.317725752508361f, 5.384615384615383f, 5.4515050167224075f, 5.51839464882943f, 5.585284280936454f, 5.652173913043477f, 5.719063545150501f, 5.785953177257525f, 5.852842809364548f, 5.919732441471572f, 5.986622073578594f, 6.053511705685619f, 6.120401337792643f, 6.187290969899664f, 6.254180602006688f, 6.321070234113712f, 6.387959866220736f, 6.454849498327757f, 6.521739130434781f, 6.588628762541806f, 6.65551839464883f, 6.722408026755851f, 6.789297658862875f, 6.856187290969899f, 6.923076923076923f, 6.989966555183944f, 7.056856187290968f, 7.123745819397993f, 7.190635451505017f, 7.257525083612041f, 7.324414715719062f, 7.391304347826086f, 7.45819397993311f, 7.5250836120401345f, 7.591973244147155f, 7.6588628762541795f, 7.725752508361204f, 7.792642140468228f, 7.859531772575249f, 7.926421404682273f, 7.993311036789297f, 8.060200668896321f, 8.127090301003342f, 8.193979933110366f, 8.26086956521739f, 8.327759197324415f, 8.394648829431436f, 8.46153846153846f, 8.528428093645484f, 8.595317725752508f, 8.662207357859533f, 8.729096989966553f, 8.795986622073578f, 8.862876254180602f, 8.929765886287626f, 8.996655518394647f, 9.063545150501671f, 9.130434782608695f, 9.19732441471572f, 9.26421404682274f, 9.331103678929765f, 9.397993311036789f, 9.464882943143813f, 9.531772575250834f, 9.598662207357858f, 9.665551839464882f, 9.732441471571907f, 9.799331103678927f, 9.866220735785951f, 9.933110367892976f, 10.0f})
790                         }, { // output06
791                             .type = TestOperandType::TENSOR_QUANT8_ASYMM,
792                             .dimensions = {300},
793                             .numberOfConsumers = 0,
794                             .scale = 0.01f,
795                             .zeroPoint = 120,
796                             .lifetime = TestOperandLifeTime::SUBGRAPH_OUTPUT,
797                             .channelQuant = {},
798                             .isIgnored = false,
799                             .data = TestBuffer::createFromVector<uint8_t>({0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 10, 16, 23, 30, 36, 43, 50, 56, 63, 70, 77, 83, 90, 97, 103, 110, 117, 123, 130, 137, 143, 150, 157, 163, 170, 177, 184, 190, 197, 204, 210, 217, 224, 230, 237, 244, 250, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255})
800                         }},
801                 .operations = {{
802                             .type = TestOperationType::QUANTIZE,
803                             .inputs = {0},
804                             .outputs = {1}
805                         }},
806                 .inputIndexes = {0},
807                 .outputIndexes = {1}
808             },
809         .referenced = {},
810         .isRelaxed = false,
811         .expectedMultinomialDistributionTolerance = 0,
812         .expectFailure = false,
813         .minSupportedVersion = TestHalVersion::V1_2
814     };
815     return model;
816 }
817 
818 const auto dummy_test_model_quant8_7 = TestModelManager::get().add("quantize_quant8_7", get_test_model_quant8_7());
819 
820 }  // namespace generated_tests::quantize
821 
822 namespace generated_tests::quantize {
823 
get_test_model_quant8_all_inputs_as_internal_7()824 const TestModel& get_test_model_quant8_all_inputs_as_internal_7() {
825     static TestModel model = {
826         .main = {
827                 .operands = {{ // input06
828                             .type = TestOperandType::TENSOR_FLOAT16,
829                             .dimensions = {300},
830                             .numberOfConsumers = 1,
831                             .scale = 0.0f,
832                             .zeroPoint = 0,
833                             .lifetime = TestOperandLifeTime::TEMPORARY_VARIABLE,
834                             .channelQuant = {},
835                             .isIgnored = false,
836                             .data = TestBuffer::createFromVector<_Float16>({})
837                         }, { // output06
838                             .type = TestOperandType::TENSOR_QUANT8_ASYMM,
839                             .dimensions = {300},
840                             .numberOfConsumers = 0,
841                             .scale = 0.01f,
842                             .zeroPoint = 120,
843                             .lifetime = TestOperandLifeTime::SUBGRAPH_OUTPUT,
844                             .channelQuant = {},
845                             .isIgnored = false,
846                             .data = TestBuffer::createFromVector<uint8_t>({0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 10, 16, 23, 30, 36, 43, 50, 56, 63, 70, 77, 83, 90, 97, 103, 110, 117, 123, 130, 137, 143, 150, 157, 163, 170, 177, 184, 190, 197, 204, 210, 217, 224, 230, 237, 244, 250, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255})
847                         }, { // input06_new
848                             .type = TestOperandType::TENSOR_FLOAT16,
849                             .dimensions = {300},
850                             .numberOfConsumers = 1,
851                             .scale = 0.0f,
852                             .zeroPoint = 0,
853                             .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
854                             .channelQuant = {},
855                             .isIgnored = false,
856                             .data = TestBuffer::createFromVector<_Float16>({-10.0f, -9.933110367892976f, -9.866220735785953f, -9.799331103678929f, -9.732441471571907f, -9.665551839464882f, -9.59866220735786f, -9.531772575250836f, -9.464882943143813f, -9.397993311036789f, -9.331103678929766f, -9.264214046822742f, -9.19732441471572f, -9.130434782608695f, -9.063545150501673f, -8.996655518394649f, -8.929765886287626f, -8.862876254180602f, -8.79598662207358f, -8.729096989966555f, -8.662207357859533f, -8.595317725752508f, -8.528428093645484f, -8.461538461538462f, -8.39464882943144f, -8.327759197324415f, -8.26086956521739f, -8.193979933110368f, -8.127090301003344f, -8.060200668896321f, -7.993311036789297f, -7.926421404682275f, -7.8595317725752505f, -7.792642140468228f, -7.725752508361204f, -7.658862876254181f, -7.591973244147157f, -7.5250836120401345f, -7.45819397993311f, -7.391304347826087f, -7.3244147157190636f, -7.25752508361204f, -7.190635451505017f, -7.1237458193979935f, -7.05685618729097f, -6.989966555183947f, -6.923076923076923f, -6.8561872909699f, -6.789297658862877f, -6.722408026755852f, -6.65551839464883f, -6.588628762541806f, -6.521739130434783f, -6.454849498327759f, -6.387959866220736f, -6.321070234113712f, -6.25418060200669f, -6.187290969899665f, -6.120401337792643f, -6.053511705685619f, -5.986622073578595f, -5.919732441471572f, -5.852842809364549f, -5.785953177257525f, -5.719063545150502f, -5.6521739130434785f, -5.585284280936455f, -5.518394648829432f, -5.451505016722408f, -5.384615384615385f, -5.317725752508362f, -5.250836120401338f, -5.183946488294315f, -5.117056856187292f, -5.050167224080268f, -4.983277591973244f, -4.916387959866221f, -4.849498327759197f, -4.782608695652174f, -4.7157190635451505f, -4.648829431438127f, -4.581939799331104f, -4.51505016722408f, -4.448160535117057f, -4.381270903010034f, -4.31438127090301f, -4.247491638795987f, -4.1806020066889635f, -4.11371237458194f, -4.046822742474917f, -3.9799331103678934f, -3.91304347826087f, -3.8461538461538467f, -3.7792642140468233f, -3.7123745819398f, -3.6454849498327766f, -3.5785953177257532f, -3.511705685618729f, -3.4448160535117056f, -3.3779264214046822f, -3.311036789297659f, -3.2441471571906355f, -3.177257525083612f, -3.1103678929765888f, -3.0434782608695654f, -2.976588628762542f, -2.9096989966555187f, -2.8428093645484953f, -2.775919732441472f, -2.7090301003344486f, -2.642140468227425f, -2.575250836120402f, -2.5083612040133785f, -2.441471571906355f, -2.3745819397993317f, -2.3076923076923084f, -2.240802675585285f, -2.1739130434782616f, -2.1070234113712374f, -2.040133779264214f, -1.9732441471571907f, -1.9063545150501682f, -1.839464882943144f, -1.7725752508361214f, -1.7056856187290972f, -1.6387959866220747f, -1.5719063545150505f, -1.505016722408028f, -1.4381270903010037f, -1.3712374581939795f, -1.304347826086957f, -1.2374581939799327f, -1.1705685618729103f, -1.103678929765886f, -1.0367892976588635f, -0.9698996655518393f, -0.9030100334448168f, -0.8361204013377925f, -0.76923076923077f, -0.7023411371237458f, -0.6354515050167233f, -0.5685618729096991f, -0.5016722408026766f, -0.43478260869565233f, -0.36789297658862985f, -0.3010033444816056f, -0.23411371237458312f, -0.16722408026755886f, -0.10033444816053638f, -0.03344481605351213f, 0.03344481605351213f, 0.1003344481605346f, 0.16722408026755886f, 0.23411371237458134f, 0.3010033444816056f, 0.3678929765886281f, 0.43478260869565233f, 0.5016722408026748f, 0.5685618729096991f, 0.6354515050167215f, 0.7023411371237458f, 0.7692307692307683f, 0.8361204013377925f, 0.903010033444815f, 0.9698996655518393f, 1.0367892976588617f, 1.103678929765886f, 1.1705685618729085f, 1.2374581939799327f, 1.3043478260869552f, 1.3712374581939795f, 1.4381270903010037f, 1.5050167224080262f, 1.5719063545150505f, 1.638795986622073f, 1.7056856187290972f, 1.7725752508361197f, 1.839464882943144f, 1.9063545150501664f, 1.9732441471571907f, 2.040133779264213f, 2.1070234113712374f, 2.17391304347826f, 2.240802675585284f, 2.3076923076923066f, 2.374581939799331f, 2.4414715719063533f, 2.5083612040133776f, 2.5752508361204f, 2.6421404682274243f, 2.709030100334447f, 2.775919732441471f, 2.8428093645484935f, 2.909698996655518f, 2.976588628762542f, 3.0434782608695645f, 3.1103678929765888f, 3.1772575250836113f, 3.2441471571906355f, 3.311036789297658f, 3.3779264214046822f, 3.4448160535117047f, 3.511705685618729f, 3.5785953177257515f, 3.6454849498327757f, 3.712374581939798f, 3.7792642140468224f, 3.846153846153845f, 3.913043478260869f, 3.9799331103678917f, 4.046822742474916f, 4.113712374581938f, 4.180602006688963f, 4.247491638795985f, 4.314381270903009f, 4.381270903010034f, 4.448160535117056f, 4.51505016722408f, 4.581939799331103f, 4.648829431438127f, 4.71571906354515f, 4.782608695652174f, 4.849498327759196f, 4.916387959866221f, 4.983277591973243f, 5.050167224080267f, 5.11705685618729f, 5.183946488294314f, 5.2508361204013365f, 5.317725752508361f, 5.384615384615383f, 5.4515050167224075f, 5.51839464882943f, 5.585284280936454f, 5.652173913043477f, 5.719063545150501f, 5.785953177257525f, 5.852842809364548f, 5.919732441471572f, 5.986622073578594f, 6.053511705685619f, 6.120401337792643f, 6.187290969899664f, 6.254180602006688f, 6.321070234113712f, 6.387959866220736f, 6.454849498327757f, 6.521739130434781f, 6.588628762541806f, 6.65551839464883f, 6.722408026755851f, 6.789297658862875f, 6.856187290969899f, 6.923076923076923f, 6.989966555183944f, 7.056856187290968f, 7.123745819397993f, 7.190635451505017f, 7.257525083612041f, 7.324414715719062f, 7.391304347826086f, 7.45819397993311f, 7.5250836120401345f, 7.591973244147155f, 7.6588628762541795f, 7.725752508361204f, 7.792642140468228f, 7.859531772575249f, 7.926421404682273f, 7.993311036789297f, 8.060200668896321f, 8.127090301003342f, 8.193979933110366f, 8.26086956521739f, 8.327759197324415f, 8.394648829431436f, 8.46153846153846f, 8.528428093645484f, 8.595317725752508f, 8.662207357859533f, 8.729096989966553f, 8.795986622073578f, 8.862876254180602f, 8.929765886287626f, 8.996655518394647f, 9.063545150501671f, 9.130434782608695f, 9.19732441471572f, 9.26421404682274f, 9.331103678929765f, 9.397993311036789f, 9.464882943143813f, 9.531772575250834f, 9.598662207357858f, 9.665551839464882f, 9.732441471571907f, 9.799331103678927f, 9.866220735785951f, 9.933110367892976f, 10.0f})
857                         }, { // placeholder6
858                             .type = TestOperandType::TENSOR_FLOAT16,
859                             .dimensions = {1},
860                             .numberOfConsumers = 1,
861                             .scale = 0.0f,
862                             .zeroPoint = 0,
863                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
864                             .channelQuant = {},
865                             .isIgnored = false,
866                             .data = TestBuffer::createFromVector<_Float16>({0.0f})
867                         }, { // param19
868                             .type = TestOperandType::INT32,
869                             .dimensions = {},
870                             .numberOfConsumers = 1,
871                             .scale = 0.0f,
872                             .zeroPoint = 0,
873                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
874                             .channelQuant = {},
875                             .isIgnored = false,
876                             .data = TestBuffer::createFromVector<int32_t>({0})
877                         }},
878                 .operations = {{
879                             .type = TestOperationType::ADD,
880                             .inputs = {2, 3, 4},
881                             .outputs = {0}
882                         }, {
883                             .type = TestOperationType::QUANTIZE,
884                             .inputs = {0},
885                             .outputs = {1}
886                         }},
887                 .inputIndexes = {2},
888                 .outputIndexes = {1}
889             },
890         .referenced = {},
891         .isRelaxed = false,
892         .expectedMultinomialDistributionTolerance = 0,
893         .expectFailure = false,
894         .minSupportedVersion = TestHalVersion::V1_2
895     };
896     return model;
897 }
898 
899 const auto dummy_test_model_quant8_all_inputs_as_internal_7 = TestModelManager::get().add("quantize_quant8_all_inputs_as_internal_7", get_test_model_quant8_all_inputs_as_internal_7());
900 
901 }  // namespace generated_tests::quantize
902 
903 namespace generated_tests::quantize {
904 
get_test_model_quant8_8()905 const TestModel& get_test_model_quant8_8() {
906     static TestModel model = {
907         .main = {
908                 .operands = {{ // input07
909                             .type = TestOperandType::TENSOR_FLOAT16,
910                             .dimensions = {300},
911                             .numberOfConsumers = 1,
912                             .scale = 0.0f,
913                             .zeroPoint = 0,
914                             .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
915                             .channelQuant = {},
916                             .isIgnored = false,
917                             .data = TestBuffer::createFromVector<_Float16>({-10.0f, -9.933110367892976f, -9.866220735785953f, -9.799331103678929f, -9.732441471571907f, -9.665551839464882f, -9.59866220735786f, -9.531772575250836f, -9.464882943143813f, -9.397993311036789f, -9.331103678929766f, -9.264214046822742f, -9.19732441471572f, -9.130434782608695f, -9.063545150501673f, -8.996655518394649f, -8.929765886287626f, -8.862876254180602f, -8.79598662207358f, -8.729096989966555f, -8.662207357859533f, -8.595317725752508f, -8.528428093645484f, -8.461538461538462f, -8.39464882943144f, -8.327759197324415f, -8.26086956521739f, -8.193979933110368f, -8.127090301003344f, -8.060200668896321f, -7.993311036789297f, -7.926421404682275f, -7.8595317725752505f, -7.792642140468228f, -7.725752508361204f, -7.658862876254181f, -7.591973244147157f, -7.5250836120401345f, -7.45819397993311f, -7.391304347826087f, -7.3244147157190636f, -7.25752508361204f, -7.190635451505017f, -7.1237458193979935f, -7.05685618729097f, -6.989966555183947f, -6.923076923076923f, -6.8561872909699f, -6.789297658862877f, -6.722408026755852f, -6.65551839464883f, -6.588628762541806f, -6.521739130434783f, -6.454849498327759f, -6.387959866220736f, -6.321070234113712f, -6.25418060200669f, -6.187290969899665f, -6.120401337792643f, -6.053511705685619f, -5.986622073578595f, -5.919732441471572f, -5.852842809364549f, -5.785953177257525f, -5.719063545150502f, -5.6521739130434785f, -5.585284280936455f, -5.518394648829432f, -5.451505016722408f, -5.384615384615385f, -5.317725752508362f, -5.250836120401338f, -5.183946488294315f, -5.117056856187292f, -5.050167224080268f, -4.983277591973244f, -4.916387959866221f, -4.849498327759197f, -4.782608695652174f, -4.7157190635451505f, -4.648829431438127f, -4.581939799331104f, -4.51505016722408f, -4.448160535117057f, -4.381270903010034f, -4.31438127090301f, -4.247491638795987f, -4.1806020066889635f, -4.11371237458194f, -4.046822742474917f, -3.9799331103678934f, -3.91304347826087f, -3.8461538461538467f, -3.7792642140468233f, -3.7123745819398f, -3.6454849498327766f, -3.5785953177257532f, -3.511705685618729f, -3.4448160535117056f, -3.3779264214046822f, -3.311036789297659f, -3.2441471571906355f, -3.177257525083612f, -3.1103678929765888f, -3.0434782608695654f, -2.976588628762542f, -2.9096989966555187f, -2.8428093645484953f, -2.775919732441472f, -2.7090301003344486f, -2.642140468227425f, -2.575250836120402f, -2.5083612040133785f, -2.441471571906355f, -2.3745819397993317f, -2.3076923076923084f, -2.240802675585285f, -2.1739130434782616f, -2.1070234113712374f, -2.040133779264214f, -1.9732441471571907f, -1.9063545150501682f, -1.839464882943144f, -1.7725752508361214f, -1.7056856187290972f, -1.6387959866220747f, -1.5719063545150505f, -1.505016722408028f, -1.4381270903010037f, -1.3712374581939795f, -1.304347826086957f, -1.2374581939799327f, -1.1705685618729103f, -1.103678929765886f, -1.0367892976588635f, -0.9698996655518393f, -0.9030100334448168f, -0.8361204013377925f, -0.76923076923077f, -0.7023411371237458f, -0.6354515050167233f, -0.5685618729096991f, -0.5016722408026766f, -0.43478260869565233f, -0.36789297658862985f, -0.3010033444816056f, -0.23411371237458312f, -0.16722408026755886f, -0.10033444816053638f, -0.03344481605351213f, 0.03344481605351213f, 0.1003344481605346f, 0.16722408026755886f, 0.23411371237458134f, 0.3010033444816056f, 0.3678929765886281f, 0.43478260869565233f, 0.5016722408026748f, 0.5685618729096991f, 0.6354515050167215f, 0.7023411371237458f, 0.7692307692307683f, 0.8361204013377925f, 0.903010033444815f, 0.9698996655518393f, 1.0367892976588617f, 1.103678929765886f, 1.1705685618729085f, 1.2374581939799327f, 1.3043478260869552f, 1.3712374581939795f, 1.4381270903010037f, 1.5050167224080262f, 1.5719063545150505f, 1.638795986622073f, 1.7056856187290972f, 1.7725752508361197f, 1.839464882943144f, 1.9063545150501664f, 1.9732441471571907f, 2.040133779264213f, 2.1070234113712374f, 2.17391304347826f, 2.240802675585284f, 2.3076923076923066f, 2.374581939799331f, 2.4414715719063533f, 2.5083612040133776f, 2.5752508361204f, 2.6421404682274243f, 2.709030100334447f, 2.775919732441471f, 2.8428093645484935f, 2.909698996655518f, 2.976588628762542f, 3.0434782608695645f, 3.1103678929765888f, 3.1772575250836113f, 3.2441471571906355f, 3.311036789297658f, 3.3779264214046822f, 3.4448160535117047f, 3.511705685618729f, 3.5785953177257515f, 3.6454849498327757f, 3.712374581939798f, 3.7792642140468224f, 3.846153846153845f, 3.913043478260869f, 3.9799331103678917f, 4.046822742474916f, 4.113712374581938f, 4.180602006688963f, 4.247491638795985f, 4.314381270903009f, 4.381270903010034f, 4.448160535117056f, 4.51505016722408f, 4.581939799331103f, 4.648829431438127f, 4.71571906354515f, 4.782608695652174f, 4.849498327759196f, 4.916387959866221f, 4.983277591973243f, 5.050167224080267f, 5.11705685618729f, 5.183946488294314f, 5.2508361204013365f, 5.317725752508361f, 5.384615384615383f, 5.4515050167224075f, 5.51839464882943f, 5.585284280936454f, 5.652173913043477f, 5.719063545150501f, 5.785953177257525f, 5.852842809364548f, 5.919732441471572f, 5.986622073578594f, 6.053511705685619f, 6.120401337792643f, 6.187290969899664f, 6.254180602006688f, 6.321070234113712f, 6.387959866220736f, 6.454849498327757f, 6.521739130434781f, 6.588628762541806f, 6.65551839464883f, 6.722408026755851f, 6.789297658862875f, 6.856187290969899f, 6.923076923076923f, 6.989966555183944f, 7.056856187290968f, 7.123745819397993f, 7.190635451505017f, 7.257525083612041f, 7.324414715719062f, 7.391304347826086f, 7.45819397993311f, 7.5250836120401345f, 7.591973244147155f, 7.6588628762541795f, 7.725752508361204f, 7.792642140468228f, 7.859531772575249f, 7.926421404682273f, 7.993311036789297f, 8.060200668896321f, 8.127090301003342f, 8.193979933110366f, 8.26086956521739f, 8.327759197324415f, 8.394648829431436f, 8.46153846153846f, 8.528428093645484f, 8.595317725752508f, 8.662207357859533f, 8.729096989966553f, 8.795986622073578f, 8.862876254180602f, 8.929765886287626f, 8.996655518394647f, 9.063545150501671f, 9.130434782608695f, 9.19732441471572f, 9.26421404682274f, 9.331103678929765f, 9.397993311036789f, 9.464882943143813f, 9.531772575250834f, 9.598662207357858f, 9.665551839464882f, 9.732441471571907f, 9.799331103678927f, 9.866220735785951f, 9.933110367892976f, 10.0f})
918                         }, { // output07
919                             .type = TestOperandType::TENSOR_QUANT8_ASYMM,
920                             .dimensions = {300},
921                             .numberOfConsumers = 0,
922                             .scale = 10.0f,
923                             .zeroPoint = 120,
924                             .lifetime = TestOperandLifeTime::SUBGRAPH_OUTPUT,
925                             .channelQuant = {},
926                             .isIgnored = false,
927                             .data = TestBuffer::createFromVector<uint8_t>({119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121})
928                         }},
929                 .operations = {{
930                             .type = TestOperationType::QUANTIZE,
931                             .inputs = {0},
932                             .outputs = {1}
933                         }},
934                 .inputIndexes = {0},
935                 .outputIndexes = {1}
936             },
937         .referenced = {},
938         .isRelaxed = false,
939         .expectedMultinomialDistributionTolerance = 0,
940         .expectFailure = false,
941         .minSupportedVersion = TestHalVersion::V1_2
942     };
943     return model;
944 }
945 
946 const auto dummy_test_model_quant8_8 = TestModelManager::get().add("quantize_quant8_8", get_test_model_quant8_8());
947 
948 }  // namespace generated_tests::quantize
949 
950 namespace generated_tests::quantize {
951 
get_test_model_quant8_all_inputs_as_internal_8()952 const TestModel& get_test_model_quant8_all_inputs_as_internal_8() {
953     static TestModel model = {
954         .main = {
955                 .operands = {{ // input07
956                             .type = TestOperandType::TENSOR_FLOAT16,
957                             .dimensions = {300},
958                             .numberOfConsumers = 1,
959                             .scale = 0.0f,
960                             .zeroPoint = 0,
961                             .lifetime = TestOperandLifeTime::TEMPORARY_VARIABLE,
962                             .channelQuant = {},
963                             .isIgnored = false,
964                             .data = TestBuffer::createFromVector<_Float16>({})
965                         }, { // output07
966                             .type = TestOperandType::TENSOR_QUANT8_ASYMM,
967                             .dimensions = {300},
968                             .numberOfConsumers = 0,
969                             .scale = 10.0f,
970                             .zeroPoint = 120,
971                             .lifetime = TestOperandLifeTime::SUBGRAPH_OUTPUT,
972                             .channelQuant = {},
973                             .isIgnored = false,
974                             .data = TestBuffer::createFromVector<uint8_t>({119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121})
975                         }, { // input07_new
976                             .type = TestOperandType::TENSOR_FLOAT16,
977                             .dimensions = {300},
978                             .numberOfConsumers = 1,
979                             .scale = 0.0f,
980                             .zeroPoint = 0,
981                             .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
982                             .channelQuant = {},
983                             .isIgnored = false,
984                             .data = TestBuffer::createFromVector<_Float16>({-10.0f, -9.933110367892976f, -9.866220735785953f, -9.799331103678929f, -9.732441471571907f, -9.665551839464882f, -9.59866220735786f, -9.531772575250836f, -9.464882943143813f, -9.397993311036789f, -9.331103678929766f, -9.264214046822742f, -9.19732441471572f, -9.130434782608695f, -9.063545150501673f, -8.996655518394649f, -8.929765886287626f, -8.862876254180602f, -8.79598662207358f, -8.729096989966555f, -8.662207357859533f, -8.595317725752508f, -8.528428093645484f, -8.461538461538462f, -8.39464882943144f, -8.327759197324415f, -8.26086956521739f, -8.193979933110368f, -8.127090301003344f, -8.060200668896321f, -7.993311036789297f, -7.926421404682275f, -7.8595317725752505f, -7.792642140468228f, -7.725752508361204f, -7.658862876254181f, -7.591973244147157f, -7.5250836120401345f, -7.45819397993311f, -7.391304347826087f, -7.3244147157190636f, -7.25752508361204f, -7.190635451505017f, -7.1237458193979935f, -7.05685618729097f, -6.989966555183947f, -6.923076923076923f, -6.8561872909699f, -6.789297658862877f, -6.722408026755852f, -6.65551839464883f, -6.588628762541806f, -6.521739130434783f, -6.454849498327759f, -6.387959866220736f, -6.321070234113712f, -6.25418060200669f, -6.187290969899665f, -6.120401337792643f, -6.053511705685619f, -5.986622073578595f, -5.919732441471572f, -5.852842809364549f, -5.785953177257525f, -5.719063545150502f, -5.6521739130434785f, -5.585284280936455f, -5.518394648829432f, -5.451505016722408f, -5.384615384615385f, -5.317725752508362f, -5.250836120401338f, -5.183946488294315f, -5.117056856187292f, -5.050167224080268f, -4.983277591973244f, -4.916387959866221f, -4.849498327759197f, -4.782608695652174f, -4.7157190635451505f, -4.648829431438127f, -4.581939799331104f, -4.51505016722408f, -4.448160535117057f, -4.381270903010034f, -4.31438127090301f, -4.247491638795987f, -4.1806020066889635f, -4.11371237458194f, -4.046822742474917f, -3.9799331103678934f, -3.91304347826087f, -3.8461538461538467f, -3.7792642140468233f, -3.7123745819398f, -3.6454849498327766f, -3.5785953177257532f, -3.511705685618729f, -3.4448160535117056f, -3.3779264214046822f, -3.311036789297659f, -3.2441471571906355f, -3.177257525083612f, -3.1103678929765888f, -3.0434782608695654f, -2.976588628762542f, -2.9096989966555187f, -2.8428093645484953f, -2.775919732441472f, -2.7090301003344486f, -2.642140468227425f, -2.575250836120402f, -2.5083612040133785f, -2.441471571906355f, -2.3745819397993317f, -2.3076923076923084f, -2.240802675585285f, -2.1739130434782616f, -2.1070234113712374f, -2.040133779264214f, -1.9732441471571907f, -1.9063545150501682f, -1.839464882943144f, -1.7725752508361214f, -1.7056856187290972f, -1.6387959866220747f, -1.5719063545150505f, -1.505016722408028f, -1.4381270903010037f, -1.3712374581939795f, -1.304347826086957f, -1.2374581939799327f, -1.1705685618729103f, -1.103678929765886f, -1.0367892976588635f, -0.9698996655518393f, -0.9030100334448168f, -0.8361204013377925f, -0.76923076923077f, -0.7023411371237458f, -0.6354515050167233f, -0.5685618729096991f, -0.5016722408026766f, -0.43478260869565233f, -0.36789297658862985f, -0.3010033444816056f, -0.23411371237458312f, -0.16722408026755886f, -0.10033444816053638f, -0.03344481605351213f, 0.03344481605351213f, 0.1003344481605346f, 0.16722408026755886f, 0.23411371237458134f, 0.3010033444816056f, 0.3678929765886281f, 0.43478260869565233f, 0.5016722408026748f, 0.5685618729096991f, 0.6354515050167215f, 0.7023411371237458f, 0.7692307692307683f, 0.8361204013377925f, 0.903010033444815f, 0.9698996655518393f, 1.0367892976588617f, 1.103678929765886f, 1.1705685618729085f, 1.2374581939799327f, 1.3043478260869552f, 1.3712374581939795f, 1.4381270903010037f, 1.5050167224080262f, 1.5719063545150505f, 1.638795986622073f, 1.7056856187290972f, 1.7725752508361197f, 1.839464882943144f, 1.9063545150501664f, 1.9732441471571907f, 2.040133779264213f, 2.1070234113712374f, 2.17391304347826f, 2.240802675585284f, 2.3076923076923066f, 2.374581939799331f, 2.4414715719063533f, 2.5083612040133776f, 2.5752508361204f, 2.6421404682274243f, 2.709030100334447f, 2.775919732441471f, 2.8428093645484935f, 2.909698996655518f, 2.976588628762542f, 3.0434782608695645f, 3.1103678929765888f, 3.1772575250836113f, 3.2441471571906355f, 3.311036789297658f, 3.3779264214046822f, 3.4448160535117047f, 3.511705685618729f, 3.5785953177257515f, 3.6454849498327757f, 3.712374581939798f, 3.7792642140468224f, 3.846153846153845f, 3.913043478260869f, 3.9799331103678917f, 4.046822742474916f, 4.113712374581938f, 4.180602006688963f, 4.247491638795985f, 4.314381270903009f, 4.381270903010034f, 4.448160535117056f, 4.51505016722408f, 4.581939799331103f, 4.648829431438127f, 4.71571906354515f, 4.782608695652174f, 4.849498327759196f, 4.916387959866221f, 4.983277591973243f, 5.050167224080267f, 5.11705685618729f, 5.183946488294314f, 5.2508361204013365f, 5.317725752508361f, 5.384615384615383f, 5.4515050167224075f, 5.51839464882943f, 5.585284280936454f, 5.652173913043477f, 5.719063545150501f, 5.785953177257525f, 5.852842809364548f, 5.919732441471572f, 5.986622073578594f, 6.053511705685619f, 6.120401337792643f, 6.187290969899664f, 6.254180602006688f, 6.321070234113712f, 6.387959866220736f, 6.454849498327757f, 6.521739130434781f, 6.588628762541806f, 6.65551839464883f, 6.722408026755851f, 6.789297658862875f, 6.856187290969899f, 6.923076923076923f, 6.989966555183944f, 7.056856187290968f, 7.123745819397993f, 7.190635451505017f, 7.257525083612041f, 7.324414715719062f, 7.391304347826086f, 7.45819397993311f, 7.5250836120401345f, 7.591973244147155f, 7.6588628762541795f, 7.725752508361204f, 7.792642140468228f, 7.859531772575249f, 7.926421404682273f, 7.993311036789297f, 8.060200668896321f, 8.127090301003342f, 8.193979933110366f, 8.26086956521739f, 8.327759197324415f, 8.394648829431436f, 8.46153846153846f, 8.528428093645484f, 8.595317725752508f, 8.662207357859533f, 8.729096989966553f, 8.795986622073578f, 8.862876254180602f, 8.929765886287626f, 8.996655518394647f, 9.063545150501671f, 9.130434782608695f, 9.19732441471572f, 9.26421404682274f, 9.331103678929765f, 9.397993311036789f, 9.464882943143813f, 9.531772575250834f, 9.598662207357858f, 9.665551839464882f, 9.732441471571907f, 9.799331103678927f, 9.866220735785951f, 9.933110367892976f, 10.0f})
985                         }, { // placeholder7
986                             .type = TestOperandType::TENSOR_FLOAT16,
987                             .dimensions = {1},
988                             .numberOfConsumers = 1,
989                             .scale = 0.0f,
990                             .zeroPoint = 0,
991                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
992                             .channelQuant = {},
993                             .isIgnored = false,
994                             .data = TestBuffer::createFromVector<_Float16>({0.0f})
995                         }, { // param20
996                             .type = TestOperandType::INT32,
997                             .dimensions = {},
998                             .numberOfConsumers = 1,
999                             .scale = 0.0f,
1000                             .zeroPoint = 0,
1001                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1002                             .channelQuant = {},
1003                             .isIgnored = false,
1004                             .data = TestBuffer::createFromVector<int32_t>({0})
1005                         }},
1006                 .operations = {{
1007                             .type = TestOperationType::ADD,
1008                             .inputs = {2, 3, 4},
1009                             .outputs = {0}
1010                         }, {
1011                             .type = TestOperationType::QUANTIZE,
1012                             .inputs = {0},
1013                             .outputs = {1}
1014                         }},
1015                 .inputIndexes = {2},
1016                 .outputIndexes = {1}
1017             },
1018         .referenced = {},
1019         .isRelaxed = false,
1020         .expectedMultinomialDistributionTolerance = 0,
1021         .expectFailure = false,
1022         .minSupportedVersion = TestHalVersion::V1_2
1023     };
1024     return model;
1025 }
1026 
1027 const auto dummy_test_model_quant8_all_inputs_as_internal_8 = TestModelManager::get().add("quantize_quant8_all_inputs_as_internal_8", get_test_model_quant8_all_inputs_as_internal_8());
1028 
1029 }  // namespace generated_tests::quantize
1030 
1031 namespace generated_tests::quantize {
1032 
get_test_model_zero_sized()1033 const TestModel& get_test_model_zero_sized() {
1034     static TestModel model = {
1035         .main = { // zero_sized
1036                 .operands = {{ // scores
1037                             .type = TestOperandType::TENSOR_FLOAT32,
1038                             .dimensions = {1, 2},
1039                             .numberOfConsumers = 1,
1040                             .scale = 0.0f,
1041                             .zeroPoint = 0,
1042                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1043                             .channelQuant = {},
1044                             .isIgnored = false,
1045                             .data = TestBuffer::createFromVector<float>({0.9f, 0.1f})
1046                         }, { // roi
1047                             .type = TestOperandType::TENSOR_FLOAT32,
1048                             .dimensions = {1, 8},
1049                             .numberOfConsumers = 1,
1050                             .scale = 0.0f,
1051                             .zeroPoint = 0,
1052                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1053                             .channelQuant = {},
1054                             .isIgnored = false,
1055                             .data = TestBuffer::createFromVector<float>({1.0f, 1.0f, 10.0f, 10.0f, 0.0f, 0.0f, 10.0f, 10.0f})
1056                         }, { // param
1057                             .type = TestOperandType::TENSOR_INT32,
1058                             .dimensions = {1},
1059                             .numberOfConsumers = 1,
1060                             .scale = 0.0f,
1061                             .zeroPoint = 0,
1062                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1063                             .channelQuant = {},
1064                             .isIgnored = false,
1065                             .data = TestBuffer::createFromVector<int32_t>({0})
1066                         }, { // param1
1067                             .type = TestOperandType::FLOAT32,
1068                             .dimensions = {},
1069                             .numberOfConsumers = 1,
1070                             .scale = 0.0f,
1071                             .zeroPoint = 0,
1072                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1073                             .channelQuant = {},
1074                             .isIgnored = false,
1075                             .data = TestBuffer::createFromVector<float>({0.3f})
1076                         }, { // param2
1077                             .type = TestOperandType::INT32,
1078                             .dimensions = {},
1079                             .numberOfConsumers = 1,
1080                             .scale = 0.0f,
1081                             .zeroPoint = 0,
1082                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1083                             .channelQuant = {},
1084                             .isIgnored = false,
1085                             .data = TestBuffer::createFromVector<int32_t>({-1})
1086                         }, { // param3
1087                             .type = TestOperandType::INT32,
1088                             .dimensions = {},
1089                             .numberOfConsumers = 1,
1090                             .scale = 0.0f,
1091                             .zeroPoint = 0,
1092                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1093                             .channelQuant = {},
1094                             .isIgnored = false,
1095                             .data = TestBuffer::createFromVector<int32_t>({0})
1096                         }, { // param4
1097                             .type = TestOperandType::FLOAT32,
1098                             .dimensions = {},
1099                             .numberOfConsumers = 1,
1100                             .scale = 0.0f,
1101                             .zeroPoint = 0,
1102                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1103                             .channelQuant = {},
1104                             .isIgnored = false,
1105                             .data = TestBuffer::createFromVector<float>({0.4f})
1106                         }, { // param5
1107                             .type = TestOperandType::FLOAT32,
1108                             .dimensions = {},
1109                             .numberOfConsumers = 1,
1110                             .scale = 0.0f,
1111                             .zeroPoint = 0,
1112                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1113                             .channelQuant = {},
1114                             .isIgnored = false,
1115                             .data = TestBuffer::createFromVector<float>({1.0f})
1116                         }, { // param6
1117                             .type = TestOperandType::FLOAT32,
1118                             .dimensions = {},
1119                             .numberOfConsumers = 1,
1120                             .scale = 0.0f,
1121                             .zeroPoint = 0,
1122                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1123                             .channelQuant = {},
1124                             .isIgnored = false,
1125                             .data = TestBuffer::createFromVector<float>({0.3f})
1126                         }, { // scoresOut
1127                             .type = TestOperandType::TENSOR_FLOAT32,
1128                             .dimensions = {0},
1129                             .numberOfConsumers = 0,
1130                             .scale = 0.0f,
1131                             .zeroPoint = 0,
1132                             .lifetime = TestOperandLifeTime::SUBGRAPH_OUTPUT,
1133                             .channelQuant = {},
1134                             .isIgnored = false,
1135                             .data = TestBuffer::createFromVector<float>({})
1136                         }, { // roiOut
1137                             .type = TestOperandType::TENSOR_FLOAT32,
1138                             .dimensions = {0, 4},
1139                             .numberOfConsumers = 1,
1140                             .scale = 0.0f,
1141                             .zeroPoint = 0,
1142                             .lifetime = TestOperandLifeTime::TEMPORARY_VARIABLE,
1143                             .channelQuant = {},
1144                             .isIgnored = false,
1145                             .data = TestBuffer::createFromVector<float>({})
1146                         }, { // classesOut
1147                             .type = TestOperandType::TENSOR_INT32,
1148                             .dimensions = {0},
1149                             .numberOfConsumers = 0,
1150                             .scale = 0.0f,
1151                             .zeroPoint = 0,
1152                             .lifetime = TestOperandLifeTime::SUBGRAPH_OUTPUT,
1153                             .channelQuant = {},
1154                             .isIgnored = false,
1155                             .data = TestBuffer::createFromVector<int32_t>({})
1156                         }, { // batchSplitOut
1157                             .type = TestOperandType::TENSOR_INT32,
1158                             .dimensions = {0},
1159                             .numberOfConsumers = 1,
1160                             .scale = 0.0f,
1161                             .zeroPoint = 0,
1162                             .lifetime = TestOperandLifeTime::TEMPORARY_VARIABLE,
1163                             .channelQuant = {},
1164                             .isIgnored = false,
1165                             .data = TestBuffer::createFromVector<int32_t>({})
1166                         }, { // in
1167                             .type = TestOperandType::TENSOR_FLOAT32,
1168                             .dimensions = {1, 1, 1, 1},
1169                             .numberOfConsumers = 1,
1170                             .scale = 0.0f,
1171                             .zeroPoint = 0,
1172                             .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
1173                             .channelQuant = {},
1174                             .isIgnored = false,
1175                             .data = TestBuffer::createFromVector<float>({1.0f})
1176                         }, { // param7
1177                             .type = TestOperandType::INT32,
1178                             .dimensions = {},
1179                             .numberOfConsumers = 1,
1180                             .scale = 0.0f,
1181                             .zeroPoint = 0,
1182                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1183                             .channelQuant = {},
1184                             .isIgnored = false,
1185                             .data = TestBuffer::createFromVector<int32_t>({2})
1186                         }, { // param8
1187                             .type = TestOperandType::INT32,
1188                             .dimensions = {},
1189                             .numberOfConsumers = 1,
1190                             .scale = 0.0f,
1191                             .zeroPoint = 0,
1192                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1193                             .channelQuant = {},
1194                             .isIgnored = false,
1195                             .data = TestBuffer::createFromVector<int32_t>({2})
1196                         }, { // param9
1197                             .type = TestOperandType::FLOAT32,
1198                             .dimensions = {},
1199                             .numberOfConsumers = 1,
1200                             .scale = 0.0f,
1201                             .zeroPoint = 0,
1202                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1203                             .channelQuant = {},
1204                             .isIgnored = false,
1205                             .data = TestBuffer::createFromVector<float>({2.0f})
1206                         }, { // param10
1207                             .type = TestOperandType::FLOAT32,
1208                             .dimensions = {},
1209                             .numberOfConsumers = 1,
1210                             .scale = 0.0f,
1211                             .zeroPoint = 0,
1212                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1213                             .channelQuant = {},
1214                             .isIgnored = false,
1215                             .data = TestBuffer::createFromVector<float>({2.0f})
1216                         }, { // param11
1217                             .type = TestOperandType::INT32,
1218                             .dimensions = {},
1219                             .numberOfConsumers = 1,
1220                             .scale = 0.0f,
1221                             .zeroPoint = 0,
1222                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1223                             .channelQuant = {},
1224                             .isIgnored = false,
1225                             .data = TestBuffer::createFromVector<int32_t>({4})
1226                         }, { // param12
1227                             .type = TestOperandType::INT32,
1228                             .dimensions = {},
1229                             .numberOfConsumers = 1,
1230                             .scale = 0.0f,
1231                             .zeroPoint = 0,
1232                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1233                             .channelQuant = {},
1234                             .isIgnored = false,
1235                             .data = TestBuffer::createFromVector<int32_t>({4})
1236                         }, { // layout
1237                             .type = TestOperandType::BOOL,
1238                             .dimensions = {},
1239                             .numberOfConsumers = 1,
1240                             .scale = 0.0f,
1241                             .zeroPoint = 0,
1242                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1243                             .channelQuant = {},
1244                             .isIgnored = false,
1245                             .data = TestBuffer::createFromVector<bool8>({false})
1246                         }, { // featureMap
1247                             .type = TestOperandType::TENSOR_FLOAT32,
1248                             .dimensions = {0, 2, 2, 1},
1249                             .numberOfConsumers = 1,
1250                             .scale = 0.0f,
1251                             .zeroPoint = 0,
1252                             .lifetime = TestOperandLifeTime::TEMPORARY_VARIABLE,
1253                             .channelQuant = {},
1254                             .isIgnored = false,
1255                             .data = TestBuffer::createFromVector<float>({})
1256                         }, { // out
1257                             .type = TestOperandType::TENSOR_QUANT8_ASYMM,
1258                             .dimensions = {0, 2, 2, 1},
1259                             .numberOfConsumers = 0,
1260                             .scale = 0.1f,
1261                             .zeroPoint = 128,
1262                             .lifetime = TestOperandLifeTime::SUBGRAPH_OUTPUT,
1263                             .channelQuant = {},
1264                             .isIgnored = false,
1265                             .data = TestBuffer::createFromVector<uint8_t>({})
1266                         }},
1267                 .operations = {{
1268                             .type = TestOperationType::BOX_WITH_NMS_LIMIT,
1269                             .inputs = {0, 1, 2, 3, 4, 5, 6, 7, 8},
1270                             .outputs = {9, 10, 11, 12}
1271                         }, {
1272                             .type = TestOperationType::ROI_ALIGN,
1273                             .inputs = {13, 10, 12, 14, 15, 16, 17, 18, 19, 20},
1274                             .outputs = {21}
1275                         }, {
1276                             .type = TestOperationType::QUANTIZE,
1277                             .inputs = {21},
1278                             .outputs = {22}
1279                         }},
1280                 .inputIndexes = {13},
1281                 .outputIndexes = {9, 11, 22}
1282             },
1283         .referenced = {},
1284         .isRelaxed = false,
1285         .expectedMultinomialDistributionTolerance = 0,
1286         .expectFailure = false,
1287         .minSupportedVersion = TestHalVersion::V1_2
1288     };
1289     return model;
1290 }
1291 
1292 const auto dummy_test_model_zero_sized = TestModelManager::get().add("quantize_zero_sized", get_test_model_zero_sized());
1293 
1294 }  // namespace generated_tests::quantize
1295 
1296 namespace generated_tests::quantize {
1297 
get_test_model_zero_sized_relaxed()1298 const TestModel& get_test_model_zero_sized_relaxed() {
1299     static TestModel model = {
1300         .main = { // zero_sized
1301                 .operands = {{ // scores
1302                             .type = TestOperandType::TENSOR_FLOAT32,
1303                             .dimensions = {1, 2},
1304                             .numberOfConsumers = 1,
1305                             .scale = 0.0f,
1306                             .zeroPoint = 0,
1307                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1308                             .channelQuant = {},
1309                             .isIgnored = false,
1310                             .data = TestBuffer::createFromVector<float>({0.9f, 0.1f})
1311                         }, { // roi
1312                             .type = TestOperandType::TENSOR_FLOAT32,
1313                             .dimensions = {1, 8},
1314                             .numberOfConsumers = 1,
1315                             .scale = 0.0f,
1316                             .zeroPoint = 0,
1317                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1318                             .channelQuant = {},
1319                             .isIgnored = false,
1320                             .data = TestBuffer::createFromVector<float>({1.0f, 1.0f, 10.0f, 10.0f, 0.0f, 0.0f, 10.0f, 10.0f})
1321                         }, { // param
1322                             .type = TestOperandType::TENSOR_INT32,
1323                             .dimensions = {1},
1324                             .numberOfConsumers = 1,
1325                             .scale = 0.0f,
1326                             .zeroPoint = 0,
1327                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1328                             .channelQuant = {},
1329                             .isIgnored = false,
1330                             .data = TestBuffer::createFromVector<int32_t>({0})
1331                         }, { // param1
1332                             .type = TestOperandType::FLOAT32,
1333                             .dimensions = {},
1334                             .numberOfConsumers = 1,
1335                             .scale = 0.0f,
1336                             .zeroPoint = 0,
1337                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1338                             .channelQuant = {},
1339                             .isIgnored = false,
1340                             .data = TestBuffer::createFromVector<float>({0.3f})
1341                         }, { // param2
1342                             .type = TestOperandType::INT32,
1343                             .dimensions = {},
1344                             .numberOfConsumers = 1,
1345                             .scale = 0.0f,
1346                             .zeroPoint = 0,
1347                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1348                             .channelQuant = {},
1349                             .isIgnored = false,
1350                             .data = TestBuffer::createFromVector<int32_t>({-1})
1351                         }, { // param3
1352                             .type = TestOperandType::INT32,
1353                             .dimensions = {},
1354                             .numberOfConsumers = 1,
1355                             .scale = 0.0f,
1356                             .zeroPoint = 0,
1357                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1358                             .channelQuant = {},
1359                             .isIgnored = false,
1360                             .data = TestBuffer::createFromVector<int32_t>({0})
1361                         }, { // param4
1362                             .type = TestOperandType::FLOAT32,
1363                             .dimensions = {},
1364                             .numberOfConsumers = 1,
1365                             .scale = 0.0f,
1366                             .zeroPoint = 0,
1367                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1368                             .channelQuant = {},
1369                             .isIgnored = false,
1370                             .data = TestBuffer::createFromVector<float>({0.4f})
1371                         }, { // param5
1372                             .type = TestOperandType::FLOAT32,
1373                             .dimensions = {},
1374                             .numberOfConsumers = 1,
1375                             .scale = 0.0f,
1376                             .zeroPoint = 0,
1377                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1378                             .channelQuant = {},
1379                             .isIgnored = false,
1380                             .data = TestBuffer::createFromVector<float>({1.0f})
1381                         }, { // param6
1382                             .type = TestOperandType::FLOAT32,
1383                             .dimensions = {},
1384                             .numberOfConsumers = 1,
1385                             .scale = 0.0f,
1386                             .zeroPoint = 0,
1387                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1388                             .channelQuant = {},
1389                             .isIgnored = false,
1390                             .data = TestBuffer::createFromVector<float>({0.3f})
1391                         }, { // scoresOut
1392                             .type = TestOperandType::TENSOR_FLOAT32,
1393                             .dimensions = {0},
1394                             .numberOfConsumers = 0,
1395                             .scale = 0.0f,
1396                             .zeroPoint = 0,
1397                             .lifetime = TestOperandLifeTime::SUBGRAPH_OUTPUT,
1398                             .channelQuant = {},
1399                             .isIgnored = false,
1400                             .data = TestBuffer::createFromVector<float>({})
1401                         }, { // roiOut
1402                             .type = TestOperandType::TENSOR_FLOAT32,
1403                             .dimensions = {0, 4},
1404                             .numberOfConsumers = 1,
1405                             .scale = 0.0f,
1406                             .zeroPoint = 0,
1407                             .lifetime = TestOperandLifeTime::TEMPORARY_VARIABLE,
1408                             .channelQuant = {},
1409                             .isIgnored = false,
1410                             .data = TestBuffer::createFromVector<float>({})
1411                         }, { // classesOut
1412                             .type = TestOperandType::TENSOR_INT32,
1413                             .dimensions = {0},
1414                             .numberOfConsumers = 0,
1415                             .scale = 0.0f,
1416                             .zeroPoint = 0,
1417                             .lifetime = TestOperandLifeTime::SUBGRAPH_OUTPUT,
1418                             .channelQuant = {},
1419                             .isIgnored = false,
1420                             .data = TestBuffer::createFromVector<int32_t>({})
1421                         }, { // batchSplitOut
1422                             .type = TestOperandType::TENSOR_INT32,
1423                             .dimensions = {0},
1424                             .numberOfConsumers = 1,
1425                             .scale = 0.0f,
1426                             .zeroPoint = 0,
1427                             .lifetime = TestOperandLifeTime::TEMPORARY_VARIABLE,
1428                             .channelQuant = {},
1429                             .isIgnored = false,
1430                             .data = TestBuffer::createFromVector<int32_t>({})
1431                         }, { // in
1432                             .type = TestOperandType::TENSOR_FLOAT32,
1433                             .dimensions = {1, 1, 1, 1},
1434                             .numberOfConsumers = 1,
1435                             .scale = 0.0f,
1436                             .zeroPoint = 0,
1437                             .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
1438                             .channelQuant = {},
1439                             .isIgnored = false,
1440                             .data = TestBuffer::createFromVector<float>({1.0f})
1441                         }, { // param7
1442                             .type = TestOperandType::INT32,
1443                             .dimensions = {},
1444                             .numberOfConsumers = 1,
1445                             .scale = 0.0f,
1446                             .zeroPoint = 0,
1447                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1448                             .channelQuant = {},
1449                             .isIgnored = false,
1450                             .data = TestBuffer::createFromVector<int32_t>({2})
1451                         }, { // param8
1452                             .type = TestOperandType::INT32,
1453                             .dimensions = {},
1454                             .numberOfConsumers = 1,
1455                             .scale = 0.0f,
1456                             .zeroPoint = 0,
1457                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1458                             .channelQuant = {},
1459                             .isIgnored = false,
1460                             .data = TestBuffer::createFromVector<int32_t>({2})
1461                         }, { // param9
1462                             .type = TestOperandType::FLOAT32,
1463                             .dimensions = {},
1464                             .numberOfConsumers = 1,
1465                             .scale = 0.0f,
1466                             .zeroPoint = 0,
1467                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1468                             .channelQuant = {},
1469                             .isIgnored = false,
1470                             .data = TestBuffer::createFromVector<float>({2.0f})
1471                         }, { // param10
1472                             .type = TestOperandType::FLOAT32,
1473                             .dimensions = {},
1474                             .numberOfConsumers = 1,
1475                             .scale = 0.0f,
1476                             .zeroPoint = 0,
1477                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1478                             .channelQuant = {},
1479                             .isIgnored = false,
1480                             .data = TestBuffer::createFromVector<float>({2.0f})
1481                         }, { // param11
1482                             .type = TestOperandType::INT32,
1483                             .dimensions = {},
1484                             .numberOfConsumers = 1,
1485                             .scale = 0.0f,
1486                             .zeroPoint = 0,
1487                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1488                             .channelQuant = {},
1489                             .isIgnored = false,
1490                             .data = TestBuffer::createFromVector<int32_t>({4})
1491                         }, { // param12
1492                             .type = TestOperandType::INT32,
1493                             .dimensions = {},
1494                             .numberOfConsumers = 1,
1495                             .scale = 0.0f,
1496                             .zeroPoint = 0,
1497                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1498                             .channelQuant = {},
1499                             .isIgnored = false,
1500                             .data = TestBuffer::createFromVector<int32_t>({4})
1501                         }, { // layout
1502                             .type = TestOperandType::BOOL,
1503                             .dimensions = {},
1504                             .numberOfConsumers = 1,
1505                             .scale = 0.0f,
1506                             .zeroPoint = 0,
1507                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1508                             .channelQuant = {},
1509                             .isIgnored = false,
1510                             .data = TestBuffer::createFromVector<bool8>({false})
1511                         }, { // featureMap
1512                             .type = TestOperandType::TENSOR_FLOAT32,
1513                             .dimensions = {0, 2, 2, 1},
1514                             .numberOfConsumers = 1,
1515                             .scale = 0.0f,
1516                             .zeroPoint = 0,
1517                             .lifetime = TestOperandLifeTime::TEMPORARY_VARIABLE,
1518                             .channelQuant = {},
1519                             .isIgnored = false,
1520                             .data = TestBuffer::createFromVector<float>({})
1521                         }, { // out
1522                             .type = TestOperandType::TENSOR_QUANT8_ASYMM,
1523                             .dimensions = {0, 2, 2, 1},
1524                             .numberOfConsumers = 0,
1525                             .scale = 0.1f,
1526                             .zeroPoint = 128,
1527                             .lifetime = TestOperandLifeTime::SUBGRAPH_OUTPUT,
1528                             .channelQuant = {},
1529                             .isIgnored = false,
1530                             .data = TestBuffer::createFromVector<uint8_t>({})
1531                         }},
1532                 .operations = {{
1533                             .type = TestOperationType::BOX_WITH_NMS_LIMIT,
1534                             .inputs = {0, 1, 2, 3, 4, 5, 6, 7, 8},
1535                             .outputs = {9, 10, 11, 12}
1536                         }, {
1537                             .type = TestOperationType::ROI_ALIGN,
1538                             .inputs = {13, 10, 12, 14, 15, 16, 17, 18, 19, 20},
1539                             .outputs = {21}
1540                         }, {
1541                             .type = TestOperationType::QUANTIZE,
1542                             .inputs = {21},
1543                             .outputs = {22}
1544                         }},
1545                 .inputIndexes = {13},
1546                 .outputIndexes = {9, 11, 22}
1547             },
1548         .referenced = {},
1549         .isRelaxed = true,
1550         .expectedMultinomialDistributionTolerance = 0,
1551         .expectFailure = false,
1552         .minSupportedVersion = TestHalVersion::UNKNOWN
1553     };
1554     return model;
1555 }
1556 
1557 const auto dummy_test_model_zero_sized_relaxed = TestModelManager::get().add("quantize_zero_sized_relaxed", get_test_model_zero_sized_relaxed());
1558 
1559 }  // namespace generated_tests::quantize
1560 
1561 namespace generated_tests::quantize {
1562 
get_test_model_zero_sized_float16()1563 const TestModel& get_test_model_zero_sized_float16() {
1564     static TestModel model = {
1565         .main = { // zero_sized
1566                 .operands = {{ // scores
1567                             .type = TestOperandType::TENSOR_FLOAT16,
1568                             .dimensions = {1, 2},
1569                             .numberOfConsumers = 1,
1570                             .scale = 0.0f,
1571                             .zeroPoint = 0,
1572                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1573                             .channelQuant = {},
1574                             .isIgnored = false,
1575                             .data = TestBuffer::createFromVector<_Float16>({0.8999999761581421f, 0.10000000149011612f})
1576                         }, { // roi
1577                             .type = TestOperandType::TENSOR_FLOAT16,
1578                             .dimensions = {1, 8},
1579                             .numberOfConsumers = 1,
1580                             .scale = 0.0f,
1581                             .zeroPoint = 0,
1582                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1583                             .channelQuant = {},
1584                             .isIgnored = false,
1585                             .data = TestBuffer::createFromVector<_Float16>({1.0f, 1.0f, 10.0f, 10.0f, 0.0f, 0.0f, 10.0f, 10.0f})
1586                         }, { // param
1587                             .type = TestOperandType::TENSOR_INT32,
1588                             .dimensions = {1},
1589                             .numberOfConsumers = 1,
1590                             .scale = 0.0f,
1591                             .zeroPoint = 0,
1592                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1593                             .channelQuant = {},
1594                             .isIgnored = false,
1595                             .data = TestBuffer::createFromVector<int32_t>({0})
1596                         }, { // param1
1597                             .type = TestOperandType::FLOAT16,
1598                             .dimensions = {},
1599                             .numberOfConsumers = 1,
1600                             .scale = 0.0f,
1601                             .zeroPoint = 0,
1602                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1603                             .channelQuant = {},
1604                             .isIgnored = false,
1605                             .data = TestBuffer::createFromVector<_Float16>({0.30000001192092896f})
1606                         }, { // param2
1607                             .type = TestOperandType::INT32,
1608                             .dimensions = {},
1609                             .numberOfConsumers = 1,
1610                             .scale = 0.0f,
1611                             .zeroPoint = 0,
1612                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1613                             .channelQuant = {},
1614                             .isIgnored = false,
1615                             .data = TestBuffer::createFromVector<int32_t>({-1})
1616                         }, { // param3
1617                             .type = TestOperandType::INT32,
1618                             .dimensions = {},
1619                             .numberOfConsumers = 1,
1620                             .scale = 0.0f,
1621                             .zeroPoint = 0,
1622                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1623                             .channelQuant = {},
1624                             .isIgnored = false,
1625                             .data = TestBuffer::createFromVector<int32_t>({0})
1626                         }, { // param4
1627                             .type = TestOperandType::FLOAT16,
1628                             .dimensions = {},
1629                             .numberOfConsumers = 1,
1630                             .scale = 0.0f,
1631                             .zeroPoint = 0,
1632                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1633                             .channelQuant = {},
1634                             .isIgnored = false,
1635                             .data = TestBuffer::createFromVector<_Float16>({0.4000000059604645f})
1636                         }, { // param5
1637                             .type = TestOperandType::FLOAT16,
1638                             .dimensions = {},
1639                             .numberOfConsumers = 1,
1640                             .scale = 0.0f,
1641                             .zeroPoint = 0,
1642                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1643                             .channelQuant = {},
1644                             .isIgnored = false,
1645                             .data = TestBuffer::createFromVector<_Float16>({1.0f})
1646                         }, { // param6
1647                             .type = TestOperandType::FLOAT16,
1648                             .dimensions = {},
1649                             .numberOfConsumers = 1,
1650                             .scale = 0.0f,
1651                             .zeroPoint = 0,
1652                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1653                             .channelQuant = {},
1654                             .isIgnored = false,
1655                             .data = TestBuffer::createFromVector<_Float16>({0.30000001192092896f})
1656                         }, { // scoresOut
1657                             .type = TestOperandType::TENSOR_FLOAT16,
1658                             .dimensions = {0},
1659                             .numberOfConsumers = 0,
1660                             .scale = 0.0f,
1661                             .zeroPoint = 0,
1662                             .lifetime = TestOperandLifeTime::SUBGRAPH_OUTPUT,
1663                             .channelQuant = {},
1664                             .isIgnored = false,
1665                             .data = TestBuffer::createFromVector<_Float16>({})
1666                         }, { // roiOut
1667                             .type = TestOperandType::TENSOR_FLOAT16,
1668                             .dimensions = {0, 4},
1669                             .numberOfConsumers = 1,
1670                             .scale = 0.0f,
1671                             .zeroPoint = 0,
1672                             .lifetime = TestOperandLifeTime::TEMPORARY_VARIABLE,
1673                             .channelQuant = {},
1674                             .isIgnored = false,
1675                             .data = TestBuffer::createFromVector<_Float16>({})
1676                         }, { // classesOut
1677                             .type = TestOperandType::TENSOR_INT32,
1678                             .dimensions = {0},
1679                             .numberOfConsumers = 0,
1680                             .scale = 0.0f,
1681                             .zeroPoint = 0,
1682                             .lifetime = TestOperandLifeTime::SUBGRAPH_OUTPUT,
1683                             .channelQuant = {},
1684                             .isIgnored = false,
1685                             .data = TestBuffer::createFromVector<int32_t>({})
1686                         }, { // batchSplitOut
1687                             .type = TestOperandType::TENSOR_INT32,
1688                             .dimensions = {0},
1689                             .numberOfConsumers = 1,
1690                             .scale = 0.0f,
1691                             .zeroPoint = 0,
1692                             .lifetime = TestOperandLifeTime::TEMPORARY_VARIABLE,
1693                             .channelQuant = {},
1694                             .isIgnored = false,
1695                             .data = TestBuffer::createFromVector<int32_t>({})
1696                         }, { // in
1697                             .type = TestOperandType::TENSOR_FLOAT16,
1698                             .dimensions = {1, 1, 1, 1},
1699                             .numberOfConsumers = 1,
1700                             .scale = 0.0f,
1701                             .zeroPoint = 0,
1702                             .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
1703                             .channelQuant = {},
1704                             .isIgnored = false,
1705                             .data = TestBuffer::createFromVector<_Float16>({1.0f})
1706                         }, { // param7
1707                             .type = TestOperandType::INT32,
1708                             .dimensions = {},
1709                             .numberOfConsumers = 1,
1710                             .scale = 0.0f,
1711                             .zeroPoint = 0,
1712                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1713                             .channelQuant = {},
1714                             .isIgnored = false,
1715                             .data = TestBuffer::createFromVector<int32_t>({2})
1716                         }, { // param8
1717                             .type = TestOperandType::INT32,
1718                             .dimensions = {},
1719                             .numberOfConsumers = 1,
1720                             .scale = 0.0f,
1721                             .zeroPoint = 0,
1722                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1723                             .channelQuant = {},
1724                             .isIgnored = false,
1725                             .data = TestBuffer::createFromVector<int32_t>({2})
1726                         }, { // param9
1727                             .type = TestOperandType::FLOAT16,
1728                             .dimensions = {},
1729                             .numberOfConsumers = 1,
1730                             .scale = 0.0f,
1731                             .zeroPoint = 0,
1732                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1733                             .channelQuant = {},
1734                             .isIgnored = false,
1735                             .data = TestBuffer::createFromVector<_Float16>({2.0f})
1736                         }, { // param10
1737                             .type = TestOperandType::FLOAT16,
1738                             .dimensions = {},
1739                             .numberOfConsumers = 1,
1740                             .scale = 0.0f,
1741                             .zeroPoint = 0,
1742                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1743                             .channelQuant = {},
1744                             .isIgnored = false,
1745                             .data = TestBuffer::createFromVector<_Float16>({2.0f})
1746                         }, { // param11
1747                             .type = TestOperandType::INT32,
1748                             .dimensions = {},
1749                             .numberOfConsumers = 1,
1750                             .scale = 0.0f,
1751                             .zeroPoint = 0,
1752                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1753                             .channelQuant = {},
1754                             .isIgnored = false,
1755                             .data = TestBuffer::createFromVector<int32_t>({4})
1756                         }, { // param12
1757                             .type = TestOperandType::INT32,
1758                             .dimensions = {},
1759                             .numberOfConsumers = 1,
1760                             .scale = 0.0f,
1761                             .zeroPoint = 0,
1762                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1763                             .channelQuant = {},
1764                             .isIgnored = false,
1765                             .data = TestBuffer::createFromVector<int32_t>({4})
1766                         }, { // layout
1767                             .type = TestOperandType::BOOL,
1768                             .dimensions = {},
1769                             .numberOfConsumers = 1,
1770                             .scale = 0.0f,
1771                             .zeroPoint = 0,
1772                             .lifetime = TestOperandLifeTime::CONSTANT_COPY,
1773                             .channelQuant = {},
1774                             .isIgnored = false,
1775                             .data = TestBuffer::createFromVector<bool8>({false})
1776                         }, { // featureMap
1777                             .type = TestOperandType::TENSOR_FLOAT16,
1778                             .dimensions = {0, 2, 2, 1},
1779                             .numberOfConsumers = 1,
1780                             .scale = 0.0f,
1781                             .zeroPoint = 0,
1782                             .lifetime = TestOperandLifeTime::TEMPORARY_VARIABLE,
1783                             .channelQuant = {},
1784                             .isIgnored = false,
1785                             .data = TestBuffer::createFromVector<_Float16>({})
1786                         }, { // out
1787                             .type = TestOperandType::TENSOR_QUANT8_ASYMM,
1788                             .dimensions = {0, 2, 2, 1},
1789                             .numberOfConsumers = 0,
1790                             .scale = 0.1f,
1791                             .zeroPoint = 128,
1792                             .lifetime = TestOperandLifeTime::SUBGRAPH_OUTPUT,
1793                             .channelQuant = {},
1794                             .isIgnored = false,
1795                             .data = TestBuffer::createFromVector<uint8_t>({})
1796                         }},
1797                 .operations = {{
1798                             .type = TestOperationType::BOX_WITH_NMS_LIMIT,
1799                             .inputs = {0, 1, 2, 3, 4, 5, 6, 7, 8},
1800                             .outputs = {9, 10, 11, 12}
1801                         }, {
1802                             .type = TestOperationType::ROI_ALIGN,
1803                             .inputs = {13, 10, 12, 14, 15, 16, 17, 18, 19, 20},
1804                             .outputs = {21}
1805                         }, {
1806                             .type = TestOperationType::QUANTIZE,
1807                             .inputs = {21},
1808                             .outputs = {22}
1809                         }},
1810                 .inputIndexes = {13},
1811                 .outputIndexes = {9, 11, 22}
1812             },
1813         .referenced = {},
1814         .isRelaxed = false,
1815         .expectedMultinomialDistributionTolerance = 0,
1816         .expectFailure = false,
1817         .minSupportedVersion = TestHalVersion::V1_2
1818     };
1819     return model;
1820 }
1821 
1822 const auto dummy_test_model_zero_sized_float16 = TestModelManager::get().add("quantize_zero_sized_float16", get_test_model_zero_sized_float16());
1823 
1824 }  // namespace generated_tests::quantize
1825 
1826