diff options
author | James Ward <james.ward@arm.com> | 2023-02-07 20:10:48 +0000 |
---|---|---|
committer | James Ward <james.ward@arm.com> | 2023-02-20 11:12:45 +0000 |
commit | dca402e71ab73c9e5843eb5a1cba4c380f8874a9 (patch) | |
tree | 4085e4c3262be4bbfa371702d50956599d663541 /operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_WrongOutputType_1x4x2x9_f16xf16_accf16_st11_pad0000_dilat11 | |
parent | 2e5ae1b56c08821a5e0dd7dac40d0a6d73acbadc (diff) | |
download | conformance_tests-dca402e71ab73c9e5843eb5a1cba4c380f8874a9.tar.gz |
Create MI tests for Tensors: DEPTHWISE_CONV2D
Signed-off-by: James Ward <james.ward@arm.com>
Change-Id: I1f414a68c4f532b3315ec5ffab932dd3d70407b5
Diffstat (limited to 'operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_WrongOutputType_1x4x2x9_f16xf16_accf16_st11_pad0000_dilat11')
3 files changed, 279 insertions, 0 deletions
diff --git a/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_WrongOutputType_1x4x2x9_f16xf16_accf16_st11_pad0000_dilat11/desc.json b/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_WrongOutputType_1x4x2x9_f16xf16_accf16_st11_pad0000_dilat11/desc.json new file mode 100644 index 000000000..d57e8394e --- /dev/null +++ b/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_WrongOutputType_1x4x2x9_f16xf16_accf16_st11_pad0000_dilat11/desc.json @@ -0,0 +1,21 @@ +{ + "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-mi" + ] +}
\ No newline at end of file diff --git a/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_WrongOutputType_1x4x2x9_f16xf16_accf16_st11_pad0000_dilat11/input-0.json b/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_WrongOutputType_1x4x2x9_f16xf16_accf16_st11_pad0000_dilat11/input-0.json new file mode 100644 index 000000000..35f1e3f2c --- /dev/null +++ b/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_WrongOutputType_1x4x2x9_f16xf16_accf16_st11_pad0000_dilat11/input-0.json @@ -0,0 +1,103 @@ +{ + "type": "float16", + "data": [ + [ + [ + [ + 0.1290283203125, + 0.15234375, + 0.63232421875, + 0.392822265625, + 0.921875, + 0.319091796875, + 0.72607421875, + 0.461181640625, + 0.66015625 + ], + [ + 0.599609375, + 0.472900390625, + 0.9501953125, + 0.3427734375, + 0.17724609375, + 0.67822265625, + 0.84619140625, + 0.040252685546875, + 0.44970703125 + ] + ], + [ + [ + 0.892578125, + 0.74951171875, + 0.99169921875, + 0.53125, + 0.66015625, + 0.302490234375, + 0.94775390625, + 0.366455078125, + 0.73828125 + ], + [ + 0.403076171875, + 0.56201171875, + 0.7197265625, + 0.5087890625, + 0.9072265625, + 0.419189453125, + 0.64697265625, + 0.34228515625, + 0.408203125 + ] + ], + [ + [ + 0.43994140625, + 0.1258544921875, + 0.09173583984375, + 0.66748046875, + 0.65576171875, + 0.6630859375, + 0.0197601318359375, + 0.32666015625, + 0.19775390625 + ], + [ + 0.7783203125, + 0.86083984375, + 0.2467041015625, + 0.66796875, + 0.12939453125, + 0.275146484375, + 0.138671875, + 0.283447265625, + 0.6748046875 + ] + ], + [ + [ + 0.91015625, + 0.2025146484375, + 0.5419921875, + 0.701171875, + 0.953125, + 0.60986328125, + 0.255126953125, + 0.62548828125, + 0.320556640625 + ], + [ + 0.97607421875, + 0.399658203125, + 0.685546875, + 0.023223876953125, + 0.400146484375, + 0.875, + 0.6103515625, + 0.44384765625, + 0.93603515625 + ] + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_WrongOutputType_1x4x2x9_f16xf16_accf16_st11_pad0000_dilat11/test.json b/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_WrongOutputType_1x4x2x9_f16xf16_accf16_st11_pad0000_dilat11/test.json new file mode 100644 index 000000000..22717c2cb --- /dev/null +++ b/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_WrongOutputType_1x4x2x9_f16xf16_accf16_st11_pad0000_dilat11/test.json @@ -0,0 +1,155 @@ +{ + version: { + _major: 0, + _minor: 51, + _patch: 0, + _draft: true + }, + regions: [ + { + name: "main", + 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: 0 + }, + inputs: [ + "input-0", + "const-1", + "const-2" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 4, + 2, + 9 + ], + type: "FP16" + }, + { + name: "const-1", + shape: [ + 1, + 1, + 9, + 1 + ], + type: "FP16", + data: [ + 213, + 58, + 40, + 53, + 91, + 56, + 214, + 55, + 15, + 57, + 89, + 53, + 209, + 51, + 77, + 59, + 100, + 59 + ] + }, + { + name: "const-2", + shape: [ + 9 + ], + type: "FP16", + data: [ + 191, + 58, + 211, + 59, + 246, + 57, + 30, + 58, + 26, + 58, + 177, + 55, + 78, + 55, + 176, + 51, + 41, + 57 + ] + }, + { + name: "result-0", + shape: [ + 1, + 4, + 2, + 9 + ], + type: "INT32" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] + } + ] +} |