diff options
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" + ] + } + ] +} |