aboutsummaryrefslogtreecommitdiff
path: root/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_ConvOutputShapeMismatch_1x4x3x6_bf16xbf16_accf32...
diff options
context:
space:
mode:
authorJames Ward <james.ward@arm.com>2023-02-07 20:10:48 +0000
committerJames Ward <james.ward@arm.com>2023-02-20 11:12:45 +0000
commitdca402e71ab73c9e5843eb5a1cba4c380f8874a9 (patch)
tree4085e4c3262be4bbfa371702d50956599d663541 /operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_ConvOutputShapeMismatch_1x4x3x6_bf16xbf16_accf32_st11_pad0000_dilat11
parent2e5ae1b56c08821a5e0dd7dac40d0a6d73acbadc (diff)
downloadconformance_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_ConvOutputShapeMismatch_1x4x3x6_bf16xbf16_accf32_st11_pad0000_dilat11')
-rw-r--r--operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_ConvOutputShapeMismatch_1x4x3x6_bf16xbf16_accf32_st11_pad0000_dilat11/desc.json21
-rw-r--r--operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_ConvOutputShapeMismatch_1x4x3x6_bf16xbf16_accf32_st11_pad0000_dilat11/input-0.json111
-rw-r--r--operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_ConvOutputShapeMismatch_1x4x3x6_bf16xbf16_accf32_st11_pad0000_dilat11/test.json167
3 files changed, 299 insertions, 0 deletions
diff --git a/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_ConvOutputShapeMismatch_1x4x3x6_bf16xbf16_accf32_st11_pad0000_dilat11/desc.json b/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_ConvOutputShapeMismatch_1x4x3x6_bf16xbf16_accf32_st11_pad0000_dilat11/desc.json
new file mode 100644
index 000000000..2fc8edae4
--- /dev/null
+++ b/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_ConvOutputShapeMismatch_1x4x3x6_bf16xbf16_accf32_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": "Mismatch between output shape provided and expected output shape",
+ "profile": [
+ "tosa-mi"
+ ]
+} \ No newline at end of file
diff --git a/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_ConvOutputShapeMismatch_1x4x3x6_bf16xbf16_accf32_st11_pad0000_dilat11/input-0.json b/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_ConvOutputShapeMismatch_1x4x3x6_bf16xbf16_accf32_st11_pad0000_dilat11/input-0.json
new file mode 100644
index 000000000..70ad85705
--- /dev/null
+++ b/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_ConvOutputShapeMismatch_1x4x3x6_bf16xbf16_accf32_st11_pad0000_dilat11/input-0.json
@@ -0,0 +1,111 @@
+{
+ "type": "float32",
+ "data": [
+ [
+ [
+ [
+ 0.035400390625,
+ 0.81640625,
+ 0.240234375,
+ 0.62890625,
+ 0.546875,
+ 0.004425048828125
+ ],
+ [
+ 0.9921875,
+ 0.8125,
+ 0.486328125,
+ 0.6796875,
+ 0.4765625,
+ 0.7421875
+ ],
+ [
+ 0.1337890625,
+ 0.4453125,
+ 0.333984375,
+ 0.458984375,
+ 0.44921875,
+ 0.142578125
+ ]
+ ],
+ [
+ [
+ 0.97265625,
+ 0.01544189453125,
+ 0.01007080078125,
+ 0.373046875,
+ 0.6171875,
+ 0.1787109375
+ ],
+ [
+ 0.53125,
+ 0.72265625,
+ 0.09375,
+ 0.984375,
+ 0.3359375,
+ 0.640625
+ ],
+ [
+ 0.1103515625,
+ 0.70703125,
+ 0.83984375,
+ 0.10498046875,
+ 0.125,
+ 0.279296875
+ ]
+ ],
+ [
+ [
+ 0.01190185546875,
+ 0.984375,
+ 0.59765625,
+ 0.60546875,
+ 0.95703125,
+ 0.828125
+ ],
+ [
+ 0.8125,
+ 0.337890625,
+ 0.333984375,
+ 0.291015625,
+ 0.345703125,
+ 0.369140625
+ ],
+ [
+ 0.1396484375,
+ 0.35546875,
+ 0.4453125,
+ 0.30859375,
+ 0.1650390625,
+ 0.373046875
+ ]
+ ],
+ [
+ [
+ 0.48046875,
+ 0.71875,
+ 0.7109375,
+ 0.2021484375,
+ 0.03662109375,
+ 0.302734375
+ ],
+ [
+ 0.15625,
+ 0.39453125,
+ 0.9765625,
+ 0.1806640625,
+ 0.318359375,
+ 0.72265625
+ ],
+ [
+ 0.5078125,
+ 0.043701171875,
+ 0.1611328125,
+ 0.93359375,
+ 0.10302734375,
+ 0.6328125
+ ]
+ ]
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_ConvOutputShapeMismatch_1x4x3x6_bf16xbf16_accf32_st11_pad0000_dilat11/test.json b/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_ConvOutputShapeMismatch_1x4x3x6_bf16xbf16_accf32_st11_pad0000_dilat11/test.json
new file mode 100644
index 000000000..351af24c9
--- /dev/null
+++ b/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_ConvOutputShapeMismatch_1x4x3x6_bf16xbf16_accf32_st11_pad0000_dilat11/test.json
@@ -0,0 +1,167 @@
+{
+ 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,
+ 3,
+ 6
+ ],
+ type: "BF16"
+ },
+ {
+ name: "const-1",
+ shape: [
+ 1,
+ 1,
+ 6,
+ 1
+ ],
+ type: "BF16",
+ data: [
+ 0,
+ 0,
+ 74,
+ 63,
+ 0,
+ 0,
+ 135,
+ 62,
+ 0,
+ 0,
+ 57,
+ 63,
+ 0,
+ 0,
+ 45,
+ 62,
+ 0,
+ 0,
+ 145,
+ 62,
+ 0,
+ 0,
+ 159,
+ 62
+ ]
+ },
+ {
+ name: "const-2",
+ shape: [
+ 6
+ ],
+ type: "FP32",
+ data: [
+ 93,
+ 22,
+ 127,
+ 63,
+ 215,
+ 184,
+ 91,
+ 62,
+ 246,
+ 78,
+ 4,
+ 62,
+ 29,
+ 250,
+ 108,
+ 63,
+ 41,
+ 209,
+ 37,
+ 62,
+ 125,
+ 24,
+ 97,
+ 63
+ ]
+ },
+ {
+ name: "result-0",
+ shape: [
+ 1,
+ 6,
+ 3,
+ 6
+ ],
+ type: "FP32"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+ }
+ ]
+}