aboutsummaryrefslogtreecommitdiff
path: root/operators/type_conversion/rescale/rescale_24x18_u16_outi16_sc1_dr0_pc1
diff options
context:
space:
mode:
Diffstat (limited to 'operators/type_conversion/rescale/rescale_24x18_u16_outi16_sc1_dr0_pc1')
-rw-r--r--operators/type_conversion/rescale/rescale_24x18_u16_outi16_sc1_dr0_pc1/Conformance-result-0.json485
-rw-r--r--operators/type_conversion/rescale/rescale_24x18_u16_outi16_sc1_dr0_pc1/desc.json24
-rw-r--r--operators/type_conversion/rescale/rescale_24x18_u16_outi16_sc1_dr0_pc1/input-0.json485
-rw-r--r--operators/type_conversion/rescale/rescale_24x18_u16_outi16_sc1_dr0_pc1/test.json96
4 files changed, 1090 insertions, 0 deletions
diff --git a/operators/type_conversion/rescale/rescale_24x18_u16_outi16_sc1_dr0_pc1/Conformance-result-0.json b/operators/type_conversion/rescale/rescale_24x18_u16_outi16_sc1_dr0_pc1/Conformance-result-0.json
new file mode 100644
index 000000000..1138aea4a
--- /dev/null
+++ b/operators/type_conversion/rescale/rescale_24x18_u16_outi16_sc1_dr0_pc1/Conformance-result-0.json
@@ -0,0 +1,485 @@
+{
+ "type": "int32",
+ "data": [
+ [
+ 24180,
+ 4807,
+ 8432,
+ 22943,
+ 13880,
+ 9139,
+ 7875,
+ 13552,
+ 19727,
+ 467,
+ 1157,
+ 2145,
+ 10306,
+ 1924,
+ 121,
+ 1837,
+ 11067,
+ 1228
+ ],
+ [
+ 8915,
+ 4994,
+ 19660,
+ 27676,
+ 16380,
+ 7511,
+ 9777,
+ 18685,
+ 16657,
+ 12804,
+ 323,
+ 19943,
+ 1875,
+ 3641,
+ 3966,
+ 59,
+ 6449,
+ 427
+ ],
+ [
+ 2860,
+ 11693,
+ 21417,
+ 26152,
+ 12149,
+ 3441,
+ 1369,
+ 18575,
+ 1088,
+ 8107,
+ 774,
+ 5737,
+ 6960,
+ 6215,
+ 6180,
+ 1066,
+ 6507,
+ 277
+ ],
+ [
+ 2164,
+ 15181,
+ 24713,
+ 28708,
+ 2171,
+ 7925,
+ 9530,
+ 19896,
+ 9245,
+ 2951,
+ 1858,
+ 2628,
+ 7752,
+ 2955,
+ 1,
+ 1194,
+ 5583,
+ 594
+ ],
+ [
+ 4639,
+ 12151,
+ 8337,
+ 4458,
+ 6934,
+ 3526,
+ 8094,
+ 12026,
+ 17851,
+ 20883,
+ 177,
+ 1181,
+ 4851,
+ 542,
+ 5883,
+ 1834,
+ 6472,
+ 1309
+ ],
+ [
+ 13360,
+ 9851,
+ 22894,
+ 16128,
+ 12391,
+ 4501,
+ 7625,
+ 18302,
+ 21624,
+ 4097,
+ 74,
+ 18741,
+ 599,
+ 5506,
+ 2955,
+ 1817,
+ 2364,
+ 63
+ ],
+ [
+ 5570,
+ 1143,
+ 4413,
+ 22168,
+ 12035,
+ 11693,
+ 6298,
+ 5049,
+ 18652,
+ 18683,
+ 512,
+ 28306,
+ 6856,
+ 2789,
+ 1476,
+ 1341,
+ 217,
+ 431
+ ],
+ [
+ 17724,
+ 8971,
+ 4279,
+ 4659,
+ 12060,
+ 15742,
+ 10326,
+ 3549,
+ 14939,
+ 5900,
+ 1209,
+ 18645,
+ 9731,
+ 6658,
+ 523,
+ 0,
+ 13955,
+ 416
+ ],
+ [
+ 1697,
+ 3453,
+ 14565,
+ 26005,
+ 16047,
+ 12343,
+ 4021,
+ 16094,
+ 18735,
+ 8753,
+ 1212,
+ 15444,
+ 9470,
+ 4941,
+ 336,
+ 1979,
+ 8326,
+ 587
+ ],
+ [
+ 4853,
+ 12614,
+ 531,
+ 5078,
+ 11975,
+ 5122,
+ 11209,
+ 5922,
+ 16463,
+ 14478,
+ 1485,
+ 23161,
+ 8797,
+ 2968,
+ 3248,
+ 159,
+ 5205,
+ 626
+ ],
+ [
+ 19835,
+ 16305,
+ 19597,
+ 3748,
+ 3476,
+ 10028,
+ 6508,
+ 21026,
+ 4073,
+ 12173,
+ 1591,
+ 13817,
+ 2718,
+ 1049,
+ 4306,
+ 1432,
+ 11013,
+ 1141
+ ],
+ [
+ 25512,
+ 3385,
+ 12736,
+ 9481,
+ 15165,
+ 2217,
+ 9933,
+ 7117,
+ 189,
+ 12738,
+ 799,
+ 21807,
+ 4334,
+ 1534,
+ 827,
+ 411,
+ 6546,
+ 366
+ ],
+ [
+ 2996,
+ 5722,
+ 24564,
+ 24574,
+ 6290,
+ 9809,
+ 2738,
+ 9307,
+ 13456,
+ 405,
+ 1752,
+ 28559,
+ 10281,
+ 1704,
+ 6184,
+ 258,
+ 13210,
+ 185
+ ],
+ [
+ 8954,
+ 17131,
+ 14862,
+ 6339,
+ 6454,
+ 6208,
+ 13789,
+ 9314,
+ 2075,
+ 3532,
+ 1132,
+ 431,
+ 2715,
+ 4874,
+ 5881,
+ 219,
+ 5080,
+ 532
+ ],
+ [
+ 22221,
+ 14202,
+ 27289,
+ 18168,
+ 2989,
+ 17647,
+ 11277,
+ 14929,
+ 7825,
+ 16953,
+ 824,
+ 10232,
+ 3017,
+ 5325,
+ 4265,
+ 516,
+ 5139,
+ 310
+ ],
+ [
+ 19054,
+ 6199,
+ 22891,
+ 6788,
+ 6868,
+ 494,
+ 71,
+ 650,
+ 1477,
+ 19781,
+ 559,
+ 16790,
+ 10490,
+ 3931,
+ 2723,
+ 1655,
+ 11146,
+ 137
+ ],
+ [
+ 24083,
+ 2222,
+ 10047,
+ 27893,
+ 9756,
+ 10685,
+ 12743,
+ 10135,
+ 13746,
+ 11628,
+ 229,
+ 9614,
+ 8463,
+ 2652,
+ 6252,
+ 2178,
+ 11513,
+ 1
+ ],
+ [
+ 19361,
+ 17720,
+ 22221,
+ 18656,
+ 10647,
+ 9314,
+ 3705,
+ 10792,
+ 20366,
+ 1824,
+ 263,
+ 27624,
+ 9098,
+ 4119,
+ 2485,
+ 252,
+ 10091,
+ 734
+ ],
+ [
+ 20713,
+ 6549,
+ 23482,
+ 27935,
+ 2801,
+ 14380,
+ 9134,
+ 9213,
+ 4797,
+ 3301,
+ 229,
+ 8401,
+ 5648,
+ 4342,
+ 6829,
+ 1683,
+ 14702,
+ 1027
+ ],
+ [
+ 14752,
+ 14745,
+ 22706,
+ 23636,
+ 4340,
+ 13615,
+ 3354,
+ 7177,
+ 15797,
+ 10771,
+ 1606,
+ 22751,
+ 8158,
+ 1192,
+ 723,
+ 564,
+ 5335,
+ 1117
+ ],
+ [
+ 1137,
+ 9757,
+ 23117,
+ 10628,
+ 5419,
+ 3844,
+ 6425,
+ 13911,
+ 12944,
+ 18128,
+ 1,
+ 9240,
+ 3894,
+ 3158,
+ 5030,
+ 229,
+ 4284,
+ 74
+ ],
+ [
+ 14677,
+ 17412,
+ 28733,
+ 1404,
+ 2054,
+ 10734,
+ 4010,
+ 5222,
+ 15293,
+ 6555,
+ 1223,
+ 1228,
+ 10755,
+ 682,
+ 239,
+ 948,
+ 13149,
+ 869
+ ],
+ [
+ 12569,
+ 5001,
+ 6672,
+ 19112,
+ 8749,
+ 11523,
+ 6163,
+ 6792,
+ 4010,
+ 6229,
+ 448,
+ 15403,
+ 3169,
+ 6419,
+ 3819,
+ 694,
+ 1244,
+ 166
+ ],
+ [
+ 2286,
+ 5809,
+ 9755,
+ 1440,
+ 12294,
+ 9941,
+ 14627,
+ 20048,
+ 268,
+ 14921,
+ 1987,
+ 25304,
+ 7544,
+ 1123,
+ 6231,
+ 1866,
+ 8032,
+ 1255
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/type_conversion/rescale/rescale_24x18_u16_outi16_sc1_dr0_pc1/desc.json b/operators/type_conversion/rescale/rescale_24x18_u16_outi16_sc1_dr0_pc1/desc.json
new file mode 100644
index 000000000..7b8f68902
--- /dev/null
+++ b/operators/type_conversion/rescale/rescale_24x18_u16_outi16_sc1_dr0_pc1/desc.json
@@ -0,0 +1,24 @@
+{
+ "tosa_file": "test.json",
+ "ifm_name": [
+ "input-0"
+ ],
+ "ifm_file": [
+ "input-0.npy"
+ ],
+ "ofm_name": [
+ "result-0"
+ ],
+ "ofm_file": [
+ "result-0.npy"
+ ],
+ "expected_return_code": 0,
+ "expected_failure": false,
+ "expected_result_file": [
+ "Conformance-result-0.npy"
+ ],
+ "profile": [
+ "tosa-bi",
+ "tosa-mi"
+ ]
+} \ No newline at end of file
diff --git a/operators/type_conversion/rescale/rescale_24x18_u16_outi16_sc1_dr0_pc1/input-0.json b/operators/type_conversion/rescale/rescale_24x18_u16_outi16_sc1_dr0_pc1/input-0.json
new file mode 100644
index 000000000..30e3f81b3
--- /dev/null
+++ b/operators/type_conversion/rescale/rescale_24x18_u16_outi16_sc1_dr0_pc1/input-0.json
@@ -0,0 +1,485 @@
+{
+ "type": "int32",
+ "data": [
+ [
+ 61593,
+ 17446,
+ 18793,
+ 51381,
+ 52331,
+ 31857,
+ 34520,
+ 39315,
+ 57820,
+ 1436,
+ 37098,
+ 4453,
+ 61415,
+ 15629,
+ 1149,
+ 53032,
+ 48428,
+ 59083
+ ],
+ [
+ 22710,
+ 18122,
+ 43818,
+ 61981,
+ 61757,
+ 26181,
+ 42854,
+ 54205,
+ 48823,
+ 39361,
+ 10357,
+ 41393,
+ 11175,
+ 29579,
+ 37580,
+ 1716,
+ 28220,
+ 20536
+ ],
+ [
+ 7284,
+ 42433,
+ 47732,
+ 58567,
+ 45806,
+ 11993,
+ 6001,
+ 53887,
+ 3188,
+ 24922,
+ 24825,
+ 11908,
+ 41479,
+ 50483,
+ 58560,
+ 30761,
+ 28475,
+ 13317
+ ],
+ [
+ 5511,
+ 55092,
+ 55080,
+ 64292,
+ 8185,
+ 27625,
+ 41772,
+ 57720,
+ 27096,
+ 9073,
+ 59609,
+ 5455,
+ 46197,
+ 24000,
+ 9,
+ 34460,
+ 24429,
+ 28582
+ ],
+ [
+ 11816,
+ 44096,
+ 18581,
+ 9984,
+ 26145,
+ 12290,
+ 35480,
+ 34888,
+ 52322,
+ 64197,
+ 5664,
+ 2452,
+ 28908,
+ 4403,
+ 55752,
+ 52950,
+ 28323,
+ 62978
+ ],
+ [
+ 34032,
+ 35748,
+ 51026,
+ 36118,
+ 46720,
+ 15689,
+ 33423,
+ 53094,
+ 63379,
+ 12596,
+ 2373,
+ 38899,
+ 3572,
+ 44728,
+ 28007,
+ 52464,
+ 10344,
+ 3013
+ ],
+ [
+ 14189,
+ 4147,
+ 9835,
+ 49645,
+ 45375,
+ 40760,
+ 27608,
+ 14646,
+ 54668,
+ 57433,
+ 16409,
+ 58752,
+ 40856,
+ 22657,
+ 13988,
+ 38708,
+ 949,
+ 20733
+ ],
+ [
+ 45148,
+ 32557,
+ 9536,
+ 10433,
+ 45469,
+ 54874,
+ 45263,
+ 10297,
+ 43787,
+ 18138,
+ 38794,
+ 38700,
+ 57994,
+ 54080,
+ 4956,
+ 1,
+ 61067,
+ 20035
+ ],
+ [
+ 4323,
+ 12532,
+ 32461,
+ 58237,
+ 60504,
+ 43023,
+ 17624,
+ 46690,
+ 54912,
+ 26907,
+ 38875,
+ 32056,
+ 56438,
+ 40138,
+ 3182,
+ 57116,
+ 36434,
+ 28232
+ ],
+ [
+ 12363,
+ 45778,
+ 1184,
+ 11372,
+ 45151,
+ 17854,
+ 49131,
+ 17181,
+ 48253,
+ 44508,
+ 47643,
+ 48072,
+ 52424,
+ 24106,
+ 30775,
+ 4587,
+ 22778,
+ 30128
+ ],
+ [
+ 50525,
+ 59170,
+ 43677,
+ 8393,
+ 13107,
+ 34955,
+ 28527,
+ 60997,
+ 11938,
+ 37421,
+ 51046,
+ 28678,
+ 16195,
+ 8523,
+ 40808,
+ 41351,
+ 48193,
+ 54887
+ ],
+ [
+ 64985,
+ 12285,
+ 28386,
+ 21232,
+ 57177,
+ 7728,
+ 43539,
+ 20648,
+ 553,
+ 39158,
+ 25642,
+ 45263,
+ 25828,
+ 12462,
+ 7839,
+ 11854,
+ 28645,
+ 17611
+ ],
+ [
+ 7632,
+ 20766,
+ 54747,
+ 55034,
+ 23717,
+ 34191,
+ 12001,
+ 27000,
+ 39441,
+ 1246,
+ 56202,
+ 59277,
+ 61271,
+ 13840,
+ 58607,
+ 7460,
+ 57806,
+ 8891
+ ],
+ [
+ 22809,
+ 62168,
+ 33123,
+ 14196,
+ 24334,
+ 21641,
+ 60441,
+ 27020,
+ 6083,
+ 10859,
+ 36327,
+ 895,
+ 16181,
+ 39588,
+ 55730,
+ 6320,
+ 22231,
+ 25595
+ ],
+ [
+ 56602,
+ 51539,
+ 60820,
+ 40687,
+ 11270,
+ 61512,
+ 49430,
+ 43311,
+ 22936,
+ 52115,
+ 26429,
+ 21238,
+ 17981,
+ 43253,
+ 40413,
+ 14889,
+ 22489,
+ 14892
+ ],
+ [
+ 48536,
+ 22497,
+ 51019,
+ 15202,
+ 25895,
+ 1723,
+ 310,
+ 1885,
+ 4330,
+ 60810,
+ 17944,
+ 34850,
+ 62513,
+ 31931,
+ 25808,
+ 47774,
+ 48774,
+ 6604
+ ],
+ [
+ 61346,
+ 8064,
+ 22392,
+ 62467,
+ 36784,
+ 37244,
+ 55857,
+ 29403,
+ 40291,
+ 35747,
+ 7354,
+ 19954,
+ 50434,
+ 21538,
+ 59250,
+ 62867,
+ 50382,
+ 52
+ ],
+ [
+ 49318,
+ 64308,
+ 49525,
+ 41779,
+ 40143,
+ 32466,
+ 16240,
+ 31307,
+ 59692,
+ 5608,
+ 8448,
+ 57337,
+ 54217,
+ 33456,
+ 23551,
+ 7267,
+ 44159,
+ 35333
+ ],
+ [
+ 52762,
+ 23766,
+ 52336,
+ 62561,
+ 10560,
+ 50124,
+ 40037,
+ 26726,
+ 14061,
+ 10148,
+ 7346,
+ 17436,
+ 33656,
+ 35269,
+ 64718,
+ 48581,
+ 64334,
+ 49403
+ ],
+ [
+ 37578,
+ 53511,
+ 50605,
+ 52933,
+ 16362,
+ 47459,
+ 14703,
+ 20820,
+ 46302,
+ 33110,
+ 51511,
+ 47222,
+ 48617,
+ 9685,
+ 6849,
+ 16274,
+ 23348,
+ 53734
+ ],
+ [
+ 2895,
+ 35409,
+ 51521,
+ 23801,
+ 20430,
+ 13400,
+ 28163,
+ 40356,
+ 37938,
+ 55727,
+ 36,
+ 19178,
+ 23207,
+ 25650,
+ 47663,
+ 6616,
+ 18747,
+ 3582
+ ],
+ [
+ 37386,
+ 63189,
+ 64039,
+ 3144,
+ 7743,
+ 37416,
+ 17579,
+ 15150,
+ 44824,
+ 20151,
+ 39215,
+ 2549,
+ 64094,
+ 5537,
+ 2267,
+ 27377,
+ 57540,
+ 41832
+ ],
+ [
+ 32017,
+ 18147,
+ 14870,
+ 42802,
+ 32988,
+ 40165,
+ 27013,
+ 19703,
+ 11752,
+ 19150,
+ 14378,
+ 31970,
+ 18883,
+ 52143,
+ 36188,
+ 20039,
+ 5445,
+ 7997
+ ],
+ [
+ 5822,
+ 21082,
+ 21741,
+ 3224,
+ 46353,
+ 34653,
+ 64114,
+ 58161,
+ 786,
+ 45869,
+ 63723,
+ 52520,
+ 44960,
+ 9124,
+ 59047,
+ 53865,
+ 35149,
+ 60392
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/type_conversion/rescale/rescale_24x18_u16_outi16_sc1_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_24x18_u16_outi16_sc1_dr0_pc1/test.json
new file mode 100644
index 000000000..6b3310131
--- /dev/null
+++ b/operators/type_conversion/rescale/rescale_24x18_u16_outi16_sc1_dr0_pc1/test.json
@@ -0,0 +1,96 @@
+{
+ version: {
+ _major: 0,
+ _minor: 41,
+ _patch: 0,
+ _draft: true
+ },
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 0,
+ multiplier: [
+ 1686117632,
+ 1183501568,
+ 1927077760,
+ 1917838720,
+ 1139144448,
+ 1232150144,
+ 1959687808,
+ 1480488576,
+ 1465348608,
+ 1397138304,
+ 2142326784,
+ 2069278208,
+ 1441400704,
+ 2114984448,
+ 1812900736,
+ 1190283264,
+ 1962969088,
+ 1428218624
+ ],
+ shift: [
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 33,
+ 32,
+ 32,
+ 32,
+ 36,
+ 32,
+ 33,
+ 34,
+ 34,
+ 35,
+ 33,
+ 36
+ ],
+ scale32: true,
+ double_round: false,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 24,
+ 18
+ ],
+ type: "UINT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 24,
+ 18
+ ],
+ type: "INT16"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}