diff options
author | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-10-13 13:54:25 +0100 |
---|---|---|
committer | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-10-13 13:54:25 +0100 |
commit | d065e338624da04730c490bbaae208d111176f22 (patch) | |
tree | b9664c6e9d6080615bbde92f763b9bdbb3fe339e /operators/tensor/avg_pool2d/avg_pool2d_ERRORIF_WrongOutputType_1x13x13x6_i8_acci32_st11_kern22_pad0000 | |
parent | 4129b45c7464197b7a3415c6865282352a7fa40e (diff) | |
download | conformance_tests-d065e338624da04730c490bbaae208d111176f22.tar.gz |
Updating AVG_POOL2D tests for FP16 and accumulator types
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: Iea118912a210b35bffb135ce38c8a6d899aef1ed
Diffstat (limited to 'operators/tensor/avg_pool2d/avg_pool2d_ERRORIF_WrongOutputType_1x13x13x6_i8_acci32_st11_kern22_pad0000')
3 files changed, 1479 insertions, 0 deletions
diff --git a/operators/tensor/avg_pool2d/avg_pool2d_ERRORIF_WrongOutputType_1x13x13x6_i8_acci32_st11_kern22_pad0000/desc.json b/operators/tensor/avg_pool2d/avg_pool2d_ERRORIF_WrongOutputType_1x13x13x6_i8_acci32_st11_kern22_pad0000/desc.json new file mode 100644 index 000000000..199bfa93c --- /dev/null +++ b/operators/tensor/avg_pool2d/avg_pool2d_ERRORIF_WrongOutputType_1x13x13x6_i8_acci32_st11_kern22_pad0000/desc.json @@ -0,0 +1,22 @@ +{ + "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": 2, + "expected_failure": true, + "expected_failure_desc": "Output data type not supported for this configuration of operator", + "profile": [ + "tosa-bi", + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/tensor/avg_pool2d/avg_pool2d_ERRORIF_WrongOutputType_1x13x13x6_i8_acci32_st11_kern22_pad0000/input-0.json b/operators/tensor/avg_pool2d/avg_pool2d_ERRORIF_WrongOutputType_1x13x13x6_i8_acci32_st11_kern22_pad0000/input-0.json new file mode 100644 index 000000000..a8c88cfdf --- /dev/null +++ b/operators/tensor/avg_pool2d/avg_pool2d_ERRORIF_WrongOutputType_1x13x13x6_i8_acci32_st11_kern22_pad0000/input-0.json @@ -0,0 +1,1385 @@ +{ + "type": "int32", + "data": [ + [ + [ + [ + 77, + -20, + 114, + -33, + 44, + -120 + ], + [ + 50, + -83, + -67, + 79, + -76, + -5 + ], + [ + 107, + 116, + -15, + -107, + -55, + 29 + ], + [ + -42, + 56, + 126, + 31, + 31, + 7 + ], + [ + -81, + 20, + 110, + 48, + 64, + 92 + ], + [ + -29, + -42, + 120, + -11, + 59, + 34 + ], + [ + -97, + -48, + -45, + -83, + 71, + 119 + ], + [ + 119, + -79, + -13, + -69, + -112, + 30 + ], + [ + 92, + -109, + 36, + -120, + 87, + -112 + ], + [ + -17, + -97, + -23, + -19, + 10, + 84 + ], + [ + 127, + -41, + 108, + -19, + -98, + 25 + ], + [ + 57, + -51, + 22, + -18, + -91, + -30 + ], + [ + -19, + -41, + 106, + -29, + 32, + -126 + ] + ], + [ + [ + -48, + 98, + 100, + 122, + -114, + 92 + ], + [ + -60, + -127, + -105, + 64, + 23, + 18 + ], + [ + 97, + -104, + -107, + 110, + 27, + 70 + ], + [ + 6, + -91, + 5, + 118, + -98, + -96 + ], + [ + -40, + -12, + 32, + -88, + 111, + -90 + ], + [ + -77, + 119, + -32, + 18, + -17, + -62 + ], + [ + 1, + 70, + -126, + 96, + -81, + 106 + ], + [ + 118, + 110, + 38, + 103, + 92, + 35 + ], + [ + 100, + -41, + 85, + 108, + 34, + -97 + ], + [ + -74, + -85, + 8, + -17, + 83, + -56 + ], + [ + -86, + 29, + -93, + 103, + -108, + -3 + ], + [ + 114, + 13, + 78, + -20, + 65, + 53 + ], + [ + 3, + -103, + 120, + -116, + -37, + 36 + ] + ], + [ + [ + 68, + 8, + -26, + -24, + 121, + -43 + ], + [ + 90, + -115, + 40, + 46, + 44, + -21 + ], + [ + 48, + -15, + 23, + 100, + 44, + 60 + ], + [ + 120, + -72, + 22, + 40, + 49, + -95 + ], + [ + 66, + -79, + -24, + 54, + -61, + -96 + ], + [ + 44, + -57, + 83, + 101, + -39, + 61 + ], + [ + -71, + 109, + -66, + 97, + 73, + -48 + ], + [ + 83, + 33, + 43, + -32, + -69, + 50 + ], + [ + -115, + -39, + -92, + -128, + -127, + -104 + ], + [ + 112, + 69, + 125, + -107, + 127, + 25 + ], + [ + 75, + 91, + -61, + 61, + 37, + -23 + ], + [ + -3, + -75, + -81, + 108, + 59, + 16 + ], + [ + 49, + -25, + -65, + 113, + 125, + -73 + ] + ], + [ + [ + 77, + -15, + 53, + -101, + -6, + -97 + ], + [ + 80, + -26, + -61, + 51, + 116, + -42 + ], + [ + 55, + 48, + -3, + 78, + -96, + 96 + ], + [ + -25, + -117, + 125, + 70, + 80, + -91 + ], + [ + 64, + 50, + 103, + -33, + 109, + 53 + ], + [ + -64, + -74, + 103, + 37, + -98, + -96 + ], + [ + 83, + -85, + -72, + 29, + 93, + -42 + ], + [ + 42, + 52, + 25, + 47, + -70, + 31 + ], + [ + -128, + 59, + 74, + 75, + -121, + 105 + ], + [ + -17, + -108, + 8, + 18, + -26, + 63 + ], + [ + 11, + -73, + 30, + -61, + -98, + -60 + ], + [ + 103, + 18, + -47, + -35, + 92, + 42 + ], + [ + 70, + 28, + 126, + 40, + -26, + -64 + ] + ], + [ + [ + -117, + 68, + 110, + 41, + -4, + -95 + ], + [ + 36, + -77, + 31, + -51, + 93, + 111 + ], + [ + -69, + -45, + 108, + -123, + 4, + -92 + ], + [ + -18, + -120, + -93, + -25, + -113, + 76 + ], + [ + 19, + -13, + -8, + 86, + 88, + -116 + ], + [ + 47, + -8, + 72, + 73, + 53, + 44 + ], + [ + -74, + 90, + 51, + -58, + -69, + 0 + ], + [ + -41, + 45, + -24, + -85, + -27, + 80 + ], + [ + 84, + -49, + 75, + -105, + 123, + 68 + ], + [ + -118, + 52, + -2, + 98, + -67, + 100 + ], + [ + 94, + -57, + -18, + 36, + -67, + 127 + ], + [ + -80, + -66, + 0, + -7, + -116, + 105 + ], + [ + -67, + -102, + 4, + 109, + -128, + -4 + ] + ], + [ + [ + 105, + 100, + -85, + 31, + 86, + 43 + ], + [ + 40, + 69, + -12, + -111, + 35, + 32 + ], + [ + 89, + 108, + -42, + 116, + -126, + 119 + ], + [ + -93, + 37, + 46, + 34, + 125, + 13 + ], + [ + -95, + 27, + -54, + 28, + -31, + -118 + ], + [ + 35, + -106, + -45, + 30, + 97, + -48 + ], + [ + -52, + -51, + 19, + -79, + 6, + 77 + ], + [ + -108, + 118, + 8, + 32, + 30, + 114 + ], + [ + 42, + 98, + -55, + -73, + 36, + -89 + ], + [ + -100, + -74, + -59, + -104, + 58, + 21 + ], + [ + -77, + -56, + 110, + 105, + -97, + 29 + ], + [ + -46, + -36, + 25, + 124, + 21, + 116 + ], + [ + 82, + 71, + 74, + 74, + -63, + 122 + ] + ], + [ + [ + 107, + 25, + 54, + 97, + -89, + -112 + ], + [ + 126, + 13, + 56, + 0, + 4, + -119 + ], + [ + -54, + -106, + -18, + -123, + 77, + -53 + ], + [ + 61, + -115, + -120, + -20, + 73, + 80 + ], + [ + 11, + 29, + 48, + 44, + 61, + -120 + ], + [ + -19, + 86, + -16, + -91, + 42, + -51 + ], + [ + 2, + 4, + 50, + 110, + 49, + 127 + ], + [ + -124, + 72, + -22, + 58, + -107, + 7 + ], + [ + -121, + 42, + -73, + -92, + -108, + -60 + ], + [ + 117, + 124, + -108, + 122, + 22, + -46 + ], + [ + 113, + -67, + -82, + -70, + -91, + -4 + ], + [ + -93, + -71, + -33, + 38, + 91, + -109 + ], + [ + 33, + -102, + 125, + -58, + 91, + 71 + ] + ], + [ + [ + -45, + -46, + -47, + -8, + -15, + 40 + ], + [ + -10, + 73, + -9, + -50, + -45, + 59 + ], + [ + -93, + -55, + -49, + 36, + -95, + -13 + ], + [ + 44, + 109, + -16, + 123, + 27, + 70 + ], + [ + -66, + 106, + -62, + -94, + -108, + 39 + ], + [ + 32, + -78, + 96, + -58, + 28, + 5 + ], + [ + 23, + 61, + 109, + 56, + 104, + 94 + ], + [ + -37, + 15, + -78, + 109, + 119, + 99 + ], + [ + 62, + 89, + 75, + -70, + -61, + 8 + ], + [ + -21, + 60, + 60, + 121, + 73, + -126 + ], + [ + -41, + -45, + 34, + -41, + 122, + -55 + ], + [ + -16, + 81, + -35, + -117, + -43, + -36 + ], + [ + 28, + 54, + 12, + -24, + 0, + -92 + ] + ], + [ + [ + -82, + 28, + 93, + 5, + -113, + 123 + ], + [ + -46, + 63, + 101, + 124, + -99, + -81 + ], + [ + 37, + 66, + 85, + 13, + -88, + 54 + ], + [ + 43, + -9, + 35, + -74, + 79, + -117 + ], + [ + 86, + 86, + 47, + 80, + 105, + -87 + ], + [ + 11, + 37, + 113, + 60, + 24, + 14 + ], + [ + -92, + -47, + -18, + 97, + 92, + 36 + ], + [ + -101, + 56, + -11, + 38, + -18, + 56 + ], + [ + -73, + -91, + -72, + 108, + -109, + -55 + ], + [ + -41, + 86, + -37, + 100, + 124, + 38 + ], + [ + -41, + 25, + 43, + -101, + 85, + -17 + ], + [ + 88, + 28, + 92, + -108, + -118, + -100 + ], + [ + 95, + 126, + 127, + -43, + -61, + -39 + ] + ], + [ + [ + 81, + -64, + 12, + 37, + -36, + -7 + ], + [ + 42, + 74, + -80, + 3, + -89, + -125 + ], + [ + 37, + -5, + -62, + -114, + 114, + 83 + ], + [ + 111, + -99, + -125, + -73, + -103, + -11 + ], + [ + 37, + -79, + -27, + 10, + -47, + -11 + ], + [ + 23, + 115, + -49, + -106, + 94, + 19 + ], + [ + -8, + 56, + 123, + -96, + 92, + 34 + ], + [ + 21, + 93, + -51, + 73, + 18, + 111 + ], + [ + -9, + 56, + -1, + -28, + -32, + 107 + ], + [ + 86, + -71, + 93, + 21, + -102, + 68 + ], + [ + -87, + 95, + -12, + 106, + -5, + -107 + ], + [ + 68, + 57, + -51, + -76, + 93, + 71 + ], + [ + -52, + 51, + -67, + -82, + 41, + 85 + ] + ], + [ + [ + 107, + -10, + -92, + 11, + 46, + 120 + ], + [ + -100, + 40, + 3, + 22, + -105, + -124 + ], + [ + 27, + -78, + 29, + -122, + 77, + -43 + ], + [ + -13, + -40, + -21, + 7, + 37, + 48 + ], + [ + 125, + -83, + 95, + 26, + -49, + 106 + ], + [ + 52, + -81, + -84, + 40, + 58, + -117 + ], + [ + 32, + 7, + 120, + 61, + 104, + -120 + ], + [ + 67, + -43, + 13, + 96, + 94, + -71 + ], + [ + -67, + 57, + 96, + 28, + -115, + -87 + ], + [ + 63, + 61, + 101, + 8, + -19, + -100 + ], + [ + 72, + 115, + -117, + -3, + -38, + 62 + ], + [ + 67, + -73, + 115, + -93, + 71, + 61 + ], + [ + -87, + 44, + -59, + -58, + -106, + 63 + ] + ], + [ + [ + 78, + 1, + 70, + -39, + 16, + 73 + ], + [ + -18, + 29, + -91, + 1, + 89, + 69 + ], + [ + -52, + 11, + 30, + 112, + 84, + 81 + ], + [ + 64, + -37, + -32, + -9, + -19, + 117 + ], + [ + 96, + 101, + 27, + -80, + -92, + -58 + ], + [ + 38, + -35, + 39, + 97, + -43, + 109 + ], + [ + 3, + 77, + -113, + -58, + 110, + 99 + ], + [ + 18, + -120, + -113, + -20, + 101, + -32 + ], + [ + 98, + 9, + -94, + 15, + -35, + -71 + ], + [ + 44, + -76, + 103, + 77, + 72, + -109 + ], + [ + 117, + -2, + 59, + -79, + 68, + -47 + ], + [ + 53, + -58, + 110, + 53, + -13, + -12 + ], + [ + -128, + -52, + 74, + 84, + 127, + -107 + ] + ], + [ + [ + -64, + 68, + -36, + -65, + -56, + 107 + ], + [ + 91, + -127, + 87, + 14, + 88, + 31 + ], + [ + 48, + 19, + 60, + 80, + 2, + -100 + ], + [ + -105, + -22, + -7, + 93, + -120, + 99 + ], + [ + -114, + -1, + -20, + 14, + -118, + 67 + ], + [ + -94, + 71, + 17, + 99, + 122, + 88 + ], + [ + -13, + -22, + 41, + 38, + 74, + -5 + ], + [ + -10, + -98, + -85, + 82, + 125, + 26 + ], + [ + -40, + -114, + -117, + 45, + 36, + -56 + ], + [ + -80, + -111, + 46, + 27, + -43, + 59 + ], + [ + 88, + 4, + -61, + -127, + 75, + 19 + ], + [ + -40, + -127, + 80, + 109, + -5, + -60 + ], + [ + 30, + 94, + 22, + -125, + -79, + -104 + ] + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/tensor/avg_pool2d/avg_pool2d_ERRORIF_WrongOutputType_1x13x13x6_i8_acci32_st11_kern22_pad0000/test.json b/operators/tensor/avg_pool2d/avg_pool2d_ERRORIF_WrongOutputType_1x13x13x6_i8_acci32_st11_kern22_pad0000/test.json new file mode 100644 index 000000000..4a107c547 --- /dev/null +++ b/operators/tensor/avg_pool2d/avg_pool2d_ERRORIF_WrongOutputType_1x13x13x6_i8_acci32_st11_kern22_pad0000/test.json @@ -0,0 +1,72 @@ +{ + version: { + _major: 0, + _minor: 41, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "AVG_POOL2D", + attribute_type: "PoolAttribute", + attribute: { + pad: [ + 0, + 0, + 0, + 0 + ], + kernel: [ + 2, + 2 + ], + stride: [ + 1, + 1 + ], + input_zp: -72, + output_zp: 124, + accum_dtype: "INT32" + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 13, + 13, + 6 + ], + type: "INT8" + }, + { + name: "result-0", + shape: [ + 1, + 12, + 12, + 6 + ], + type: "INT48" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} |