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_outu8_sc0_dr0_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_outu8_sc0_dr0_pc1')
4 files changed, 1812 insertions, 0 deletions
diff --git a/operators/type_conversion/rescale/rescale_1x7x2x1x5x9_i8_outu8_sc0_dr0_pc1/Conformance-result-0.json b/operators/type_conversion/rescale/rescale_1x7x2x1x5x9_i8_outu8_sc0_dr0_pc1/Conformance-result-0.json new file mode 100644 index 000000000..14b88eea2 --- /dev/null +++ b/operators/type_conversion/rescale/rescale_1x7x2x1x5x9_i8_outu8_sc0_dr0_pc1/Conformance-result-0.json @@ -0,0 +1,847 @@ +{ + "type": "int32", + "data": [ + [ + [ + [ + [ + [ + 152, + 213, + 206, + 171, + 208, + 255, + 175, + 208, + 205 + ], + [ + 255, + 211, + 207, + 255, + 223, + 255, + 192, + 202, + 205 + ], + [ + 255, + 226, + 207, + 255, + 237, + 255, + 255, + 211, + 205 + ], + [ + 242, + 255, + 203, + 255, + 206, + 234, + 255, + 206, + 205 + ], + [ + 181, + 180, + 210, + 235, + 226, + 190, + 255, + 205, + 205 + ] + ] + ], + [ + [ + [ + 252, + 255, + 204, + 255, + 195, + 245, + 190, + 214, + 205 + ], + [ + 255, + 255, + 205, + 199, + 195, + 255, + 154, + 204, + 205 + ], + [ + 255, + 227, + 204, + 255, + 236, + 177, + 255, + 206, + 205 + ], + [ + 207, + 168, + 209, + 255, + 227, + 189, + 237, + 208, + 205 + ], + [ + 255, + 255, + 208, + 255, + 234, + 195, + 255, + 202, + 205 + ] + ] + ] + ], + [ + [ + [ + [ + 191, + 207, + 207, + 217, + 225, + 230, + 255, + 209, + 205 + ], + [ + 255, + 255, + 207, + 247, + 228, + 182, + 178, + 209, + 205 + ], + [ + 255, + 255, + 209, + 196, + 206, + 188, + 168, + 211, + 205 + ], + [ + 185, + 255, + 206, + 255, + 228, + 203, + 244, + 204, + 205 + ], + [ + 254, + 255, + 207, + 233, + 199, + 255, + 255, + 205, + 205 + ] + ] + ], + [ + [ + [ + 193, + 179, + 208, + 255, + 221, + 254, + 198, + 205, + 205 + ], + [ + 188, + 198, + 203, + 198, + 219, + 214, + 232, + 214, + 205 + ], + [ + 255, + 171, + 207, + 184, + 215, + 255, + 156, + 208, + 205 + ], + [ + 241, + 250, + 205, + 255, + 202, + 213, + 240, + 214, + 205 + ], + [ + 255, + 185, + 203, + 233, + 239, + 199, + 193, + 203, + 205 + ] + ] + ] + ], + [ + [ + [ + [ + 163, + 251, + 206, + 222, + 228, + 222, + 153, + 209, + 205 + ], + [ + 255, + 255, + 209, + 222, + 212, + 239, + 255, + 211, + 205 + ], + [ + 255, + 222, + 209, + 199, + 214, + 255, + 197, + 210, + 205 + ], + [ + 236, + 210, + 208, + 255, + 236, + 213, + 188, + 214, + 205 + ], + [ + 255, + 218, + 209, + 177, + 192, + 210, + 230, + 212, + 205 + ] + ] + ], + [ + [ + [ + 197, + 177, + 209, + 234, + 242, + 210, + 193, + 205, + 205 + ], + [ + 174, + 184, + 209, + 255, + 217, + 227, + 246, + 209, + 205 + ], + [ + 255, + 168, + 209, + 255, + 218, + 206, + 255, + 212, + 205 + ], + [ + 147, + 251, + 203, + 172, + 193, + 255, + 255, + 213, + 205 + ], + [ + 255, + 191, + 208, + 255, + 209, + 252, + 247, + 208, + 205 + ] + ] + ] + ], + [ + [ + [ + [ + 206, + 255, + 210, + 182, + 217, + 174, + 215, + 206, + 205 + ], + [ + 228, + 215, + 209, + 255, + 190, + 211, + 255, + 202, + 205 + ], + [ + 249, + 255, + 208, + 234, + 212, + 255, + 223, + 207, + 205 + ], + [ + 218, + 251, + 208, + 255, + 214, + 255, + 208, + 214, + 205 + ], + [ + 255, + 255, + 207, + 193, + 241, + 255, + 231, + 205, + 205 + ] + ] + ], + [ + [ + [ + 236, + 255, + 204, + 236, + 196, + 254, + 227, + 204, + 205 + ], + [ + 255, + 207, + 210, + 177, + 208, + 201, + 255, + 204, + 205 + ], + [ + 255, + 201, + 205, + 199, + 218, + 255, + 241, + 213, + 205 + ], + [ + 255, + 255, + 203, + 255, + 244, + 250, + 200, + 207, + 205 + ], + [ + 212, + 230, + 207, + 255, + 242, + 253, + 234, + 207, + 205 + ] + ] + ] + ], + [ + [ + [ + [ + 158, + 226, + 206, + 255, + 236, + 202, + 255, + 207, + 205 + ], + [ + 250, + 253, + 208, + 255, + 229, + 206, + 255, + 205, + 205 + ], + [ + 255, + 230, + 210, + 187, + 212, + 255, + 255, + 206, + 205 + ], + [ + 167, + 255, + 204, + 242, + 216, + 243, + 232, + 202, + 205 + ], + [ + 255, + 248, + 203, + 181, + 204, + 206, + 173, + 213, + 205 + ] + ] + ], + [ + [ + [ + 255, + 255, + 210, + 190, + 190, + 255, + 255, + 211, + 205 + ], + [ + 255, + 227, + 204, + 255, + 205, + 203, + 255, + 210, + 205 + ], + [ + 255, + 255, + 207, + 255, + 191, + 229, + 230, + 203, + 205 + ], + [ + 164, + 255, + 209, + 231, + 203, + 255, + 255, + 203, + 205 + ], + [ + 177, + 250, + 205, + 251, + 233, + 255, + 255, + 211, + 205 + ] + ] + ] + ], + [ + [ + [ + [ + 255, + 255, + 209, + 226, + 205, + 209, + 255, + 209, + 205 + ], + [ + 231, + 255, + 207, + 169, + 197, + 210, + 226, + 211, + 205 + ], + [ + 235, + 178, + 203, + 255, + 236, + 176, + 238, + 214, + 205 + ], + [ + 160, + 224, + 209, + 207, + 219, + 209, + 188, + 213, + 205 + ], + [ + 255, + 214, + 208, + 255, + 220, + 189, + 205, + 204, + 205 + ] + ] + ], + [ + [ + [ + 255, + 186, + 208, + 228, + 212, + 255, + 161, + 211, + 205 + ], + [ + 199, + 197, + 204, + 248, + 225, + 204, + 223, + 215, + 205 + ], + [ + 255, + 183, + 207, + 219, + 235, + 194, + 255, + 214, + 205 + ], + [ + 252, + 246, + 210, + 255, + 234, + 193, + 229, + 212, + 205 + ], + [ + 255, + 214, + 207, + 255, + 237, + 214, + 255, + 201, + 205 + ] + ] + ] + ], + [ + [ + [ + [ + 173, + 255, + 205, + 255, + 226, + 201, + 255, + 204, + 205 + ], + [ + 254, + 229, + 205, + 168, + 228, + 255, + 255, + 214, + 205 + ], + [ + 255, + 255, + 207, + 255, + 228, + 255, + 216, + 204, + 205 + ], + [ + 243, + 192, + 208, + 255, + 231, + 211, + 255, + 202, + 205 + ], + [ + 182, + 198, + 205, + 223, + 192, + 254, + 175, + 203, + 205 + ] + ] + ], + [ + [ + [ + 255, + 173, + 209, + 251, + 235, + 224, + 255, + 208, + 205 + ], + [ + 255, + 223, + 203, + 253, + 207, + 255, + 179, + 211, + 205 + ], + [ + 169, + 245, + 208, + 255, + 205, + 228, + 229, + 206, + 205 + ], + [ + 255, + 188, + 210, + 181, + 237, + 219, + 255, + 213, + 205 + ], + [ + 178, + 221, + 203, + 252, + 212, + 255, + 255, + 207, + 205 + ] + ] + ] + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/type_conversion/rescale/rescale_1x7x2x1x5x9_i8_outu8_sc0_dr0_pc1/desc.json b/operators/type_conversion/rescale/rescale_1x7x2x1x5x9_i8_outu8_sc0_dr0_pc1/desc.json new file mode 100644 index 000000000..279cf7380 --- /dev/null +++ b/operators/type_conversion/rescale/rescale_1x7x2x1x5x9_i8_outu8_sc0_dr0_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_outu8_sc0_dr0_pc1/input-0.json b/operators/type_conversion/rescale/rescale_1x7x2x1x5x9_i8_outu8_sc0_dr0_pc1/input-0.json new file mode 100644 index 000000000..dd7f579d7 --- /dev/null +++ b/operators/type_conversion/rescale/rescale_1x7x2x1x5x9_i8_outu8_sc0_dr0_pc1/input-0.json @@ -0,0 +1,847 @@ +{ + "type": "int32", + "data": [ + [ + [ + [ + [ + [ + -118, + -39, + -38, + -120, + -39, + 83, + -95, + 3, + 40 + ], + [ + 47, + -44, + 19, + 57, + 29, + 86, + -72, + -101, + 111 + ], + [ + 59, + -14, + 18, + 107, + 93, + 78, + 23, + 56, + 20 + ], + [ + -11, + 44, + -123, + 83, + -48, + 11, + 42, + -45, + -44 + ], + [ + -83, + -103, + 97, + 4, + 45, + -89, + 90, + -50, + -11 + ] + ] + ], + [ + [ + [ + 0, + 62, + -99, + 104, + -100, + 35, + -75, + 108, + 23 + ], + [ + 113, + 110, + -60, + -67, + -100, + 56, + -122, + -80, + 104 + ], + [ + 34, + -13, + -93, + 88, + 88, + -117, + 62, + -44, + 46 + ], + [ + -53, + -125, + 65, + 86, + 47, + -90, + -13, + 8, + 75 + ], + [ + 70, + 99, + 33, + 112, + 81, + -77, + 53, + -107, + 65 + ] + ] + ] + ], + [ + [ + [ + [ + -72, + -52, + 18, + -31, + 37, + 0, + 34, + 22, + -76 + ], + [ + 49, + 117, + 14, + 27, + 53, + -107, + -90, + 14, + -27 + ], + [ + 49, + 105, + 72, + -73, + -50, + -92, + -104, + 62, + 49 + ], + [ + -79, + 52, + -11, + 96, + 54, + -59, + -4, + -69, + 102 + ], + [ + 3, + 96, + 2, + 0, + -81, + 117, + 44, + -54, + 86 + ] + ] + ], + [ + [ + [ + -69, + -104, + 43, + 63, + 18, + 54, + -64, + -57, + -33 + ], + [ + -75, + -69, + -116, + -68, + 12, + -34, + -19, + 108, + -127 + ], + [ + 85, + -120, + 3, + -95, + -6, + 101, + -120, + 1, + -10 + ], + [ + -13, + 31, + -45, + 71, + -68, + -37, + -9, + 107, + 8 + ], + [ + 87, + -93, + -107, + 0, + 103, + -69, + -71, + -91, + 108 + ] + ] + ] + ], + [ + [ + [ + [ + -105, + 33, + -31, + -23, + 53, + -17, + -123, + 16, + -122 + ], + [ + 88, + 114, + 86, + -23, + -22, + 21, + 89, + 64, + -8 + ], + [ + 79, + -22, + 69, + -66, + -12, + 83, + -65, + 30, + -57 + ], + [ + -18, + -45, + 41, + 65, + 92, + -37, + -78, + 110, + -28 + ], + [ + 39, + -31, + 85, + -109, + -118, + -43, + -22, + 67, + -8 + ] + ] + ], + [ + [ + [ + -64, + -109, + 79, + 2, + 116, + -44, + -71, + -59, + -24 + ], + [ + -92, + -95, + 75, + 49, + 0, + -5, + -1, + 22, + -55 + ], + [ + 71, + -126, + 70, + 75, + 4, + -53, + 97, + 81, + 110 + ], + [ + -124, + 33, + -127, + -119, + -113, + 70, + 58, + 100, + 34 + ], + [ + 14, + -82, + 51, + 105, + -37, + 50, + 0, + 5, + 76 + ] + ] + ] + ], + [ + [ + [ + [ + -54, + 96, + 124, + -99, + 2, + -124, + -42, + -33, + 41 + ], + [ + -28, + -36, + 69, + 66, + -126, + -42, + 67, + -102, + 9 + ], + [ + -3, + 50, + 45, + 2, + -23, + 74, + -31, + -17, + -21 + ], + [ + -40, + 33, + 34, + 102, + -15, + 66, + -51, + 118, + 105 + ], + [ + 23, + 57, + 20, + -78, + 112, + 61, + -21, + -64, + 43 + ] + ] + ], + [ + [ + [ + -18, + 84, + -73, + 5, + -99, + 54, + -26, + -79, + 14 + ], + [ + 18, + -51, + 112, + -109, + -43, + -65, + 108, + -66, + -72 + ], + [ + 23, + -62, + -56, + -66, + 8, + 63, + -8, + 99, + -60 + ], + [ + 88, + 61, + -110, + 42, + 126, + 46, + -62, + -18, + 94 + ], + [ + -47, + -7, + 23, + 83, + 117, + 52, + -17, + -23, + 42 + ] + ] + ] + ], + [ + [ + [ + [ + -110, + -15, + -37, + 110, + 90, + -61, + 39, + -11, + 84 + ], + [ + -2, + 36, + 58, + 82, + 56, + -53, + 61, + -47, + 59 + ], + [ + 115, + -8, + 100, + -89, + -20, + 94, + 58, + -45, + 0 + ], + [ + -100, + 80, + -96, + 16, + -2, + 30, + -19, + -107, + 41 + ], + [ + 101, + 28, + -117, + -101, + -58, + -53, + -97, + 101, + 60 + ] + ] + ], + [ + [ + [ + 68, + 118, + 94, + -85, + -123, + 58, + 105, + 51, + 92 + ], + [ + 27, + -13, + -95, + 44, + -54, + -59, + 96, + 40, + -15 + ], + [ + 76, + 59, + -5, + 122, + -121, + -2, + -22, + -97, + 57 + ], + [ + -103, + 52, + 65, + -4, + -66, + 124, + 52, + -99, + 60 + ], + [ + -88, + 31, + -62, + 34, + 77, + 72, + 67, + 53, + 69 + ] + ] + ] + ], + [ + [ + [ + [ + 102, + 97, + 69, + -15, + -53, + -47, + 28, + 25, + -19 + ], + [ + -24, + 57, + 6, + -124, + -93, + -44, + -27, + 59, + -8 + ], + [ + -19, + -106, + -113, + 126, + 92, + -119, + -12, + 107, + 54 + ], + [ + -108, + -19, + 91, + -52, + 12, + -46, + -78, + 92, + -69 + ], + [ + 21, + -38, + 28, + 75, + 13, + -91, + -55, + -66, + 48 + ] + ] + ], + [ + [ + [ + 49, + -92, + 29, + -10, + -21, + 91, + -113, + 57, + 14 + ], + [ + -62, + -70, + -87, + 28, + 39, + -58, + -31, + 122, + 52 + ], + [ + 23, + -98, + 18, + -28, + 86, + -79, + 126, + 112, + 71 + ], + [ + 0, + 24, + 103, + 93, + 79, + -82, + -24, + 67, + -97 + ], + [ + 46, + -37, + 16, + 107, + 93, + -34, + 53, + -126, + 55 + ] + ] + ] + ], + [ + [ + [ + [ + -93, + 104, + -52, + 51, + 42, + -63, + 86, + -81, + 102 + ], + [ + 3, + -9, + -68, + -126, + 51, + 59, + 87, + 118, + -54 + ], + [ + 17, + 105, + 17, + 63, + 54, + 124, + -41, + -78, + 106 + ], + [ + -10, + -79, + 35, + 90, + 67, + -42, + 105, + -118, + 100 + ], + [ + -82, + -68, + -48, + -20, + -116, + 55, + -95, + -95, + -127 + ] + ] + ], + [ + [ + [ + 117, + -116, + 63, + 34, + 84, + -13, + 104, + -8, + -83 + ], + [ + 102, + -20, + -127, + 38, + -46, + 82, + -89, + 60, + 84 + ], + [ + -97, + 21, + 37, + 108, + -53, + -4, + -24, + -33, + 126 + ], + [ + 39, + -88, + 93, + -102, + 96, + -24, + 45, + 93, + 95 + ], + [ + -87, + -25, + -108, + 36, + -21, + 127, + 33, + -16, + -89 + ] + ] + ] + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/type_conversion/rescale/rescale_1x7x2x1x5x9_i8_outu8_sc0_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_1x7x2x1x5x9_i8_outu8_sc0_dr0_pc1/test.json new file mode 100644 index 000000000..f28de9e07 --- /dev/null +++ b/operators/type_conversion/rescale/rescale_1x7x2x1x5x9_i8_outu8_sc0_dr0_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: -55, + output_zp: 205, + multiplier: [ + 27719, + 17124, + 31944, + 16912, + 28073, + 29235, + 24895, + 28531, + 20405 + ], + shift: [ + 15, + 15, + 20, + 15, + 17, + 16, + 15, + 19, + 27 + ], + scale32: false, + double_round: false, + 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: "UINT8" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] + } + ] +} |