diff options
author | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-06-17 13:08:19 +0100 |
---|---|---|
committer | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-06-17 13:08:19 +0100 |
commit | 3b64b6cfba69e4a225b5a41737169cacda21d97c (patch) | |
tree | c60aafb60c458212bab449884d9417ee2f404189 /operators/tensor/max_pool2d/max_pool2d_ERRORIF_StrideSmallerOne_1x1x18x32_i8_st-2-2_kern22_pad0000 | |
parent | a6ad082a2d12d08b49e0dff675843cba6df7742c (diff) | |
download | conformance_tests-3b64b6cfba69e4a225b5a41737169cacda21d97c.tar.gz |
Updating MAX_POOL2D tests for v0.30.0 release
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: Ifb2533def9736a4b6c634e8d2f8d2b4f5df026ec
Diffstat (limited to 'operators/tensor/max_pool2d/max_pool2d_ERRORIF_StrideSmallerOne_1x1x18x32_i8_st-2-2_kern22_pad0000')
3 files changed, 710 insertions, 0 deletions
diff --git a/operators/tensor/max_pool2d/max_pool2d_ERRORIF_StrideSmallerOne_1x1x18x32_i8_st-2-2_kern22_pad0000/desc.json b/operators/tensor/max_pool2d/max_pool2d_ERRORIF_StrideSmallerOne_1x1x18x32_i8_st-2-2_kern22_pad0000/desc.json new file mode 100644 index 000000000..f25ffb83f --- /dev/null +++ b/operators/tensor/max_pool2d/max_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/max_pool2d/max_pool2d_ERRORIF_StrideSmallerOne_1x1x18x32_i8_st-2-2_kern22_pad0000/input-0.json b/operators/tensor/max_pool2d/max_pool2d_ERRORIF_StrideSmallerOne_1x1x18x32_i8_st-2-2_kern22_pad0000/input-0.json new file mode 100644 index 000000000..9e9620eda --- /dev/null +++ b/operators/tensor/max_pool2d/max_pool2d_ERRORIF_StrideSmallerOne_1x1x18x32_i8_st-2-2_kern22_pad0000/input-0.json @@ -0,0 +1,621 @@ +{ + "type": "int32", + "data": [ + [ + [ + [ + 33, + -18, + -104, + -26, + 24, + 70, + 78, + 74, + -59, + -123, + -77, + -98, + 44, + -59, + -84, + 10, + -4, + 52, + 108, + -107, + -113, + 81, + 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 + ] + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/tensor/max_pool2d/max_pool2d_ERRORIF_StrideSmallerOne_1x1x18x32_i8_st-2-2_kern22_pad0000/test.json b/operators/tensor/max_pool2d/max_pool2d_ERRORIF_StrideSmallerOne_1x1x18x32_i8_st-2-2_kern22_pad0000/test.json new file mode 100644 index 000000000..c65933132 --- /dev/null +++ b/operators/tensor/max_pool2d/max_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: "MAX_POOL2D", + attribute_type: "PoolAttribute", + attribute: { + pad: [ + 0, + 0, + 0, + 0 + ], + kernel: [ + 2, + 2 + ], + stride: [ + -2, + -2 + ], + input_zp: 0, + output_zp: 0 + }, + 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" + ] + } + ] +} |