diff options
author | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-06-17 13:08:54 +0100 |
---|---|---|
committer | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-06-17 13:08:54 +0100 |
commit | f1e20a471670b0b0b20fff7de176cfdc1bf8ad8a (patch) | |
tree | a2b3743e596604aa7956bc2e74d2cee4c053bb41 /operators/type_conversion/rescale/rescale_24x31_i16_outUINT16_sc1_dr0_pc1 | |
parent | 0ea9b225e914a7ee00ebd0bc7c3861dc6230a900 (diff) | |
download | conformance_tests-f1e20a471670b0b0b20fff7de176cfdc1bf8ad8a.tar.gz |
Updating RESCALE tests for v0.30.0 release
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: I411332528a9e94c4fa9f03535c9e778675381c30
Diffstat (limited to 'operators/type_conversion/rescale/rescale_24x31_i16_outUINT16_sc1_dr0_pc1')
4 files changed, 1736 insertions, 0 deletions
diff --git a/operators/type_conversion/rescale/rescale_24x31_i16_outUINT16_sc1_dr0_pc1/Conformance-result-0.json b/operators/type_conversion/rescale/rescale_24x31_i16_outUINT16_sc1_dr0_pc1/Conformance-result-0.json new file mode 100644 index 000000000..a4e2586d7 --- /dev/null +++ b/operators/type_conversion/rescale/rescale_24x31_i16_outUINT16_sc1_dr0_pc1/Conformance-result-0.json @@ -0,0 +1,797 @@ +{ + "type": "int32", + "data": [ + [ + 65535, + 14896, + 2625, + 57241, + 0, + 51315, + 31347, + 54521, + 27811, + 41331, + 41602, + 31276, + 31767, + 32840, + 37657, + 56094, + 30374, + 17016, + 4354, + 35358, + 19792, + 31403, + 65535, + 65535, + 17351, + 30208, + 12971, + 45612, + 6892, + 65535, + 59327 + ], + [ + 9267, + 19183, + 35363, + 49368, + 47111, + 10108, + 33394, + 0, + 16479, + 45529, + 60481, + 36388, + 14387, + 36622, + 19990, + 2922, + 14892, + 65535, + 24590, + 33309, + 46538, + 42509, + 65535, + 0, + 22158, + 23084, + 65535, + 16040, + 12741, + 56648, + 32502 + ], + [ + 61649, + 26715, + 31878, + 0, + 0, + 8045, + 31805, + 15186, + 0, + 12795, + 57612, + 42263, + 21412, + 42318, + 22223, + 0, + 25840, + 7644, + 6511, + 35991, + 55459, + 28005, + 15950, + 58856, + 65535, + 11020, + 53410, + 0, + 37694, + 65535, + 31432 + ], + [ + 49279, + 42212, + 41519, + 53827, + 65535, + 8548, + 33909, + 65535, + 65535, + 24994, + 38710, + 28839, + 51149, + 30770, + 27607, + 53321, + 11358, + 19527, + 14524, + 31597, + 30339, + 23712, + 65535, + 22810, + 18645, + 0, + 65535, + 65535, + 31417, + 17274, + 30995 + ], + [ + 65535, + 18726, + 44975, + 65535, + 58352, + 51083, + 34096, + 0, + 5859, + 11834, + 37585, + 30289, + 7960, + 33999, + 21749, + 22485, + 26429, + 65535, + 44104, + 33920, + 48485, + 26140, + 10622, + 62910, + 57679, + 0, + 1622, + 4987, + 0, + 47869, + 8475 + ], + [ + 65535, + 37080, + 50082, + 32445, + 65535, + 21408, + 32940, + 0, + 65535, + 36772, + 9563, + 41273, + 59193, + 23539, + 42311, + 59000, + 25851, + 47135, + 50496, + 32576, + 40656, + 23398, + 65535, + 65535, + 3788, + 30465, + 3251, + 22547, + 16020, + 65535, + 43386 + ], + [ + 65535, + 47530, + 47802, + 0, + 65535, + 46775, + 31654, + 0, + 59660, + 26302, + 20456, + 29997, + 52618, + 29852, + 29186, + 21593, + 11592, + 0, + 27449, + 28286, + 44936, + 31199, + 32853, + 13184, + 59135, + 25371, + 0, + 31577, + 8708, + 41664, + 36235 + ], + [ + 29801, + 26987, + 39117, + 53137, + 65535, + 55654, + 31531, + 51213, + 0, + 27903, + 50043, + 33902, + 49393, + 41598, + 45847, + 51959, + 41006, + 65143, + 16185, + 30927, + 25246, + 37836, + 19240, + 0, + 62638, + 58252, + 43409, + 65535, + 54517, + 65535, + 19670 + ], + [ + 0, + 24781, + 54591, + 65535, + 0, + 50358, + 32704, + 65535, + 51579, + 6865, + 31639, + 21760, + 24120, + 38277, + 37841, + 55469, + 40411, + 0, + 37916, + 32629, + 34115, + 26809, + 51471, + 45613, + 23069, + 0, + 0, + 18414, + 35559, + 65535, + 44950 + ], + [ + 31063, + 22645, + 10844, + 0, + 0, + 53146, + 31332, + 65535, + 41374, + 39740, + 65535, + 40443, + 13708, + 42796, + 23828, + 40450, + 39450, + 5449, + 40859, + 34056, + 55507, + 41369, + 23649, + 55482, + 64866, + 0, + 53646, + 65535, + 4467, + 56516, + 8798 + ], + [ + 21315, + 48871, + 65018, + 58520, + 54908, + 20851, + 33733, + 51102, + 65535, + 38824, + 0, + 33061, + 47590, + 38927, + 29631, + 0, + 50302, + 65535, + 56303, + 34351, + 48340, + 30751, + 58149, + 31364, + 62201, + 0, + 9784, + 3693, + 25802, + 62212, + 11781 + ], + [ + 59658, + 49430, + 44088, + 49275, + 0, + 38345, + 31957, + 3467, + 65535, + 39540, + 65535, + 31551, + 25085, + 43362, + 36149, + 65535, + 11126, + 35541, + 52454, + 35629, + 42957, + 25808, + 37025, + 0, + 62966, + 46098, + 0, + 55854, + 49112, + 0, + 10370 + ], + [ + 0, + 11101, + 35233, + 65535, + 0, + 38435, + 32543, + 65535, + 30920, + 42700, + 62967, + 23025, + 22812, + 27842, + 23623, + 49174, + 9370, + 20590, + 9264, + 33837, + 44655, + 32080, + 27760, + 26764, + 2634, + 20070, + 65535, + 0, + 54196, + 1378, + 11743 + ], + [ + 7756, + 21123, + 20608, + 65535, + 65535, + 42289, + 31719, + 65535, + 65535, + 7821, + 24699, + 40143, + 10576, + 23707, + 35693, + 14647, + 29994, + 59535, + 35553, + 34725, + 15048, + 22439, + 10192, + 0, + 15167, + 61190, + 0, + 0, + 10465, + 16512, + 16263 + ], + [ + 0, + 36779, + 7063, + 0, + 65535, + 8929, + 31467, + 0, + 36483, + 44234, + 46562, + 37858, + 8871, + 29443, + 36450, + 52964, + 24884, + 65535, + 53486, + 35232, + 46873, + 42625, + 59486, + 42976, + 22631, + 18689, + 65535, + 11989, + 42454, + 33022, + 26153 + ], + [ + 27027, + 11633, + 46625, + 0, + 0, + 20467, + 32861, + 9641, + 65535, + 57937, + 25127, + 46156, + 10568, + 25146, + 28555, + 65535, + 32939, + 54823, + 42252, + 32755, + 53224, + 42200, + 28054, + 58294, + 45163, + 42323, + 0, + 3197, + 65535, + 8841, + 41041 + ], + [ + 65535, + 37931, + 13915, + 65535, + 0, + 43808, + 32075, + 48954, + 30763, + 36835, + 24317, + 33542, + 56307, + 39750, + 30520, + 65535, + 51251, + 46364, + 38647, + 28460, + 33911, + 26807, + 1876, + 65535, + 9867, + 44547, + 65535, + 42731, + 53631, + 58522, + 29901 + ], + [ + 65535, + 53383, + 22032, + 65535, + 1110, + 13574, + 32857, + 44991, + 41377, + 50361, + 24958, + 41025, + 54487, + 24027, + 31366, + 2217, + 40202, + 23480, + 19202, + 30464, + 25885, + 24655, + 0, + 48154, + 65535, + 33529, + 65535, + 0, + 65535, + 40855, + 46055 + ], + [ + 0, + 38013, + 25030, + 65535, + 61984, + 50790, + 33925, + 58229, + 6508, + 19987, + 58507, + 35488, + 53929, + 39079, + 35718, + 0, + 55676, + 5323, + 17001, + 29484, + 12343, + 30175, + 63989, + 65535, + 31860, + 13857, + 15422, + 65535, + 0, + 0, + 9031 + ], + [ + 65535, + 12140, + 61978, + 0, + 37596, + 56043, + 31629, + 7545, + 56222, + 51433, + 61931, + 19898, + 47731, + 28956, + 34361, + 65535, + 51878, + 0, + 30945, + 30764, + 38210, + 39541, + 16216, + 0, + 0, + 0, + 17677, + 65535, + 14267, + 23854, + 42308 + ], + [ + 51185, + 21178, + 8099, + 0, + 4818, + 12291, + 32649, + 49588, + 50820, + 56848, + 17965, + 36913, + 53544, + 22680, + 40527, + 0, + 35217, + 65535, + 30234, + 33322, + 38432, + 34383, + 53828, + 65535, + 0, + 24185, + 65535, + 20692, + 31978, + 55441, + 56502 + ], + [ + 3790, + 55727, + 46644, + 0, + 65535, + 27052, + 32122, + 35793, + 40622, + 35098, + 923, + 41401, + 24220, + 25091, + 34584, + 46356, + 13930, + 65535, + 39017, + 37376, + 40845, + 22604, + 6258, + 65535, + 38731, + 0, + 0, + 36529, + 39782, + 9023, + 16133 + ], + [ + 45179, + 29520, + 2139, + 0, + 6632, + 35938, + 32176, + 0, + 65535, + 44156, + 38755, + 25919, + 44014, + 42314, + 37626, + 10106, + 27651, + 65535, + 2581, + 30182, + 14146, + 35697, + 29023, + 0, + 65535, + 38044, + 4385, + 65535, + 47547, + 0, + 50573 + ], + [ + 0, + 53270, + 25719, + 9418, + 0, + 54107, + 32945, + 45227, + 65535, + 33262, + 17722, + 40223, + 34398, + 27179, + 42277, + 65535, + 20762, + 48781, + 58912, + 35545, + 18493, + 40147, + 0, + 46785, + 33908, + 0, + 58300, + 12179, + 59020, + 65535, + 37700 + ] + ] +}
\ No newline at end of file diff --git a/operators/type_conversion/rescale/rescale_24x31_i16_outUINT16_sc1_dr0_pc1/desc.json b/operators/type_conversion/rescale/rescale_24x31_i16_outUINT16_sc1_dr0_pc1/desc.json new file mode 100644 index 000000000..3cd43b509 --- /dev/null +++ b/operators/type_conversion/rescale/rescale_24x31_i16_outUINT16_sc1_dr0_pc1/desc.json @@ -0,0 +1,20 @@ +{ + "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" + ] +}
\ No newline at end of file diff --git a/operators/type_conversion/rescale/rescale_24x31_i16_outUINT16_sc1_dr0_pc1/input-0.json b/operators/type_conversion/rescale/rescale_24x31_i16_outUINT16_sc1_dr0_pc1/input-0.json new file mode 100644 index 000000000..0a3c3145f --- /dev/null +++ b/operators/type_conversion/rescale/rescale_24x31_i16_outUINT16_sc1_dr0_pc1/input-0.json @@ -0,0 +1,797 @@ +{ + "type": "int32", + "data": [ + [ + 31736, + -23239, + -29861, + 14186, + -32519, + 24565, + -31405, + 12355, + -3152, + 9532, + 8086, + -3652, + -1215, + 220, + 11608, + 13780, + -3303, + -9667, + -29979, + 18298, + -17946, + -4313, + 32284, + 18665, + -10102, + -1644, + -11485, + 8269, + -22755, + 29664, + 31925 + ], + [ + -13202, + -17665, + 2571, + 9622, + 9411, + -30013, + 13829, + -28412, + -10357, + 14205, + 25367, + 8858, + -22301, + 11807, + -30341, + -17632, + -24659, + 31777, + -8628, + 3825, + 19044, + 30772, + 32472, + -22009, + -6952, + -6220, + 19413, + -10769, + -17612, + 16716, + -320 + ], + [ + 16224, + -7871, + -882, + -32170, + -31710, + -32746, + -21286, + -9986, + -29474, + -22234, + 22741, + 23237, + -13778, + 29260, + -25040, + -30711, + -9557, + -15419, + -27703, + 22770, + 31382, + -15048, + -12124, + 14312, + 28381, + -13969, + 11975, + -31252, + 4332, + 31926, + -1606 + ], + [ + 9275, + 12280, + 8669, + 12207, + 25343, + -32079, + 25205, + 26724, + 26477, + -8654, + 5439, + -9616, + 22302, + -6122, + -12255, + 12142, + -29533, + -8126, + -19249, + -8269, + -3360, + -28609, + 23898, + -5463, + -9254, + -22972, + 32492, + 23303, + -1188, + -10846, + -2131 + ], + [ + 30203, + -18259, + 12093, + 26447, + 16787, + 24258, + 29343, + -28837, + -17110, + -23304, + 4409, + -6067, + -30099, + 3773, + -26165, + -6075, + -8744, + 25794, + 11960, + 8139, + 21737, + -20937, + -15965, + 16536, + 16323, + -31369, + -18069, + -17885, + -32372, + 10571, + -29202 + ], + [ + 22372, + 5607, + 17152, + -187, + 30818, + -15046, + 3799, + -32339, + 21816, + 4457, + -21241, + 20814, + 32061, + -28276, + 22659, + 15497, + -9541, + 8817, + 18704, + -1354, + 10909, + -29600, + 27873, + 27759, + -18989, + -1479, + -17124, + -6580, + -14728, + 23689, + 12763 + ], + [ + 22647, + 19195, + 14893, + -21847, + 21584, + 18552, + -24621, + -27017, + 17099, + -7198, + -11270, + -6782, + 24084, + -8933, + -8505, + -6602, + -29210, + -30314, + -5612, + -31666, + 16828, + -4956, + 61, + -10744, + 17277, + -4751, + -30457, + -767, + -21158, + 6227, + 4168 + ], + [ + -1667, + -7517, + 6290, + 11807, + 24810, + 30313, + -27320, + 10476, + -27221, + -5416, + 15813, + 2776, + 20171, + 27054, + 31056, + 11337, + 11364, + 19869, + -17496, + -13008, + -10403, + 16011, + -9752, + -23631, + 19572, + 16369, + 6173, + 25005, + 19126, + 26229, + -15745 + ], + [ + -25128, + -10385, + 21619, + 27831, + -25564, + 23298, + -1416, + 20838, + 11961, + -28835, + -1033, + -26939, + -10492, + 16879, + 12046, + 13411, + 10543, + -31804, + 5432, + -983, + 1863, + -18824, + 13483, + 7047, + -6355, + -29061, + -28262, + -9241, + 2454, + 32564, + 14644 + ], + [ + -958, + -13163, + -21719, + -23544, + -28057, + 26990, + -31728, + 23838, + 5472, + 7761, + 30058, + 18783, + -23126, + 30723, + -21229, + 4538, + 9217, + -16766, + 8537, + 9097, + 31448, + 27170, + -6574, + 12461, + 21032, + -31049, + 12112, + 27337, + -24888, + 16624, + -28813 + ], + [ + -6434, + 20938, + 31948, + 14927, + 14527, + -15784, + 21328, + 10413, + 29043, + 6741, + -30175, + 717, + 17984, + 18870, + -7449, + -21561, + 24187, + 21178, + 24831, + 11180, + 21536, + -6371, + 18297, + -770, + 19286, + -23179, + -13334, + -18718, + -6126, + 20611, + -25228 + ], + [ + 15106, + 21665, + 11214, + 9568, + -23697, + 7387, + -17929, + -16642, + 23690, + 7539, + 32337, + -2979, + -9322, + 32457, + 8028, + 23794, + -29853, + 1702, + 20770, + 20214, + 14091, + -21988, + 3069, + -26123, + 19787, + 8562, + -20066, + 14862, + 14373, + -29291, + -26923 + ], + [ + -19598, + -28174, + 2442, + 24899, + -28652, + 7506, + -4978, + 22039, + -1175, + 11056, + 27643, + -23844, + -12080, + -15092, + -21715, + 9692, + -32276, + -7474, + -24799, + 7552, + 16440, + -2173, + -3610, + -3294, + -19745, + -8156, + 28378, + -30071, + 18844, + -21973, + -25273 + ], + [ + -14051, + -15142, + -12046, + 22900, + 26519, + 12611, + -23187, + 29199, + 22772, + -27771, + -7386, + 18049, + -26925, + -27761, + 6945, + -10705, + -3826, + 16427, + 2938, + 13828, + -24507, + -32630, + -16275, + -19534, + -11533, + 18256, + -22809, + -24501, + -19613, + -11379, + -19840 + ], + [ + -20717, + 5216, + -25464, + -22679, + 22061, + -31575, + -28748, + -28217, + 2362, + 12764, + 12626, + 12457, + -28994, + -10188, + 8744, + 11931, + -10875, + 22723, + 21859, + 17407, + 19507, + 31140, + 19261, + 5600, + -6642, + -9043, + 21138, + -13377, + 8518, + 178, + -7951 + ], + [ + -3225, + -27482, + 13727, + -28389, + -27932, + -16293, + 2053, + -13135, + 24919, + 28018, + -6994, + 32763, + -26935, + -23353, + -10004, + 29017, + 236, + 13535, + 10006, + -92, + 28291, + 29798, + -3398, + 14004, + 8122, + 6137, + -26114, + -19037, + 32115, + -16749, + 9944 + ], + [ + 26968, + 6713, + -18676, + 23570, + -30651, + 14622, + -15321, + 9193, + -1275, + 4527, + -7736, + 1895, + 28560, + 21391, + -5337, + 28920, + 25496, + 8344, + 6203, + -30434, + 1581, + -18832, + -22270, + 23484, + -15006, + 7566, + 24062, + 6414, + 18347, + 18028, + -3446 + ], + [ + 27641, + 26805, + -10635, + 20917, + -20772, + -25423, + 1967, + 6942, + 5474, + 19584, + -7149, + 20207, + 26352, + -26782, + -3329, + -18048, + 10255, + -5700, + -14313, + -16278, + -9520, + -25629, + -25915, + 8441, + 29018, + 489, + 28007, + -22611, + 31014, + 5661, + 15972 + ], + [ + -28704, + 6820, + -7666, + 26114, + 19170, + 23870, + 25562, + 14461, + -16697, + -14228, + 23560, + 6657, + 25674, + 19335, + 7004, + -22776, + 31600, + -16843, + -16635, + -23196, + -28248, + -8190, + 22507, + 23973, + -595, + -12147, + -10063, + 27452, + -29149, + -29004, + -28533 + ], + [ + 25423, + -26823, + 28936, + -20733, + 3168, + 30828, + -25175, + -14326, + 14913, + 20778, + 26694, + -31496, + 18154, + -11678, + 3783, + 26620, + 26360, + -20642, + -1923, + -14155, + 7526, + 21398, + -11932, + -24813, + -28553, + -29283, + -8755, + 30538, + -16270, + -6240, + 11468 + ], + [ + 10346, + -15071, + -24438, + -22508, + -18339, + -27122, + -2623, + 9553, + 11478, + 26805, + -13550, + 10144, + 25207, + -30908, + 18425, + -26991, + 3378, + 21675, + -2674, + 3916, + 7834, + 5102, + 15182, + 23539, + -23924, + -5513, + 23110, + -7774, + -695, + 15871, + 28530 + ], + [ + -16279, + 29854, + 13746, + -30755, + 23696, + -7571, + -14274, + 1718, + 4994, + 2594, + -29149, + 21128, + -10371, + -23521, + 4312, + 8027, + -25985, + 29006, + 6593, + 32551, + 11171, + -32108, + -19111, + 30970, + 3907, + -24759, + -27901, + 2421, + 6168, + -16622, + -19996 + ], + [ + 6972, + -4224, + -30342, + -28990, + -17149, + 4199, + -13070, + -31788, + 27237, + 12677, + 5480, + -16761, + 13645, + 29246, + 11535, + -13388, + -7059, + 28123, + -31850, + -18266, + -25755, + 9254, + -2700, + -24040, + 28920, + 3389, + -16466, + 29219, + 12997, + -24257, + 21403 + ], + [ + -28901, + 26659, + -6983, + -13535, + -29263, + 28264, + 3908, + 7076, + 22961, + 550, + -13772, + 18244, + 1978, + -17124, + 22580, + 20485, + -16561, + 9827, + 27584, + 19619, + -19743, + 23312, + -29075, + 7690, + 747, + -30361, + 14812, + -13255, + 23086, + 24773, + 5928 + ] + ] +}
\ No newline at end of file diff --git a/operators/type_conversion/rescale/rescale_24x31_i16_outUINT16_sc1_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_24x31_i16_outUINT16_sc1_dr0_pc1/test.json new file mode 100644 index 000000000..2b26a4098 --- /dev/null +++ b/operators/type_conversion/rescale/rescale_24x31_i16_outUINT16_sc1_dr0_pc1/test.json @@ -0,0 +1,122 @@ +{ + version: { + _major: 0, + _minor: 30, + _patch: 0, + _draft: false + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "RESCALE", + attribute_type: "RescaleAttribute", + attribute: { + input_zp: 0, + output_zp: 32768, + multiplier: [ + 1911381504, + 1651537280, + 1083894016, + 1852403200, + 1636449920, + 1621355008, + 1555141376, + 1890514816, + 1688688512, + 1929131136, + 1173042560, + 1755026816, + 1769960704, + 1401838080, + 1808778880, + 1817564672, + 1556807040, + 1749604992, + 2035384448, + 1215952896, + 1552747392, + 1359558656, + 1489443968, + 1957203840, + 1638692352, + 1671682048, + 1850844288, + 1667874688, + 1221001728, + 1533896704, + 1786512128 + ], + shift: [ + 30, + 31, + 30, + 30, + 30, + 31, + 35, + 30, + 30, + 31, + 30, + 32, + 31, + 32, + 32, + 30, + 31, + 30, + 31, + 33, + 31, + 32, + 30, + 30, + 30, + 30, + 30, + 30, + 30, + 30, + 31 + ], + scale32: true, + double_round: false, + per_channel: true + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 24, + 31 + ], + type: "INT16" + }, + { + name: "result-0", + shape: [ + 24, + 31 + ], + type: "UINT16" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} |