aboutsummaryrefslogtreecommitdiff
path: root/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_StrideSmallerOne_1x6x2x6_f16xf16_accf16_st-2-2_p...
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_StrideSmallerOne_1x6x2x6_f16xf16_accf16_st-2-2_pad1001_dilat12
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_StrideSmallerOne_1x6x2x6_f16xf16_accf16_st-2-2_pad1001_dilat12')
-rw-r--r--operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_StrideSmallerOne_1x6x2x6_f16xf16_accf16_st-2-2_pad1001_dilat12/desc.json21
-rw-r--r--operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_StrideSmallerOne_1x6x2x6_f16xf16_accf16_st-2-2_pad1001_dilat12/input-0.json115
-rw-r--r--operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_StrideSmallerOne_1x6x2x6_f16xf16_accf16_st-2-2_pad1001_dilat12/test.json167
3 files changed, 303 insertions, 0 deletions
diff --git a/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_StrideSmallerOne_1x6x2x6_f16xf16_accf16_st-2-2_pad1001_dilat12/desc.json b/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_StrideSmallerOne_1x6x2x6_f16xf16_accf16_st-2-2_pad1001_dilat12/desc.json
new file mode 100644
index 000000000..59c8fbad4
--- /dev/null
+++ b/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_StrideSmallerOne_1x6x2x6_f16xf16_accf16_st-2-2_pad1001_dilat12/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 stride dimension is smaller than zero",
+ "profile": [
+ "tosa-mi"
+ ]
+} \ No newline at end of file
diff --git a/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_StrideSmallerOne_1x6x2x6_f16xf16_accf16_st-2-2_pad1001_dilat12/input-0.json b/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_StrideSmallerOne_1x6x2x6_f16xf16_accf16_st-2-2_pad1001_dilat12/input-0.json
new file mode 100644
index 000000000..cb387c3b2
--- /dev/null
+++ b/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_StrideSmallerOne_1x6x2x6_f16xf16_accf16_st-2-2_pad1001_dilat12/input-0.json
@@ -0,0 +1,115 @@
+{
+ "type": "float16",
+ "data": [
+ [
+ [
+ [
+ 0.54931640625,
+ 0.5498046875,
+ 0.6025390625,
+ 0.05548095703125,
+ 0.1685791015625,
+ 0.1611328125
+ ],
+ [
+ 0.302001953125,
+ 0.1448974609375,
+ 0.921875,
+ 0.51318359375,
+ 0.62353515625,
+ 0.357421875
+ ]
+ ],
+ [
+ [
+ 0.2763671875,
+ 0.50341796875,
+ 0.29443359375,
+ 0.34375,
+ 0.45263671875,
+ 0.505859375
+ ],
+ [
+ 0.984375,
+ 0.2232666015625,
+ 0.488037109375,
+ 0.1495361328125,
+ 0.35009765625,
+ 0.71728515625
+ ]
+ ],
+ [
+ [
+ 0.1744384765625,
+ 0.58154296875,
+ 0.416748046875,
+ 0.05157470703125,
+ 0.93310546875,
+ 0.41357421875
+ ],
+ [
+ 0.78369140625,
+ 0.416259765625,
+ 0.9375,
+ 0.29052734375,
+ 0.412109375,
+ 0.7587890625
+ ]
+ ],
+ [
+ [
+ 0.34375,
+ 0.3642578125,
+ 0.99462890625,
+ 0.5556640625,
+ 0.689453125,
+ 0.6435546875
+ ],
+ [
+ 0.828125,
+ 0.86181640625,
+ 0.5634765625,
+ 0.294677734375,
+ 0.022796630859375,
+ 0.6142578125
+ ]
+ ],
+ [
+ [
+ 0.82568359375,
+ 0.450439453125,
+ 0.1646728515625,
+ 0.2880859375,
+ 0.509765625,
+ 0.8369140625
+ ],
+ [
+ 0.1717529296875,
+ 0.6123046875,
+ 0.75341796875,
+ 0.93603515625,
+ 0.11669921875,
+ 0.92626953125
+ ]
+ ],
+ [
+ [
+ 0.6015625,
+ 0.7666015625,
+ 0.05377197265625,
+ 0.50634765625,
+ 0.62255859375,
+ 0.306884765625
+ ],
+ [
+ 0.431640625,
+ 0.55419921875,
+ 0.552734375,
+ 0.0418701171875,
+ 0.439453125,
+ 0.2138671875
+ ]
+ ]
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_StrideSmallerOne_1x6x2x6_f16xf16_accf16_st-2-2_pad1001_dilat12/test.json b/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_StrideSmallerOne_1x6x2x6_f16xf16_accf16_st-2-2_pad1001_dilat12/test.json
new file mode 100644
index 000000000..7edfdd17b
--- /dev/null
+++ b/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_StrideSmallerOne_1x6x2x6_f16xf16_accf16_st-2-2_pad1001_dilat12/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: [
+ 1,
+ 0,
+ 0,
+ 1
+ ],
+ stride: [
+ -2,
+ -2
+ ],
+ dilation: [
+ 1,
+ 2
+ ],
+ input_zp: 0,
+ weight_zp: 0
+ },
+ inputs: [
+ "input-0",
+ "const-1",
+ "const-2"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 1,
+ 6,
+ 2,
+ 6
+ ],
+ type: "FP16"
+ },
+ {
+ name: "const-1",
+ shape: [
+ 1,
+ 1,
+ 6,
+ 2
+ ],
+ type: "FP16",
+ data: [
+ 85,
+ 59,
+ 208,
+ 59,
+ 203,
+ 52,
+ 155,
+ 49,
+ 6,
+ 51,
+ 165,
+ 55,
+ 255,
+ 58,
+ 0,
+ 56,
+ 23,
+ 43,
+ 27,
+ 41,
+ 71,
+ 51,
+ 190,
+ 58
+ ]
+ },
+ {
+ name: "const-2",
+ shape: [
+ 12
+ ],
+ type: "FP16",
+ data: [
+ 249,
+ 56,
+ 129,
+ 56,
+ 26,
+ 53,
+ 111,
+ 59,
+ 77,
+ 53,
+ 174,
+ 58,
+ 43,
+ 59,
+ 188,
+ 55,
+ 40,
+ 59,
+ 110,
+ 52,
+ 68,
+ 57,
+ 161,
+ 45
+ ]
+ },
+ {
+ name: "result-0",
+ shape: [
+ 1,
+ -2,
+ 0,
+ 12
+ ],
+ type: "FP16"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+ }
+ ]
+}