diff options
author | Jeremy Johnson <jeremy.johnson@arm.com> | 2023-04-26 15:52:47 +0100 |
---|---|---|
committer | Jeremy Johnson <jeremy.johnson@arm.com> | 2023-04-26 16:38:44 +0100 |
commit | fe6e6eb29a416ad7618567d4365f8b65165694c1 (patch) | |
tree | 0c04b12b7b2b1d47ad1c0d2a214aa746c208e870 /operators/type_conversion/rescale/rescale_1x7x2x1x5x9_i8_outi8_sc1_dr1_pc1 | |
parent | 92ccc0a3f268836538098b1c204ded4b9905b728 (diff) | |
download | conformance_tests-fe6e6eb29a416ad7618567d4365f8b65165694c1.tar.gz |
Updating TYPE_CONVERSION tests for 8k level support
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: I1cceadb2d39ee445375b9f12c11a8075e12df6c5
Diffstat (limited to 'operators/type_conversion/rescale/rescale_1x7x2x1x5x9_i8_outi8_sc1_dr1_pc1')
4 files changed, 1812 insertions, 0 deletions
diff --git a/operators/type_conversion/rescale/rescale_1x7x2x1x5x9_i8_outi8_sc1_dr1_pc1/Conformance-result-0.json b/operators/type_conversion/rescale/rescale_1x7x2x1x5x9_i8_outi8_sc1_dr1_pc1/Conformance-result-0.json new file mode 100644 index 000000000..4b28fd202 --- /dev/null +++ b/operators/type_conversion/rescale/rescale_1x7x2x1x5x9_i8_outi8_sc1_dr1_pc1/Conformance-result-0.json @@ -0,0 +1,847 @@ +{ + "type": "int32", + "data": [ + [ + [ + [ + [ + [ + -128, + -128, + -62, + -107, + -128, + -128, + -128, + -48, + -84 + ], + [ + -122, + -128, + -74, + -98, + -54, + -91, + -113, + -49, + -128 + ], + [ + -58, + -128, + -78, + -83, + -128, + -128, + -128, + -128, + -128 + ], + [ + -120, + -128, + -59, + -102, + -81, + -128, + -128, + -128, + -128 + ], + [ + -88, + -128, + -58, + -51, + -128, + -104, + -85, + -128, + -70 + ] + ] + ], + [ + [ + [ + -81, + -128, + -82, + -101, + -128, + -128, + -128, + -128, + -58 + ], + [ + -67, + -96, + -75, + -96, + -128, + -128, + -128, + -65, + -80 + ], + [ + -128, + -46, + -83, + -128, + -66, + -128, + -67, + -128, + -128 + ], + [ + -69, + -128, + -71, + -76, + -128, + -128, + -73, + -93, + -55 + ], + [ + -86, + -94, + -68, + -80, + -128, + -53, + -77, + -128, + -51 + ] + ] + ] + ], + [ + [ + [ + [ + -128, + -103, + -60, + -103, + -128, + -40, + -82, + -113, + -38 + ], + [ + -128, + -128, + -80, + -124, + -128, + -120, + -128, + -105, + -84 + ], + [ + -128, + -128, + -65, + -104, + -128, + -62, + -128, + -128, + -128 + ], + [ + -103, + -128, + -60, + -84, + -128, + -128, + -128, + -128, + -128 + ], + [ + -128, + -108, + -78, + -103, + -128, + -49, + -37, + -85, + -128 + ] + ] + ], + [ + [ + [ + -99, + -128, + -60, + -86, + -128, + -128, + -85, + -80, + -95 + ], + [ + -128, + -110, + -78, + -83, + -128, + -128, + -73, + -70, + -83 + ], + [ + -95, + -118, + -64, + -90, + -62, + -83, + -128, + -97, + -46 + ], + [ + -112, + -128, + -62, + -128, + -128, + -128, + -128, + -128, + -128 + ], + [ + -106, + -62, + -77, + -105, + -90, + -101, + -46, + -105, + -86 + ] + ] + ] + ], + [ + [ + [ + [ + -66, + -128, + -62, + -52, + -128, + -82, + -122, + -70, + -128 + ], + [ + -128, + -128, + -66, + -60, + -128, + -128, + -128, + -96, + -128 + ], + [ + -52, + -103, + -60, + -128, + -128, + -128, + -88, + -89, + -128 + ], + [ + -128, + -128, + -75, + -79, + -63, + -128, + -57, + -128, + -67 + ], + [ + -128, + -93, + -59, + -115, + -91, + -128, + -69, + -109, + -128 + ] + ] + ], + [ + [ + [ + -56, + -52, + -79, + -54, + -128, + -75, + -86, + -107, + -124 + ], + [ + -128, + -128, + -71, + -63, + -120, + -118, + -102, + -57, + -66 + ], + [ + -128, + -66, + -73, + -128, + -128, + -128, + -128, + -119, + -128 + ], + [ + -128, + -128, + -60, + -117, + -96, + -128, + -128, + -128, + -128 + ], + [ + -128, + -109, + -73, + -53, + -128, + -52, + -128, + -80, + -45 + ] + ] + ] + ], + [ + [ + [ + [ + -128, + -128, + -60, + -69, + -128, + -128, + -128, + -112, + -128 + ], + [ + -128, + -128, + -74, + -113, + -70, + -128, + -59, + -128, + -128 + ], + [ + -52, + -128, + -67, + -75, + -128, + -108, + -116, + -111, + -128 + ], + [ + -117, + -128, + -72, + -111, + -128, + -128, + -128, + -128, + -128 + ], + [ + -128, + -128, + -78, + -96, + -128, + -128, + -128, + -128, + -128 + ] + ] + ], + [ + [ + [ + -97, + -128, + -72, + -77, + -128, + -100, + -128, + -107, + -128 + ], + [ + -114, + -128, + -80, + -93, + -96, + -128, + -120, + -126, + -73 + ], + [ + -128, + -81, + -75, + -91, + -128, + -128, + -35, + -128, + -128 + ], + [ + -119, + -119, + -85, + -124, + -128, + -54, + -128, + -99, + -128 + ], + [ + -125, + -74, + -66, + -101, + -128, + -128, + -49, + -128, + -128 + ] + ] + ] + ], + [ + [ + [ + [ + -128, + -73, + -66, + -53, + -85, + -128, + -128, + -62, + -107 + ], + [ + -128, + -41, + -68, + -85, + -128, + -128, + -128, + -128, + -128 + ], + [ + -128, + -128, + -79, + -85, + -128, + -128, + -128, + -121, + -128 + ], + [ + -128, + -128, + -68, + -99, + -128, + -92, + -128, + -92, + -41 + ], + [ + -128, + -36, + -59, + -94, + -128, + -128, + -128, + -97, + -102 + ] + ] + ], + [ + [ + [ + -115, + -128, + -84, + -56, + -45, + -128, + -128, + -49, + -128 + ], + [ + -97, + -128, + -68, + -62, + -128, + -77, + -128, + -128, + -128 + ], + [ + -84, + -126, + -61, + -119, + -86, + -128, + -128, + -96, + -128 + ], + [ + -101, + -72, + -62, + -123, + -128, + -127, + -44, + -87, + -128 + ], + [ + -95, + -128, + -82, + -77, + -128, + -82, + -128, + -114, + -128 + ] + ] + ] + ], + [ + [ + [ + [ + -128, + -128, + -66, + -103, + -128, + -128, + -128, + -106, + -128 + ], + [ + -46, + -128, + -74, + -105, + -128, + -61, + -128, + -128, + -128 + ], + [ + -95, + -128, + -74, + -63, + -128, + -108, + -72, + -119, + -128 + ], + [ + -128, + -124, + -70, + -64, + -128, + -128, + -128, + -94, + -128 + ], + [ + -46, + -128, + -63, + -92, + -128, + -68, + -128, + -128, + -87 + ] + ] + ], + [ + [ + [ + -58, + -128, + -70, + -97, + -84, + -128, + -125, + -87, + -73 + ], + [ + -128, + -113, + -80, + -128, + -86, + -128, + -100, + -54, + -128 + ], + [ + -120, + -128, + -63, + -51, + -63, + -40, + -128, + -128, + -67 + ], + [ + -93, + -128, + -79, + -128, + -128, + -97, + -128, + -69, + -69 + ], + [ + -120, + -128, + -80, + -117, + -101, + -85, + -96, + -52, + -111 + ] + ] + ] + ], + [ + [ + [ + [ + -112, + -128, + -76, + -107, + -62, + -125, + -128, + -128, + -128 + ], + [ + -66, + -128, + -82, + -114, + -120, + -47, + -66, + -128, + -128 + ], + [ + -69, + -90, + -72, + -119, + -75, + -128, + -128, + -82, + -62 + ], + [ + -60, + -49, + -68, + -72, + -128, + -128, + -128, + -128, + -70 + ], + [ + -119, + -128, + -83, + -124, + -128, + -128, + -128, + -128, + -99 + ] + ] + ], + [ + [ + [ + -128, + -72, + -60, + -83, + -111, + -90, + -128, + -57, + -62 + ], + [ + -86, + -35, + -77, + -61, + -128, + -87, + -128, + -51, + -128 + ], + [ + -128, + -128, + -61, + -69, + -128, + -128, + -128, + -128, + -128 + ], + [ + -128, + -128, + -84, + -71, + -62, + -59, + -72, + -128, + -128 + ], + [ + -66, + -128, + -65, + -128, + -128, + -81, + -97, + -128, + -128 + ] + ] + ] + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/type_conversion/rescale/rescale_1x7x2x1x5x9_i8_outi8_sc1_dr1_pc1/desc.json b/operators/type_conversion/rescale/rescale_1x7x2x1x5x9_i8_outi8_sc1_dr1_pc1/desc.json new file mode 100644 index 000000000..279cf7380 --- /dev/null +++ b/operators/type_conversion/rescale/rescale_1x7x2x1x5x9_i8_outi8_sc1_dr1_pc1/desc.json @@ -0,0 +1,27 @@ +{ + "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" + ], + "tag": [ + "8k_level" + ] +}
\ No newline at end of file diff --git a/operators/type_conversion/rescale/rescale_1x7x2x1x5x9_i8_outi8_sc1_dr1_pc1/input-0.json b/operators/type_conversion/rescale/rescale_1x7x2x1x5x9_i8_outi8_sc1_dr1_pc1/input-0.json new file mode 100644 index 000000000..ab1870423 --- /dev/null +++ b/operators/type_conversion/rescale/rescale_1x7x2x1x5x9_i8_outi8_sc1_dr1_pc1/input-0.json @@ -0,0 +1,847 @@ +{ + "type": "int32", + "data": [ + [ + [ + [ + [ + [ + -34, + -85, + 93, + -34, + -88, + 0, + -113, + 125, + 71 + ], + [ + -16, + 11, + -26, + -8, + 111, + 57, + 41, + 122, + -87 + ], + [ + 104, + -83, + -62, + 36, + -94, + -9, + -42, + -126, + -81 + ], + [ + -14, + -107, + 112, + -19, + 63, + -76, + 15, + -99, + -79 + ], + [ + 47, + -43, + 123, + 127, + -95, + 40, + 72, + -58, + 87 + ] + ] + ], + [ + [ + [ + 60, + -45, + -105, + -15, + -34, + 7, + -70, + -49, + 101 + ], + [ + 87, + 60, + -38, + -1, + -54, + -24, + 4, + 91, + 75 + ], + [ + -78, + 114, + -109, + -116, + 90, + -56, + 91, + -111, + -66 + ], + [ + 83, + -79, + 4, + 56, + -39, + -92, + 85, + 31, + 105 + ], + [ + 51, + 62, + 31, + 43, + -19, + 109, + 80, + -66, + 110 + ] + ] + ] + ], + [ + [ + [ + [ + -69, + 52, + 107, + -21, + -81, + 126, + 75, + -13, + 125 + ], + [ + -99, + 6, + -82, + -81, + -39, + 18, + -85, + 5, + 71 + ], + [ + -91, + -125, + 63, + -25, + -80, + 96, + -19, + -98, + -49 + ], + [ + 19, + -54, + 111, + 32, + -110, + -40, + -39, + -91, + -119 + ], + [ + -100, + 46, + -65, + -22, + -92, + 114, + 124, + 48, + -44 + ] + ] + ], + [ + [ + [ + 26, + -30, + 105, + 26, + -95, + -104, + 72, + 58, + 58 + ], + [ + -43, + 44, + -59, + 35, + -44, + -97, + 85, + 80, + 72 + ], + [ + 34, + 35, + 69, + 16, + 96, + 68, + 10, + 22, + 116 + ], + [ + 1, + -101, + 87, + -127, + -65, + -44, + -122, + -73, + -83 + ], + [ + 13, + 97, + -57, + -28, + 48, + 44, + 114, + 5, + 68 + ] + ] + ] + ], + [ + [ + [ + [ + 88, + -21, + 86, + 124, + -98, + 69, + 31, + 79, + 12 + ], + [ + -76, + -19, + 47, + 101, + -110, + -80, + -68, + 23, + -124 + ], + [ + 115, + 52, + 103, + -123, + -58, + -14, + 69, + 38, + -22 + ], + [ + -50, + -44, + -34, + 48, + 94, + -7, + 102, + -52, + 91 + ], + [ + -128, + 63, + 115, + -57, + 46, + -109, + 89, + -3, + -20 + ] + ] + ], + [ + [ + [ + 108, + 108, + -71, + 117, + -75, + 79, + 71, + 0, + 23 + ], + [ + -28, + -25, + 3, + 92, + -5, + 21, + 53, + 107, + 92 + ], + [ + -34, + 93, + -15, + -104, + -109, + -76, + -34, + -26, + -82 + ], + [ + -83, + -120, + 105, + -63, + 38, + -3, + -36, + -65, + -112 + ], + [ + -101, + 45, + -13, + 119, + -91, + 110, + -106, + 59, + 117 + ] + ] + ] + ], + [ + [ + [ + [ + -89, + -7, + 107, + 77, + -73, + -85, + -42, + -10, + -53 + ], + [ + -105, + -1, + -23, + -50, + 83, + -54, + 100, + -126, + 4 + ], + [ + 115, + -55, + 39, + 59, + -41, + 35, + 38, + -8, + -32 + ], + [ + -7, + -90, + -2, + -45, + -42, + -66, + 4, + -127, + -114 + ], + [ + -75, + 17, + -63, + -1, + -91, + -21, + -12, + -46, + -116 + ] + ] + ], + [ + [ + [ + 31, + -76, + -4, + 53, + -103, + 45, + -33, + 0, + -109 + ], + [ + -1, + -31, + -83, + 8, + 38, + -28, + 34, + -41, + 84 + ], + [ + -57, + 76, + -31, + 14, + -111, + -109, + 126, + -127, + 14 + ], + [ + -11, + 34, + -128, + -82, + -42, + 108, + -39, + 18, + 18 + ], + [ + -22, + 84, + 54, + -15, + -51, + -57, + 111, + -96, + -85 + ] + ] + ] + ], + [ + [ + [ + [ + -61, + 85, + 48, + 119, + 56, + -3, + -118, + 96, + 43 + ], + [ + -110, + 120, + 30, + 30, + -37, + -44, + -35, + -116, + -13 + ], + [ + -113, + 24, + -75, + 29, + -33, + -57, + -91, + -30, + -111 + ], + [ + -65, + -10, + 33, + -11, + -102, + 56, + -20, + 32, + 122 + ], + [ + -116, + 125, + 115, + 4, + -122, + -65, + -71, + 21, + 49 + ] + ] + ], + [ + [ + [ + -3, + -37, + -118, + 112, + 125, + -120, + -45, + 123, + -26 + ], + [ + 31, + 3, + 34, + 97, + -31, + 76, + -12, + -76, + -109 + ], + [ + 55, + 26, + 95, + -68, + 54, + -123, + -93, + 24, + 9 + ], + [ + 23, + 86, + 85, + -78, + -77, + 9, + 117, + 43, + -91 + ], + [ + 34, + -42, + -101, + 54, + -57, + 70, + 13, + -14, + -75 + ] + ] + ] + ], + [ + [ + [ + [ + -54, + -43, + 49, + -22, + -120, + -125, + -58, + 2, + -43 + ], + [ + 126, + -69, + -24, + -27, + -58, + 98, + -64, + -126, + 3 + ], + [ + 34, + -12, + -21, + 92, + -33, + 35, + 86, + -26, + 10 + ], + [ + -30, + 29, + 12, + 90, + -64, + -87, + -20, + 28, + -56 + ], + [ + 127, + 3, + 79, + 11, + -28, + 88, + -88, + -64, + 67 + ] + ] + ], + [ + [ + [ + 103, + -54, + 9, + -4, + 58, + -1, + 28, + 43, + 84 + ], + [ + -93, + 41, + -82, + -126, + 55, + -29, + 55, + 112, + -96 + ], + [ + -13, + -103, + 84, + 127, + 94, + 126, + -43, + -57, + 91 + ], + [ + 38, + -32, + -75, + -122, + -119, + 49, + -61, + 81, + 88 + ], + [ + -13, + -52, + -84, + -63, + 29, + 65, + 60, + 117, + 39 + ] + ] + ] + ], + [ + [ + [ + [ + 2, + -37, + -42, + -34, + 97, + 12, + -72, + -79, + -121 + ], + [ + 88, + -72, + -102, + -54, + -4, + 117, + 92, + -85, + 7 + ], + [ + 82, + 66, + -8, + -67, + 73, + -14, + -68, + 54, + 97 + ], + [ + 99, + 111, + 36, + 68, + -66, + -46, + -91, + -108, + 87 + ], + [ + -11, + 13, + -106, + -81, + -109, + -4, + 20, + -96, + 53 + ] + ] + ], + [ + [ + [ + -102, + 86, + 107, + 35, + 11, + 59, + -65, + 107, + 97 + ], + [ + 50, + 127, + -51, + 98, + -120, + 63, + -54, + 118, + 17 + ], + [ + -78, + -48, + 96, + 77, + -37, + -61, + -120, + -97, + -120 + ], + [ + -44, + -80, + -123, + 71, + 97, + 101, + 86, + -96, + -86 + ], + [ + 88, + -125, + 65, + -96, + -115, + 71, + 59, + -107, + -119 + ] + ] + ] + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/type_conversion/rescale/rescale_1x7x2x1x5x9_i8_outi8_sc1_dr1_pc1/test.json b/operators/type_conversion/rescale/rescale_1x7x2x1x5x9_i8_outi8_sc1_dr1_pc1/test.json new file mode 100644 index 000000000..c71e3fbb8 --- /dev/null +++ b/operators/type_conversion/rescale/rescale_1x7x2x1x5x9_i8_outi8_sc1_dr1_pc1/test.json @@ -0,0 +1,91 @@ +{ + version: { + _major: 0, + _minor: 70, + _patch: 0, + _draft: true + }, + regions: [ + { + name: "main", + blocks: [ + { + name: "main", + operators: [ + { + op: "RESCALE", + attribute_type: "RescaleAttribute", + attribute: { + input_zp: 98, + output_zp: -61, + multiplier: [ + 1140119296, + 1952618752, + 1809929984, + 1495960192, + 1238919552, + 1589578624, + 1965782144, + 2013695872, + 1805817856 + ], + shift: [ + 31, + 31, + 34, + 32, + 31, + 31, + 31, + 32, + 31 + ], + scale32: true, + double_round: true, + per_channel: true + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 7, + 2, + 1, + 5, + 9 + ], + type: "INT8" + }, + { + name: "result-0", + shape: [ + 1, + 7, + 2, + 1, + 5, + 9 + ], + type: "INT8" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] + } + ] +} |