From d065e338624da04730c490bbaae208d111176f22 Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Thu, 13 Oct 2022 13:54:25 +0100 Subject: Updating AVG_POOL2D tests for FP16 and accumulator types Signed-off-by: Jeremy Johnson Change-Id: Iea118912a210b35bffb135ce38c8a6d899aef1ed --- .../desc.json | 22 +++ .../input-0.json | 178 +++++++++++++++++++++ .../test.json | 72 +++++++++ 3 files changed, 272 insertions(+) create mode 100644 operators/tensor/avg_pool2d/avg_pool2d_ERRORIF_PoolingOutputShapeMismatch_1x3x5x9_i8_acci32_st11_kern22_pad0000/desc.json create mode 100644 operators/tensor/avg_pool2d/avg_pool2d_ERRORIF_PoolingOutputShapeMismatch_1x3x5x9_i8_acci32_st11_kern22_pad0000/input-0.json create mode 100644 operators/tensor/avg_pool2d/avg_pool2d_ERRORIF_PoolingOutputShapeMismatch_1x3x5x9_i8_acci32_st11_kern22_pad0000/test.json (limited to 'operators/tensor/avg_pool2d/avg_pool2d_ERRORIF_PoolingOutputShapeMismatch_1x3x5x9_i8_acci32_st11_kern22_pad0000') diff --git a/operators/tensor/avg_pool2d/avg_pool2d_ERRORIF_PoolingOutputShapeMismatch_1x3x5x9_i8_acci32_st11_kern22_pad0000/desc.json b/operators/tensor/avg_pool2d/avg_pool2d_ERRORIF_PoolingOutputShapeMismatch_1x3x5x9_i8_acci32_st11_kern22_pad0000/desc.json new file mode 100644 index 000000000..7780bdd73 --- /dev/null +++ b/operators/tensor/avg_pool2d/avg_pool2d_ERRORIF_PoolingOutputShapeMismatch_1x3x5x9_i8_acci32_st11_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": "Mismatch between output shape provided and expected output shape", + "profile": [ + "tosa-bi", + "tosa-mi" + ] +} \ No newline at end of file diff --git a/operators/tensor/avg_pool2d/avg_pool2d_ERRORIF_PoolingOutputShapeMismatch_1x3x5x9_i8_acci32_st11_kern22_pad0000/input-0.json b/operators/tensor/avg_pool2d/avg_pool2d_ERRORIF_PoolingOutputShapeMismatch_1x3x5x9_i8_acci32_st11_kern22_pad0000/input-0.json new file mode 100644 index 000000000..4328a1299 --- /dev/null +++ b/operators/tensor/avg_pool2d/avg_pool2d_ERRORIF_PoolingOutputShapeMismatch_1x3x5x9_i8_acci32_st11_kern22_pad0000/input-0.json @@ -0,0 +1,178 @@ +{ + "type": "int32", + "data": [ + [ + [ + [ + 116, + 119, + 30, + 126, + -65, + 5, + -109, + -105, + -95 + ], + [ + -94, + -23, + 56, + 124, + 123, + -83, + -17, + -18, + -103 + ], + [ + -118, + -38, + 91, + -30, + -30, + 127, + -32, + 47, + 123 + ], + [ + -98, + 2, + -42, + -98, + -116, + 37, + 39, + 15, + 44 + ], + [ + 56, + -114, + -120, + -43, + 17, + 103, + 122, + 83, + -54 + ] + ], + [ + [ + 18, + -99, + -4, + -103, + 126, + -13, + 56, + -102, + 115 + ], + [ + 6, + -110, + -34, + -74, + -111, + -121, + 54, + 94, + 40 + ], + [ + 49, + -119, + -83, + -120, + 121, + 60, + 116, + 103, + -71 + ], + [ + 2, + 37, + 61, + 43, + -12, + -127, + 112, + 48, + 86 + ], + [ + -72, + -101, + 102, + 78, + 86, + -16, + 103, + -71, + 65 + ] + ], + [ + [ + -2, + -86, + 55, + -36, + -88, + 53, + 69, + -46, + 119 + ], + [ + 53, + -123, + -42, + 121, + -83, + 116, + 4, + 44, + 47 + ], + [ + 2, + 4, + 17, + 36, + 60, + -16, + -17, + 71, + 65 + ], + [ + 38, + -10, + 19, + 18, + -17, + -83, + 9, + -15, + -115 + ], + [ + 116, + 42, + -99, + -76, + 18, + 92, + -4, + 79, + -96 + ] + ] + ] + ] +} \ No newline at end of file diff --git a/operators/tensor/avg_pool2d/avg_pool2d_ERRORIF_PoolingOutputShapeMismatch_1x3x5x9_i8_acci32_st11_kern22_pad0000/test.json b/operators/tensor/avg_pool2d/avg_pool2d_ERRORIF_PoolingOutputShapeMismatch_1x3x5x9_i8_acci32_st11_kern22_pad0000/test.json new file mode 100644 index 000000000..32ba4ce6b --- /dev/null +++ b/operators/tensor/avg_pool2d/avg_pool2d_ERRORIF_PoolingOutputShapeMismatch_1x3x5x9_i8_acci32_st11_kern22_pad0000/test.json @@ -0,0 +1,72 @@ +{ + version: { + _major: 0, + _minor: 41, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "AVG_POOL2D", + attribute_type: "PoolAttribute", + attribute: { + pad: [ + 0, + 0, + 0, + 0 + ], + kernel: [ + 2, + 2 + ], + stride: [ + 1, + 1 + ], + input_zp: 115, + output_zp: 33, + accum_dtype: "INT32" + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 3, + 5, + 9 + ], + type: "INT8" + }, + { + name: "result-0", + shape: [ + 1, + 2, + 7, + 9 + ], + type: "INT8" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} -- cgit v1.2.1