diff options
author | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-10-13 13:54:26 +0100 |
---|---|---|
committer | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-10-13 13:54:26 +0100 |
commit | ab4bb694c6df1a837be89d0271fb21377a086658 (patch) | |
tree | 3072e003a6982722bc90e16fbd3b4e1faf2cf3e9 /operators/tensor/conv2d_1x1/conv2d_1x1_ERRORIF_WrongOutputType_1x4x2x9_i16xi8_acci48_st11_pad0000_dilat11 | |
parent | d065e338624da04730c490bbaae208d111176f22 (diff) | |
download | conformance_tests-ab4bb694c6df1a837be89d0271fb21377a086658.tar.gz |
Updating CONV2D_1X1 tests for FP16 and accumulator types
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: Id1fb1687ffc4de1b92336ffbf65087c0d1ebf905
Diffstat (limited to 'operators/tensor/conv2d_1x1/conv2d_1x1_ERRORIF_WrongOutputType_1x4x2x9_i16xi8_acci48_st11_pad0000_dilat11')
3 files changed, 450 insertions, 0 deletions
diff --git a/operators/tensor/conv2d_1x1/conv2d_1x1_ERRORIF_WrongOutputType_1x4x2x9_i16xi8_acci48_st11_pad0000_dilat11/desc.json b/operators/tensor/conv2d_1x1/conv2d_1x1_ERRORIF_WrongOutputType_1x4x2x9_i16xi8_acci48_st11_pad0000_dilat11/desc.json new file mode 100644 index 000000000..199bfa93c --- /dev/null +++ b/operators/tensor/conv2d_1x1/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/conv2d_1x1/conv2d_1x1_ERRORIF_WrongOutputType_1x4x2x9_i16xi8_acci48_st11_pad0000_dilat11/input-0.json b/operators/tensor/conv2d_1x1/conv2d_1x1_ERRORIF_WrongOutputType_1x4x2x9_i16xi8_acci48_st11_pad0000_dilat11/input-0.json new file mode 100644 index 000000000..f85b44ee0 --- /dev/null +++ b/operators/tensor/conv2d_1x1/conv2d_1x1_ERRORIF_WrongOutputType_1x4x2x9_i16xi8_acci48_st11_pad0000_dilat11/input-0.json @@ -0,0 +1,103 @@ +{ + "type": "int32", + "data": [ + [ + [ + [ + 16727, + -6754, + 5868, + 21249, + 26622, + 3331, + -30059, + 7768, + 11797 + ], + [ + -28907, + 20795, + -19560, + 25589, + 3340, + -11658, + -28915, + -31598, + 15823 + ] + ], + [ + [ + -8051, + 22285, + -17661, + 27548, + 28939, + -26099, + 9629, + 28817, + -11594 + ], + [ + -28337, + 24607, + -1701, + -30994, + 22298, + 11721, + -28161, + -15816, + -31574 + ] + ], + [ + [ + 29810, + -31134, + 19389, + 738, + 5421, + 20420, + 25884, + -24417, + -31597 + ], + [ + -24602, + 11960, + 4492, + -27271, + -17414, + 2440, + 15087, + -10263, + 29467 + ] + ], + [ + [ + 32259, + 17434, + -2998, + 24718, + 14935, + 1283, + -3685, + 21778, + 3740 + ], + [ + -20782, + 32755, + -28289, + 12780, + 10220, + 5647, + -29364, + -486, + 25721 + ] + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/tensor/conv2d_1x1/conv2d_1x1_ERRORIF_WrongOutputType_1x4x2x9_i16xi8_acci48_st11_pad0000_dilat11/test.json b/operators/tensor/conv2d_1x1/conv2d_1x1_ERRORIF_WrongOutputType_1x4x2x9_i16xi8_acci48_st11_pad0000_dilat11/test.json new file mode 100644 index 000000000..9692c916d --- /dev/null +++ b/operators/tensor/conv2d_1x1/conv2d_1x1_ERRORIF_WrongOutputType_1x4x2x9_i16xi8_acci48_st11_pad0000_dilat11/test.json @@ -0,0 +1,325 @@ +{ + 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: "CONV2D", + attribute_type: "ConvAttribute", + attribute: { + pad: [ + 0, + 0, + 0, + 0 + ], + stride: [ + 1, + 1 + ], + dilation: [ + 1, + 1 + ], + input_zp: 0, + weight_zp: 90, + 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: [ + 14, + 1, + 1, + 9 + ], + type: "INT8", + data: [ + 189, + 49, + 91, + 115, + 4, + 208, + 51, + 252, + 32, + 61, + 53, + 190, + 65, + 10, + 110, + 40, + 100, + 122, + 126, + 62, + 24, + 158, + 226, + 249, + 71, + 22, + 240, + 165, + 55, + 238, + 137, + 200, + 97, + 158, + 231, + 3, + 149, + 170, + 112, + 23, + 181, + 171, + 236, + 57, + 58, + 177, + 57, + 101, + 185, + 134, + 117, + 5, + 70, + 209, + 204, + 185, + 183, + 248, + 155, + 87, + 2, + 106, + 0, + 205, + 3, + 167, + 82, + 56, + 165, + 20, + 9, + 179, + 159, + 66, + 195, + 4, + 191, + 39, + 140, + 219, + 12, + 240, + 28, + 174, + 241, + 65, + 213, + 168, + 89, + 71, + 46, + 76, + 71, + 63, + 2, + 132, + 24, + 197, + 69, + 247, + 103, + 24, + 12, + 107, + 249, + 224, + 223, + 96, + 65, + 169, + 254, + 223, + 37, + 141, + 54, + 62, + 186, + 166, + 32, + 193, + 113, + 70, + 116, + 8, + 112, + 131 + ] + }, + { + name: "const-2", + shape: [ + 14 + ], + type: "INT48", + data: [ + 57, + 74, + 131, + 124, + 146, + 128, + 116, + 173, + 184, + 167, + 186, + 2, + 164, + 73, + 134, + 144, + 17, + 206, + 205, + 164, + 19, + 228, + 40, + 174, + 186, + 131, + 7, + 126, + 20, + 29, + 111, + 61, + 7, + 208, + 122, + 186, + 174, + 90, + 68, + 227, + 154, + 23, + 31, + 65, + 198, + 146, + 23, + 225, + 31, + 139, + 161, + 153, + 206, + 175, + 165, + 145, + 4, + 213, + 90, + 163, + 125, + 36, + 128, + 229, + 162, + 188, + 88, + 73, + 184, + 19, + 163, + 135, + 43, + 246, + 152, + 104, + 225, + 206, + 251, + 205, + 168, + 128, + 230, + 102 + ] + }, + { + name: "result-0", + shape: [ + 1, + 4, + 2, + 14 + ], + type: "FLOAT" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} |