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