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_DilationSmallerOne_1x2x4x9_f32xf32_accf32_st11_pad0000_dilat00 | |
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_DilationSmallerOne_1x2x4x9_f32xf32_accf32_st11_pad0000_dilat00')
3 files changed, 311 insertions, 0 deletions
diff --git a/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_DilationSmallerOne_1x2x4x9_f32xf32_accf32_st11_pad0000_dilat00/desc.json b/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_DilationSmallerOne_1x2x4x9_f32xf32_accf32_st11_pad0000_dilat00/desc.json new file mode 100644 index 000000000..1700680f6 --- /dev/null +++ b/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_DilationSmallerOne_1x2x4x9_f32xf32_accf32_st11_pad0000_dilat00/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": "At least one dilation is smaller than one", + "profile": [ + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_DilationSmallerOne_1x2x4x9_f32xf32_accf32_st11_pad0000_dilat00/input-0.json b/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_DilationSmallerOne_1x2x4x9_f32xf32_accf32_st11_pad0000_dilat00/input-0.json new file mode 100644 index 000000000..9c35a61d3 --- /dev/null +++ b/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_DilationSmallerOne_1x2x4x9_f32xf32_accf32_st11_pad0000_dilat00/input-0.json @@ -0,0 +1,99 @@ +{ + "type": "float32", + "data": [ + [ + [ + [ + 0.5494677424430847, + 0.09639348834753036, + 0.8739916086196899, + 0.5126132369041443, + 0.4733610153198242, + 0.1984393298625946, + 0.3769938051700592, + 0.33282485604286194, + 0.2707356810569763 + ], + [ + 0.5674065947532654, + 0.46227535605430603, + 0.8891977071762085, + 0.9413439631462097, + 0.2194734364748001, + 0.10010542720556259, + 0.7853375673294067, + 0.9948614239692688, + 0.8636000752449036 + ], + [ + 0.023697402328252792, + 0.2512635588645935, + 0.04334227740764618, + 0.8207793831825256, + 0.5814069509506226, + 0.5137185454368591, + 0.5544498562812805, + 0.2524512708187103, + 0.6016383767127991 + ], + [ + 0.030666979029774666, + 0.6460117101669312, + 0.7344338297843933, + 0.6730262637138367, + 0.3321175277233124, + 0.826262891292572, + 0.7155439853668213, + 0.1282973289489746, + 0.19514422118663788 + ] + ], + [ + [ + 0.6371083855628967, + 0.2894161343574524, + 0.11943294107913971, + 0.1549689918756485, + 0.1656171828508377, + 0.477790892124176, + 0.6073854565620422, + 0.1764022707939148, + 0.7124966382980347 + ], + [ + 0.2810125946998596, + 0.3115581274032593, + 0.2234986275434494, + 0.785206139087677, + 0.9598138332366943, + 0.49249985814094543, + 0.042030639946460724, + 0.260569304227829, + 0.1580502837896347 + ], + [ + 0.842762291431427, + 0.08485398441553116, + 0.9664762616157532, + 0.5885137915611267, + 0.5177397727966309, + 0.8473505973815918, + 0.027547622099518776, + 0.7771527767181396, + 0.1166040450334549 + ], + [ + 0.840778112411499, + 0.5291762351989746, + 0.06112940236926079, + 0.833245038986206, + 0.027314117178320885, + 0.13837069272994995, + 0.797824501991272, + 0.4648711383342743, + 0.8813887238502502 + ] + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_DilationSmallerOne_1x2x4x9_f32xf32_accf32_st11_pad0000_dilat00/test.json b/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_DilationSmallerOne_1x2x4x9_f32xf32_accf32_st11_pad0000_dilat00/test.json new file mode 100644 index 000000000..9b8966668 --- /dev/null +++ b/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_DilationSmallerOne_1x2x4x9_f32xf32_accf32_st11_pad0000_dilat00/test.json @@ -0,0 +1,191 @@ +{ + 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: [ + 0, + 0 + ], + input_zp: 0, + weight_zp: 0 + }, + inputs: [ + "input-0", + "const-1", + "const-2" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 2, + 4, + 9 + ], + type: "FP32" + }, + { + name: "const-1", + shape: [ + 1, + 1, + 9, + 1 + ], + type: "FP32", + data: [ + 126, + 171, + 34, + 63, + 149, + 159, + 31, + 63, + 215, + 159, + 149, + 62, + 140, + 227, + 8, + 62, + 101, + 15, + 118, + 63, + 44, + 160, + 214, + 61, + 61, + 109, + 7, + 63, + 28, + 142, + 139, + 62, + 114, + 61, + 135, + 62 + ] + }, + { + name: "const-2", + shape: [ + 9 + ], + type: "FP32", + data: [ + 205, + 54, + 24, + 63, + 105, + 69, + 76, + 63, + 60, + 245, + 70, + 63, + 202, + 105, + 94, + 63, + 89, + 247, + 149, + 62, + 247, + 118, + 238, + 62, + 10, + 240, + 24, + 60, + 16, + 50, + 63, + 63, + 183, + 204, + 154, + 62 + ] + }, + { + name: "result-0", + shape: [ + 1, + 2, + 4, + 9 + ], + type: "FP32" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] + } + ] +} |