diff options
author | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-06-17 13:07:15 +0100 |
---|---|---|
committer | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-06-17 13:07:15 +0100 |
commit | 961c80bbeee3f14c3db8dbe83d8682a353803216 (patch) | |
tree | 9131584058e99acc18ea54c7b2153bd3c1900b45 /operators/tensor/avg_pool2d/avg_pool2d_ERRORIF_StrideSmallerOne_1x1x18x32_i8_st-2-2_kern22_pad0000 | |
parent | f26e48db4337bfbaf567ac21c72ff2d58d870040 (diff) | |
download | conformance_tests-961c80bbeee3f14c3db8dbe83d8682a353803216.tar.gz |
Updating AVG_POOL2D tests for v0.30.0 release
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: I436836b7dab0b09406407b61c2cbed82bbfb6357
Diffstat (limited to 'operators/tensor/avg_pool2d/avg_pool2d_ERRORIF_StrideSmallerOne_1x1x18x32_i8_st-2-2_kern22_pad0000')
3 files changed, 710 insertions, 0 deletions
diff --git a/operators/tensor/avg_pool2d/avg_pool2d_ERRORIF_StrideSmallerOne_1x1x18x32_i8_st-2-2_kern22_pad0000/desc.json b/operators/tensor/avg_pool2d/avg_pool2d_ERRORIF_StrideSmallerOne_1x1x18x32_i8_st-2-2_kern22_pad0000/desc.json new file mode 100644 index 000000000..f25ffb83f --- /dev/null +++ b/operators/tensor/avg_pool2d/avg_pool2d_ERRORIF_StrideSmallerOne_1x1x18x32_i8_st-2-2_kern22_pad0000/desc.json @@ -0,0 +1,18 @@ +{ + "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": "At least one stride dimension is smaller than zero" +}
\ No newline at end of file diff --git a/operators/tensor/avg_pool2d/avg_pool2d_ERRORIF_StrideSmallerOne_1x1x18x32_i8_st-2-2_kern22_pad0000/input-0.json b/operators/tensor/avg_pool2d/avg_pool2d_ERRORIF_StrideSmallerOne_1x1x18x32_i8_st-2-2_kern22_pad0000/input-0.json new file mode 100644 index 000000000..468af0c38 --- /dev/null +++ b/operators/tensor/avg_pool2d/avg_pool2d_ERRORIF_StrideSmallerOne_1x1x18x32_i8_st-2-2_kern22_pad0000/input-0.json @@ -0,0 +1,621 @@ +{ + "type": "int32", + "data": [ + [ + [ + [ + 104, + -43, + -80, + -52, + -5, + -125, + -95, + -120, + 53, + -15, + 127, + -15, + -51, + -50, + 108, + -80, + 58, + 97, + 119, + -107, + 43, + 79, + 46, + 87, + 113, + 97, + 58, + -79, + 88, + 47, + -56, + 37 + ], + [ + -85, + 85, + 35, + 36, + -64, + -90, + -18, + -39, + 91, + 124, + 33, + 76, + 113, + 60, + -38, + -69, + -57, + -48, + -74, + 44, + 121, + -62, + -19, + 113, + 107, + -122, + -40, + -39, + -55, + 113, + 69, + -112 + ], + [ + 30, + 19, + 6, + 56, + -16, + 54, + -9, + 113, + 85, + -115, + -89, + -26, + -115, + -111, + -127, + 102, + -2, + 72, + 81, + -86, + 43, + 30, + 125, + 95, + 28, + 45, + 2, + 21, + 20, + 98, + 97, + -72 + ], + [ + -125, + -62, + -9, + -72, + -23, + -17, + 116, + -16, + -81, + -24, + -122, + -121, + 33, + -64, + 32, + -119, + -47, + 18, + 10, + 23, + 24, + -46, + -38, + -24, + -21, + 73, + -92, + 15, + 69, + -41, + -29, + 45 + ], + [ + 37, + 13, + -19, + -117, + -87, + -4, + 51, + -77, + -22, + -65, + -81, + 102, + 110, + 124, + 100, + -25, + 58, + -56, + 19, + -64, + 32, + -20, + -36, + -106, + -61, + -16, + 23, + 85, + 61, + 11, + -2, + -9 + ], + [ + 101, + 86, + -29, + 16, + -32, + 17, + -20, + 89, + 52, + -84, + -121, + 117, + -38, + -90, + 62, + -7, + 14, + 34, + -49, + 17, + 40, + 29, + 102, + -28, + 1, + 64, + 61, + 127, + -78, + 107, + -7, + -73 + ], + [ + -54, + -38, + 126, + -100, + -73, + 54, + 114, + -108, + -24, + -24, + -1, + 67, + 6, + -93, + -67, + 61, + -67, + -1, + -32, + -16, + 62, + -66, + 51, + 67, + 127, + -13, + -106, + 42, + 66, + -120, + -79, + -41 + ], + [ + 2, + 3, + -78, + -77, + 111, + 56, + 1, + -44, + -8, + 119, + -50, + -44, + -14, + -80, + -100, + 100, + 47, + -42, + 18, + -2, + -103, + 65, + -102, + 17, + -54, + -17, + -7, + -17, + -71, + -107, + -95, + 58 + ], + [ + -104, + 1, + -50, + 50, + 33, + -81, + 45, + 40, + -56, + 87, + -16, + -120, + 32, + -13, + -36, + -13, + 122, + -29, + 49, + 89, + 20, + 99, + -1, + -71, + -3, + -97, + -54, + -76, + -109, + -89, + 86, + 91 + ], + [ + 103, + -122, + 121, + -41, + -25, + -82, + 114, + 127, + 51, + -109, + -20, + -57, + 107, + 38, + 119, + 85, + 8, + -56, + 71, + 50, + 70, + 110, + 27, + 42, + -20, + -3, + -94, + -79, + 127, + -83, + -110, + 76 + ], + [ + -94, + -10, + -33, + -22, + -26, + -119, + -60, + 36, + -109, + -61, + 102, + 39, + 3, + 11, + 120, + -116, + 96, + -6, + -2, + -70, + -29, + 10, + -63, + -39, + 126, + 80, + 26, + -54, + 87, + 91, + 124, + 43 + ], + [ + -71, + -32, + 108, + -102, + 75, + 0, + -12, + -87, + 114, + -75, + 23, + 12, + -28, + -91, + -88, + 35, + 58, + -66, + 70, + 47, + -76, + -30, + -33, + 13, + -114, + 115, + 14, + 47, + 25, + -26, + 89, + -46 + ], + [ + -122, + 15, + -98, + 82, + -120, + -75, + 113, + -61, + 3, + 95, + -66, + -52, + -124, + 77, + -104, + 122, + 56, + -48, + -6, + 4, + 60, + -34, + -61, + -95, + -16, + -5, + 31, + 85, + -74, + -71, + -55, + -87 + ], + [ + -92, + 76, + 54, + 84, + 21, + 81, + -15, + 97, + 17, + -120, + -85, + 4, + 80, + -91, + 65, + 99, + -82, + 13, + 98, + -49, + -28, + -13, + -10, + -43, + 8, + -59, + 74, + 46, + -87, + 89, + -61, + 7 + ], + [ + 111, + 46, + 112, + 26, + 79, + -10, + -85, + -83, + 24, + -92, + -14, + -10, + -108, + 88, + -109, + -48, + 91, + -119, + -105, + 88, + -59, + 105, + -90, + -87, + 19, + 116, + 66, + 28, + -61, + -111, + 72, + -98 + ], + [ + -84, + -16, + -37, + 93, + -66, + 38, + -12, + -67, + 123, + 75, + 60, + -11, + -76, + 37, + 119, + -60, + 46, + 91, + -12, + -108, + 106, + -101, + 67, + -6, + 58, + 52, + -77, + -104, + -96, + -77, + 93, + -106 + ], + [ + 46, + -30, + 81, + 25, + 68, + 83, + 103, + 77, + -32, + 107, + -39, + 21, + -68, + 79, + -102, + 118, + -5, + 89, + -1, + -93, + -99, + 98, + 26, + -92, + -35, + 18, + -12, + -110, + 2, + -84, + -49, + 42 + ], + [ + 47, + -108, + 2, + -63, + -15, + 78, + -24, + 22, + -122, + -2, + 69, + 38, + 119, + 72, + -95, + -113, + -54, + 80, + 88, + 57, + 53, + 43, + -49, + 46, + 38, + -107, + 106, + 65, + -72, + -55, + 45, + -66 + ] + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/tensor/avg_pool2d/avg_pool2d_ERRORIF_StrideSmallerOne_1x1x18x32_i8_st-2-2_kern22_pad0000/test.json b/operators/tensor/avg_pool2d/avg_pool2d_ERRORIF_StrideSmallerOne_1x1x18x32_i8_st-2-2_kern22_pad0000/test.json new file mode 100644 index 000000000..7a1c3d150 --- /dev/null +++ b/operators/tensor/avg_pool2d/avg_pool2d_ERRORIF_StrideSmallerOne_1x1x18x32_i8_st-2-2_kern22_pad0000/test.json @@ -0,0 +1,71 @@ +{ + version: { + _major: 0, + _minor: 30, + _patch: 0, + _draft: false + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "AVG_POOL2D", + attribute_type: "PoolAttribute", + attribute: { + pad: [ + 0, + 0, + 0, + 0 + ], + kernel: [ + 2, + 2 + ], + stride: [ + -2, + -2 + ], + input_zp: -34, + output_zp: 81 + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 1, + 18, + 32 + ], + type: "INT8" + }, + { + name: "result-0", + shape: [ + 1, + 1, + 1, + 32 + ], + type: "INT8" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} |