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_StrideSmallerOne_1x1x5x13_i16_st-2-2_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_StrideSmallerOne_1x1x5x13_i16_st-2-2_kern22_pad0000')
3 files changed, 178 insertions, 0 deletions
diff --git a/operators/tensor/max_pool2d/max_pool2d_ERRORIF_StrideSmallerOne_1x1x5x13_i16_st-2-2_kern22_pad0000/desc.json b/operators/tensor/max_pool2d/max_pool2d_ERRORIF_StrideSmallerOne_1x1x5x13_i16_st-2-2_kern22_pad0000/desc.json new file mode 100644 index 000000000..a2f5e4ee2 --- /dev/null +++ b/operators/tensor/max_pool2d/max_pool2d_ERRORIF_StrideSmallerOne_1x1x5x13_i16_st-2-2_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": "At least one stride dimension is smaller than zero", + "profile": [ + "tosa-bi", + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/tensor/max_pool2d/max_pool2d_ERRORIF_StrideSmallerOne_1x1x5x13_i16_st-2-2_kern22_pad0000/input-0.json b/operators/tensor/max_pool2d/max_pool2d_ERRORIF_StrideSmallerOne_1x1x5x13_i16_st-2-2_kern22_pad0000/input-0.json new file mode 100644 index 000000000..95711b354 --- /dev/null +++ b/operators/tensor/max_pool2d/max_pool2d_ERRORIF_StrideSmallerOne_1x1x5x13_i16_st-2-2_kern22_pad0000/input-0.json @@ -0,0 +1,84 @@ +{ + "type": "int32", + "data": [ + [ + [ + [ + -4142, + -20549, + -22851, + -18398, + -19641, + -11587, + -18722, + 5968, + -23045, + 7982, + -10873, + 12239, + 846 + ], + [ + 26554, + -3941, + -13433, + 5840, + 10404, + -3982, + 3913, + -1910, + -12725, + -12219, + 26700, + 11490, + -26511 + ], + [ + 30282, + 13893, + -29481, + 14933, + 5873, + 27218, + -697, + 1217, + -12144, + -11691, + 7728, + 21478, + 25602 + ], + [ + 17747, + 7193, + 20, + -10512, + 17554, + -11919, + -15213, + 24108, + 5865, + -9554, + 23932, + 30322, + -11929 + ], + [ + 1403, + -1079, + 13215, + 29559, + 3180, + 19543, + 6265, + 25364, + -6253, + -7521, + -5085, + 32538, + 7303 + ] + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/tensor/max_pool2d/max_pool2d_ERRORIF_StrideSmallerOne_1x1x5x13_i16_st-2-2_kern22_pad0000/test.json b/operators/tensor/max_pool2d/max_pool2d_ERRORIF_StrideSmallerOne_1x1x5x13_i16_st-2-2_kern22_pad0000/test.json new file mode 100644 index 000000000..4c32052b7 --- /dev/null +++ b/operators/tensor/max_pool2d/max_pool2d_ERRORIF_StrideSmallerOne_1x1x5x13_i16_st-2-2_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, + 1, + 5, + 13 + ], + type: "INT16" + }, + { + name: "result-0", + shape: [ + 1, + 1, + 1, + 13 + ], + type: "INT16" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} |