diff options
author | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-10-13 13:58:06 +0100 |
---|---|---|
committer | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-10-13 13:58:06 +0100 |
commit | 1d38be721ba973a64bf4ea54d1d4c17c6038625e (patch) | |
tree | 6d7bfd6bf81f172f57108538bdb264ef52a610d0 /operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_WrongOutputType_1x4x2x9_i16xi8_acci48_st11_pad0000_dilat11 | |
parent | e680768ca1042791012ba3ab312f747790f5d93e (diff) | |
download | conformance_tests-1d38be721ba973a64bf4ea54d1d4c17c6038625e.tar.gz |
Updating DEPTHWISE_CONV2D_1X1 tests for FP16 and accumulator types
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: I26e9584a440eafcfb300c11f2cb69081aa33b9bb
Diffstat (limited to 'operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_WrongOutputType_1x4x2x9_i16xi8_acci48_st11_pad0000_dilat11')
3 files changed, 429 insertions, 0 deletions
diff --git a/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_WrongOutputType_1x4x2x9_i16xi8_acci48_st11_pad0000_dilat11/desc.json b/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_WrongOutputType_1x4x2x9_i16xi8_acci48_st11_pad0000_dilat11/desc.json new file mode 100644 index 000000000..199bfa93c --- /dev/null +++ b/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_WrongOutputType_1x4x2x9_i16xi8_acci48_st11_pad0000_dilat11/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": "Output data type not supported for this configuration of operator", + "profile": [ + "tosa-bi", + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_WrongOutputType_1x4x2x9_i16xi8_acci48_st11_pad0000_dilat11/input-0.json b/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_WrongOutputType_1x4x2x9_i16xi8_acci48_st11_pad0000_dilat11/input-0.json new file mode 100644 index 000000000..59cc071d0 --- /dev/null +++ b/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_WrongOutputType_1x4x2x9_i16xi8_acci48_st11_pad0000_dilat11/input-0.json @@ -0,0 +1,103 @@ +{ + "type": "int32", + "data": [ + [ + [ + [ + -17124, + -9392, + -28442, + -3320, + -15690, + -25331, + 3926, + 4426, + -27136 + ], + [ + -20610, + -27355, + 11730, + -10615, + -28104, + -20216, + 31188, + -16007, + 12093 + ] + ], + [ + [ + -2069, + -20859, + -12624, + -31845, + 16186, + -10849, + -50, + -22754, + 21247 + ], + [ + -18455, + 4343, + 24428, + 13972, + 6763, + 25430, + -21204, + 30379, + 3713 + ] + ], + [ + [ + -5908, + -16006, + 16051, + 31208, + 12459, + -30622, + -2026, + 15225, + -6722 + ], + [ + 17891, + 13584, + -28367, + 3798, + -21505, + -884, + -7583, + 20112, + 24127 + ] + ], + [ + [ + -2526, + 2424, + 8263, + 10178, + 8871, + 18547, + 31586, + 21503, + -23940 + ], + [ + -1555, + -2537, + 576, + 1865, + 14287, + -5177, + -15510, + -2780, + 23231 + ] + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_WrongOutputType_1x4x2x9_i16xi8_acci48_st11_pad0000_dilat11/test.json b/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_WrongOutputType_1x4x2x9_i16xi8_acci48_st11_pad0000_dilat11/test.json new file mode 100644 index 000000000..b3863a845 --- /dev/null +++ b/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_WrongOutputType_1x4x2x9_i16xi8_acci48_st11_pad0000_dilat11/test.json @@ -0,0 +1,304 @@ +{ + version: { + _major: 0, + _minor: 41, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "CONST", + attribute_type: "NONE", + inputs: [ + + ], + outputs: [ + "const-1" + ] + }, + { + op: "CONST", + attribute_type: "NONE", + inputs: [ + + ], + outputs: [ + "const-2" + ] + }, + { + op: "DEPTHWISE_CONV2D", + attribute_type: "ConvAttribute", + attribute: { + pad: [ + 0, + 0, + 0, + 0 + ], + stride: [ + 1, + 1 + ], + dilation: [ + 1, + 1 + ], + input_zp: 0, + weight_zp: 51, + accum_dtype: "INT48" + }, + inputs: [ + "input-0", + "const-1", + "const-2" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 4, + 2, + 9 + ], + type: "INT16" + }, + { + name: "const-1", + shape: [ + 1, + 1, + 9, + 3 + ], + type: "INT8", + data: [ + 207, + 133, + 121, + 178, + 26, + 76, + 198, + 215, + 199, + 166, + 167, + 175, + 245, + 7, + 132, + 88, + 45, + 146, + 87, + 135, + 15, + 247, + 0, + 116, + 109, + 199, + 20 + ] + }, + { + name: "const-2", + shape: [ + 27 + ], + type: "INT48", + data: [ + 150, + 186, + 214, + 18, + 63, + 99, + 80, + 111, + 85, + 138, + 123, + 200, + 186, + 130, + 34, + 130, + 35, + 81, + 198, + 237, + 225, + 255, + 148, + 47, + 222, + 180, + 197, + 202, + 6, + 3, + 209, + 81, + 123, + 59, + 68, + 236, + 105, + 127, + 226, + 201, + 196, + 80, + 43, + 142, + 242, + 64, + 7, + 75, + 1, + 7, + 104, + 148, + 198, + 65, + 207, + 129, + 183, + 179, + 141, + 127, + 194, + 120, + 234, + 202, + 127, + 250, + 162, + 32, + 24, + 129, + 146, + 78, + 151, + 179, + 219, + 97, + 203, + 92, + 190, + 23, + 55, + 150, + 43, + 182, + 129, + 224, + 200, + 221, + 196, + 138, + 25, + 130, + 94, + 151, + 157, + 231, + 126, + 240, + 104, + 24, + 83, + 91, + 143, + 229, + 49, + 172, + 2, + 202, + 102, + 150, + 142, + 221, + 51, + 51, + 172, + 247, + 80, + 145, + 225, + 129, + 30, + 250, + 214, + 41, + 249, + 218, + 214, + 32, + 138, + 128, + 146, + 29, + 19, + 200, + 103, + 196, + 55, + 161, + 112, + 10, + 213, + 7, + 136, + 101, + 7, + 239, + 68, + 146, + 1, + 168, + 112, + 231, + 209, + 58, + 232, + 104, + 87, + 255, + 43, + 74, + 101, + 183 + ] + }, + { + name: "result-0", + shape: [ + 1, + 4, + 2, + 27 + ], + type: "FP16" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} |