From 7596fd972b49fecfd1c0cc0a425a5d8c64e9c33c Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Tue, 18 Oct 2022 17:38:25 +0100 Subject: Updating RESCALE tests for renaming of out type Signed-off-by: Jeremy Johnson Change-Id: I089ebcbc766f3f68f4ad8e7ca0c3cdf9c92253c6 --- .../Conformance-result-0.json | 366 +++++++++++++++++++++ .../rescale_19x17_i8_outi32_sc1_dr1_pc0/desc.json | 24 ++ .../input-0.json | 366 +++++++++++++++++++++ .../rescale_19x17_i8_outi32_sc1_dr1_pc0/test.json | 62 ++++ 4 files changed, 818 insertions(+) create mode 100644 operators/type_conversion/rescale/rescale_19x17_i8_outi32_sc1_dr1_pc0/Conformance-result-0.json create mode 100644 operators/type_conversion/rescale/rescale_19x17_i8_outi32_sc1_dr1_pc0/desc.json create mode 100644 operators/type_conversion/rescale/rescale_19x17_i8_outi32_sc1_dr1_pc0/input-0.json create mode 100644 operators/type_conversion/rescale/rescale_19x17_i8_outi32_sc1_dr1_pc0/test.json (limited to 'operators/type_conversion/rescale/rescale_19x17_i8_outi32_sc1_dr1_pc0') diff --git a/operators/type_conversion/rescale/rescale_19x17_i8_outi32_sc1_dr1_pc0/Conformance-result-0.json b/operators/type_conversion/rescale/rescale_19x17_i8_outi32_sc1_dr1_pc0/Conformance-result-0.json new file mode 100644 index 000000000..659cee283 --- /dev/null +++ b/operators/type_conversion/rescale/rescale_19x17_i8_outi32_sc1_dr1_pc0/Conformance-result-0.json @@ -0,0 +1,366 @@ +{ + "type": "int32", + "data": [ + [ + -68298693, + -62089721, + -184199506, + -8278629, + 120040128, + 184199506, + 287682375, + 223522997, + -18626916, + 248358885, + -86925610, + -78646980, + 0, + 97273897, + -80716638, + 287682375, + -45532462 + ], + [ + 18626916, + 130388415, + 39323490, + 24835889, + 333214837, + 41393148, + -130388415, + 196617451, + 184199506, + -72438008, + 260776829, + 18626916, + -109691841, + -97273897, + 188338821, + -74507665, + 60020064 + ], + [ + 198687108, + 262846487, + 70368351, + 291821690, + -28975203, + 273194774, + -55880749, + -155224303, + 194547793, + 211105052, + 302169977, + 298030662, + -134527729, + 140736702, + 184199506, + 128318757, + -180060192 + ], + [ + -165572590, + 165572590, + 264916144, + -95204239, + -165572590, + 24835889, + -22766231, + 331145180, + 302169977, + 105552526, + 314587921, + -68298693, + 335284495, + 47602120, + 62089721, + -163502933, + -95204239 + ], + [ + -86925610, + 68298693, + -88995267, + -134527729, + 130388415, + 273194774, + -153154646, + 107622184, + 318727236, + 24835889, + -93134582, + -146945674, + 306309292, + 24835889, + -134527729, + 269055459, + 235940941 + ], + [ + 184199506, + -144876016, + -144876016, + -72438008, + -105552526, + 93134582, + 18626916, + 215244367, + -136597387, + 196617451, + 306309292, + -120040128, + 155224303, + 80716638, + -138667044, + -35184175, + 227662311 + ], + [ + 271125116, + 6208972, + -132458072, + -60020064, + 256637515, + 111761498, + 39323490, + -182129849, + 225592654, + 57950407, + 99343554, + 258707172, + 107622184, + 302169977, + 107622184, + -8278629, + 300100319 + ], + [ + 151084988, + 213174710, + -68298693, + 165572590, + 107622184, + -134527729, + -53811092, + 293891347, + 113831156, + 221453339, + -99343554, + -74507665, + 308378949, + 33114518, + 281473403, + 238010598, + -10348287 + ], + [ + 314587921, + 221453339, + -122109785, + -138667044, + -122109785, + 202826423, + -113831156, + -39323490, + 41393148, + -117970470, + -14487602, + 169711905, + 324936208, + 60020064, + 206965738, + 91064925, + 57950407 + ], + [ + 86925610, + 318727236, + -157293960, + 82786295, + -161433275, + 275264431, + 128318757, + -163502933, + 140736702, + 41393148, + -163502933, + 329075523, + 10348287, + -175920877, + 134527729, + 10348287, + 159363618 + ], + [ + -103482869, + 250428542, + 33114518, + 33114518, + 235940941, + 101413211, + -188338821, + 117970470, + 153154646, + -24835888, + -93134582, + -161433275, + 258707172, + -186269164, + 120040128, + 254567857, + -2069657 + ], + [ + -82786295, + 190408479, + 144876016, + -182129849, + 115900813, + -188338821, + 22766231, + -28975203, + 252498200, + 329075523, + 180060192, + 200756765, + -177990534, + -155224303, + 221453339, + 37253833, + 78646980 + ], + [ + 177990534, + -6208972, + 171781562, + 196617451, + -62089721, + 173851220, + -99343554, + -24835888, + 223522997, + 331145180, + -155224303, + 155224303, + 111761498, + 132458072, + 227662311, + -153154646, + 202826423 + ], + [ + -41393147, + -107622183, + 47602120, + -175920877, + 144876016, + 109691841, + 82786295, + -173851219, + 215244367, + -169711905, + -49671777, + 20696574, + 182129849, + 26905546, + 244219570, + 306309292, + 215244367 + ], + [ + -169711905, + 219383682, + -80716638, + 281473403, + 329075523, + -144876016, + -136597387, + 180060192, + -113831156, + 322866551, + 97273897, + 113831156, + 266985801, + -74507665, + 105552526, + 339423810, + -177990534 + ], + [ + -97273897, + -111761498, + -12417944, + -120040128, + -97273897, + 262846487, + 55880749, + 0, + 33114518, + 324936208, + 70368351, + 60020064, + 302169977, + -169711905, + 64159379, + 206965738, + 82786295 + ], + [ + 271125116, + 279403746, + -10348287, + 244219570, + -60020064, + -62089721, + 329075523, + -182129849, + -2069657, + 144876016, + 28975203, + 258707172, + -55880749, + 103482869, + -122109785, + -76577323, + -97273897 + ], + [ + 202826423, + -82786295, + 165572590, + -6208972, + 109691841, + 273194774, + 269055459, + -184199506, + 225592654, + 316657578, + 163502933, + -91064924, + 163502933, + 146945674, + 161433275, + 37253833, + 88995267 + ], + [ + 155224303, + 55880749, + 221453339, + 186269164, + -28975203, + 134527729, + 211105052, + 70368351, + 190408479, + -122109785, + 14487602, + 182129849, + 285612718, + 153154646, + 161433275, + -8278629, + 182129849 + ] + ] +} \ No newline at end of file diff --git a/operators/type_conversion/rescale/rescale_19x17_i8_outi32_sc1_dr1_pc0/desc.json b/operators/type_conversion/rescale/rescale_19x17_i8_outi32_sc1_dr1_pc0/desc.json new file mode 100644 index 000000000..7b8f68902 --- /dev/null +++ b/operators/type_conversion/rescale/rescale_19x17_i8_outi32_sc1_dr1_pc0/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_19x17_i8_outi32_sc1_dr1_pc0/input-0.json b/operators/type_conversion/rescale/rescale_19x17_i8_outi32_sc1_dr1_pc0/input-0.json new file mode 100644 index 000000000..de17908ab --- /dev/null +++ b/operators/type_conversion/rescale/rescale_19x17_i8_outi32_sc1_dr1_pc0/input-0.json @@ -0,0 +1,366 @@ +{ + "type": "int32", + "data": [ + [ + -70, + -67, + -126, + -41, + 21, + 52, + 102, + 71, + -46, + 83, + -79, + -75, + -37, + 10, + -76, + 102, + -59 + ], + [ + -28, + 26, + -18, + -25, + 124, + -17, + -100, + 58, + 52, + -72, + 89, + -28, + -90, + -84, + 54, + -73, + -8 + ], + [ + 59, + 90, + -3, + 104, + -51, + 95, + -64, + -112, + 57, + 65, + 109, + 107, + -102, + 31, + 52, + 25, + -124 + ], + [ + -117, + 43, + 91, + -83, + -117, + -25, + -48, + 123, + 109, + 14, + 115, + -70, + 125, + -14, + -7, + -116, + -83 + ], + [ + -79, + -4, + -80, + -102, + 26, + 95, + -111, + 15, + 117, + -25, + -82, + -108, + 111, + -25, + -102, + 93, + 77 + ], + [ + 52, + -107, + -107, + -72, + -88, + 8, + -28, + 67, + -103, + 58, + 111, + -95, + 38, + 2, + -104, + -54, + 73 + ], + [ + 94, + -34, + -101, + -66, + 87, + 17, + -18, + -125, + 72, + -9, + 11, + 88, + 15, + 109, + 15, + -41, + 108 + ], + [ + 36, + 66, + -70, + 43, + 15, + -102, + -63, + 105, + 18, + 70, + -85, + -73, + 112, + -21, + 99, + 78, + -42 + ], + [ + 115, + 70, + -96, + -104, + -96, + 61, + -92, + -56, + -17, + -94, + -44, + 45, + 120, + -8, + 63, + 7, + -9 + ], + [ + 5, + 117, + -113, + 3, + -115, + 96, + 25, + -116, + 31, + -17, + -116, + 122, + -32, + -122, + 28, + -32, + 40 + ], + [ + -87, + 84, + -21, + -21, + 77, + 12, + -128, + 20, + 37, + -49, + -82, + -115, + 88, + -127, + 21, + 86, + -38 + ], + [ + -77, + 55, + 33, + -125, + 19, + -128, + -26, + -51, + 85, + 122, + 50, + 60, + -123, + -112, + 70, + -19, + 1 + ], + [ + 49, + -40, + 46, + 58, + -67, + 47, + -85, + -49, + 71, + 123, + -112, + 38, + 17, + 27, + 73, + -111, + 61 + ], + [ + -57, + -89, + -14, + -122, + 33, + 16, + 3, + -121, + 67, + -119, + -61, + -27, + 51, + -24, + 81, + 111, + 67 + ], + [ + -119, + 69, + -76, + 99, + 122, + -107, + -103, + 50, + -92, + 119, + 10, + 18, + 92, + -73, + 14, + 127, + -123 + ], + [ + -84, + -91, + -43, + -95, + -84, + 90, + -10, + -37, + -21, + 120, + -3, + -8, + 109, + -119, + -6, + 63, + 3 + ], + [ + 94, + 98, + -42, + 81, + -66, + -67, + 122, + -125, + -38, + 33, + -23, + 88, + -64, + 13, + -96, + -74, + -84 + ], + [ + 61, + -77, + 43, + -40, + 16, + 95, + 93, + -126, + 72, + 116, + 42, + -81, + 42, + 34, + 41, + -19, + 6 + ], + [ + 38, + -10, + 70, + 53, + -51, + 28, + 65, + -3, + 55, + -96, + -30, + 51, + 101, + 37, + 41, + -41, + 51 + ] + ] +} \ No newline at end of file diff --git a/operators/type_conversion/rescale/rescale_19x17_i8_outi32_sc1_dr1_pc0/test.json b/operators/type_conversion/rescale/rescale_19x17_i8_outi32_sc1_dr1_pc0/test.json new file mode 100644 index 000000000..71bf09e26 --- /dev/null +++ b/operators/type_conversion/rescale/rescale_19x17_i8_outi32_sc1_dr1_pc0/test.json @@ -0,0 +1,62 @@ +{ + version: { + _major: 0, + _minor: 41, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "RESCALE", + attribute_type: "RescaleAttribute", + attribute: { + input_zp: -37, + output_zp: 0, + multiplier: [ + 2119329152 + ], + shift: [ + 10 + ], + scale32: true, + double_round: true, + per_channel: false + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 19, + 17 + ], + type: "INT8" + }, + { + name: "result-0", + shape: [ + 19, + 17 + ], + type: "INT32" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} -- cgit v1.2.1