aboutsummaryrefslogtreecommitdiff
path: root/operators/tensor/matmul/matmul_ERRORIF_WrongRank_3x1x5x8x1_f16_accf16
diff options
context:
space:
mode:
authorJames Ward <james.ward@arm.com>2023-02-03 13:02:00 +0000
committerEric Kunze <eric.kunze@arm.com>2023-02-06 19:02:24 +0000
commit6dad592daec2aeed4473a084f54e60f088597fe4 (patch)
tree605649f1f4febe0b73d0095076c1ea45a52c4fb6 /operators/tensor/matmul/matmul_ERRORIF_WrongRank_3x1x5x8x1_f16_accf16
parentb00b1a1db3067c916671ce76840fd06b551b712b (diff)
downloadconformance_tests-6dad592daec2aeed4473a084f54e60f088597fe4.tar.gz
Create MI tests for Tensors: AVG_POOL2D, FULLY_CONNECTED, MATMUL
Signed-off-by: James Ward <james.ward@arm.com> Change-Id: I3bf038baba78bd9a54b33e6c718e02ff5eae37ad
Diffstat (limited to 'operators/tensor/matmul/matmul_ERRORIF_WrongRank_3x1x5x8x1_f16_accf16')
-rw-r--r--operators/tensor/matmul/matmul_ERRORIF_WrongRank_3x1x5x8x1_f16_accf16/desc.json23
-rw-r--r--operators/tensor/matmul/matmul_ERRORIF_WrongRank_3x1x5x8x1_f16_accf16/input-0.json407
-rw-r--r--operators/tensor/matmul/matmul_ERRORIF_WrongRank_3x1x5x8x1_f16_accf16/input-1.json161
-rw-r--r--operators/tensor/matmul/matmul_ERRORIF_WrongRank_3x1x5x8x1_f16_accf16/test.json73
4 files changed, 664 insertions, 0 deletions
diff --git a/operators/tensor/matmul/matmul_ERRORIF_WrongRank_3x1x5x8x1_f16_accf16/desc.json b/operators/tensor/matmul/matmul_ERRORIF_WrongRank_3x1x5x8x1_f16_accf16/desc.json
new file mode 100644
index 000000000..6f00b9342
--- /dev/null
+++ b/operators/tensor/matmul/matmul_ERRORIF_WrongRank_3x1x5x8x1_f16_accf16/desc.json
@@ -0,0 +1,23 @@
+{
+ "tosa_file": "test.json",
+ "ifm_name": [
+ "input-0",
+ "input-1"
+ ],
+ "ifm_file": [
+ "input-0.npy",
+ "input-1.npy"
+ ],
+ "ofm_name": [
+ "result-0"
+ ],
+ "ofm_file": [
+ "result-0.npy"
+ ],
+ "expected_return_code": 2,
+ "expected_failure": true,
+ "expected_failure_desc": "Rank not supported for this operator",
+ "profile": [
+ "tosa-mi"
+ ]
+} \ No newline at end of file
diff --git a/operators/tensor/matmul/matmul_ERRORIF_WrongRank_3x1x5x8x1_f16_accf16/input-0.json b/operators/tensor/matmul/matmul_ERRORIF_WrongRank_3x1x5x8x1_f16_accf16/input-0.json
new file mode 100644
index 000000000..9781b7604
--- /dev/null
+++ b/operators/tensor/matmul/matmul_ERRORIF_WrongRank_3x1x5x8x1_f16_accf16/input-0.json
@@ -0,0 +1,407 @@
+{
+ "type": "float16",
+ "data": [
+ [
+ [
+ [
+ [
+ 0.0782470703125
+ ],
+ [
+ 0.7578125
+ ],
+ [
+ 0.9619140625
+ ],
+ [
+ 0.0849609375
+ ],
+ [
+ 0.8359375
+ ],
+ [
+ 0.93310546875
+ ],
+ [
+ 0.2261962890625
+ ],
+ [
+ 0.52490234375
+ ]
+ ],
+ [
+ [
+ 0.927734375
+ ],
+ [
+ 0.96044921875
+ ],
+ [
+ 0.1279296875
+ ],
+ [
+ 0.34912109375
+ ],
+ [
+ 0.6982421875
+ ],
+ [
+ 0.2215576171875
+ ],
+ [
+ 0.32470703125
+ ],
+ [
+ 0.023284912109375
+ ]
+ ],
+ [
+ [
+ 0.153564453125
+ ],
+ [
+ 0.5625
+ ],
+ [
+ 0.6533203125
+ ],
+ [
+ 0.64892578125
+ ],
+ [
+ 0.7783203125
+ ],
+ [
+ 0.415283203125
+ ],
+ [
+ 0.2734375
+ ],
+ [
+ 0.0155792236328125
+ ]
+ ],
+ [
+ [
+ 0.2066650390625
+ ],
+ [
+ 0.3125
+ ],
+ [
+ 0.17822265625
+ ],
+ [
+ 0.0201416015625
+ ],
+ [
+ 0.157470703125
+ ],
+ [
+ 0.666015625
+ ],
+ [
+ 0.62939453125
+ ],
+ [
+ 0.935546875
+ ]
+ ],
+ [
+ [
+ 0.79833984375
+ ],
+ [
+ 0.56787109375
+ ],
+ [
+ 0.1375732421875
+ ],
+ [
+ 0.56396484375
+ ],
+ [
+ 0.06158447265625
+ ],
+ [
+ 0.430908203125
+ ],
+ [
+ 0.39013671875
+ ],
+ [
+ 0.427734375
+ ]
+ ]
+ ]
+ ],
+ [
+ [
+ [
+ [
+ 0.27978515625
+ ],
+ [
+ 0.68603515625
+ ],
+ [
+ 0.8408203125
+ ],
+ [
+ 0.7685546875
+ ],
+ [
+ 0.6279296875
+ ],
+ [
+ 0.53857421875
+ ],
+ [
+ 0.0310821533203125
+ ],
+ [
+ 0.72314453125
+ ]
+ ],
+ [
+ [
+ 0.544921875
+ ],
+ [
+ 0.270751953125
+ ],
+ [
+ 0.327880859375
+ ],
+ [
+ 0.935546875
+ ],
+ [
+ 0.62451171875
+ ],
+ [
+ 0.475830078125
+ ],
+ [
+ 0.62109375
+ ],
+ [
+ 0.413818359375
+ ]
+ ],
+ [
+ [
+ 0.47021484375
+ ],
+ [
+ 0.290283203125
+ ],
+ [
+ 0.43994140625
+ ],
+ [
+ 0.685546875
+ ],
+ [
+ 0.039947509765625
+ ],
+ [
+ 0.794921875
+ ],
+ [
+ 0.282958984375
+ ],
+ [
+ 0.6826171875
+ ]
+ ],
+ [
+ [
+ 0.642578125
+ ],
+ [
+ 0.65283203125
+ ],
+ [
+ 0.60791015625
+ ],
+ [
+ 0.958984375
+ ],
+ [
+ 0.50830078125
+ ],
+ [
+ 0.732421875
+ ],
+ [
+ 0.70556640625
+ ],
+ [
+ 0.236328125
+ ]
+ ],
+ [
+ [
+ 0.283203125
+ ],
+ [
+ 0.424072265625
+ ],
+ [
+ 0.277587890625
+ ],
+ [
+ 0.36669921875
+ ],
+ [
+ 0.390869140625
+ ],
+ [
+ 0.60400390625
+ ],
+ [
+ 0.2198486328125
+ ],
+ [
+ 0.80419921875
+ ]
+ ]
+ ]
+ ],
+ [
+ [
+ [
+ [
+ 0.4375
+ ],
+ [
+ 0.7060546875
+ ],
+ [
+ 0.0814208984375
+ ],
+ [
+ 0.469970703125
+ ],
+ [
+ 0.0282135009765625
+ ],
+ [
+ 0.67578125
+ ],
+ [
+ 0.34375
+ ],
+ [
+ 0.94921875
+ ]
+ ],
+ [
+ [
+ 0.32421875
+ ],
+ [
+ 0.56396484375
+ ],
+ [
+ 0.25732421875
+ ],
+ [
+ 0.6201171875
+ ],
+ [
+ 0.467041015625
+ ],
+ [
+ 0.37060546875
+ ],
+ [
+ 0.2037353515625
+ ],
+ [
+ 0.11151123046875
+ ]
+ ],
+ [
+ [
+ 0.119873046875
+ ],
+ [
+ 0.9990234375
+ ],
+ [
+ 0.412353515625
+ ],
+ [
+ 0.0019292831420898438
+ ],
+ [
+ 0.953125
+ ],
+ [
+ 0.0199737548828125
+ ],
+ [
+ 0.418701171875
+ ],
+ [
+ 0.71728515625
+ ]
+ ],
+ [
+ [
+ 0.91455078125
+ ],
+ [
+ 0.712890625
+ ],
+ [
+ 0.463623046875
+ ],
+ [
+ 0.974609375
+ ],
+ [
+ 0.039306640625
+ ],
+ [
+ 0.98681640625
+ ],
+ [
+ 0.849609375
+ ],
+ [
+ 0.9287109375
+ ]
+ ],
+ [
+ [
+ 0.2548828125
+ ],
+ [
+ 0.1424560546875
+ ],
+ [
+ 0.6630859375
+ ],
+ [
+ 0.515625
+ ],
+ [
+ 0.52294921875
+ ],
+ [
+ 0.9248046875
+ ],
+ [
+ 0.6201171875
+ ],
+ [
+ 0.31103515625
+ ]
+ ]
+ ]
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/tensor/matmul/matmul_ERRORIF_WrongRank_3x1x5x8x1_f16_accf16/input-1.json b/operators/tensor/matmul/matmul_ERRORIF_WrongRank_3x1x5x8x1_f16_accf16/input-1.json
new file mode 100644
index 000000000..ef8808007
--- /dev/null
+++ b/operators/tensor/matmul/matmul_ERRORIF_WrongRank_3x1x5x8x1_f16_accf16/input-1.json
@@ -0,0 +1,161 @@
+{
+ "type": "float16",
+ "data": [
+ [
+ [
+ 0.400146484375,
+ 0.133544921875,
+ 0.1922607421875,
+ 0.143310546875,
+ 0.81005859375,
+ 0.705078125,
+ 0.5302734375,
+ 0.374267578125
+ ],
+ [
+ 0.66845703125,
+ 0.81298828125,
+ 0.88134765625,
+ 0.546875,
+ 0.81982421875,
+ 0.51123046875,
+ 0.474609375,
+ 0.865234375
+ ],
+ [
+ 0.386474609375,
+ 0.39599609375,
+ 0.304931640625,
+ 0.5185546875,
+ 0.544921875,
+ 0.66064453125,
+ 0.430419921875,
+ 0.2178955078125
+ ],
+ [
+ 0.86669921875,
+ 0.345947265625,
+ 0.9228515625,
+ 0.2073974609375,
+ 0.56005859375,
+ 0.53662109375,
+ 0.82861328125,
+ 0.1387939453125
+ ],
+ [
+ 0.91015625,
+ 0.53125,
+ 0.5859375,
+ 0.51025390625,
+ 0.0360107421875,
+ 0.4970703125,
+ 0.263427734375,
+ 0.3427734375
+ ]
+ ],
+ [
+ [
+ 0.64892578125,
+ 0.497802734375,
+ 0.09320068359375,
+ 0.07305908203125,
+ 0.1856689453125,
+ 0.19091796875,
+ 0.6083984375,
+ 0.1778564453125
+ ],
+ [
+ 0.8818359375,
+ 0.209716796875,
+ 0.09112548828125,
+ 0.8759765625,
+ 0.29541015625,
+ 0.425537109375,
+ 0.958984375,
+ 0.9443359375
+ ],
+ [
+ 0.71484375,
+ 0.06890869140625,
+ 0.59326171875,
+ 0.9892578125,
+ 0.94677734375,
+ 0.10601806640625,
+ 0.39599609375,
+ 0.3154296875
+ ],
+ [
+ 0.1297607421875,
+ 0.69482421875,
+ 0.27392578125,
+ 0.344970703125,
+ 0.09033203125,
+ 0.498046875,
+ 0.158203125,
+ 0.43212890625
+ ],
+ [
+ 0.143310546875,
+ 0.95361328125,
+ 0.14501953125,
+ 0.52197265625,
+ 0.197021484375,
+ 0.07635498046875,
+ 0.2022705078125,
+ 0.054779052734375
+ ]
+ ],
+ [
+ [
+ 0.139404296875,
+ 0.493408203125,
+ 0.65185546875,
+ 0.08734130859375,
+ 0.44091796875,
+ 0.5810546875,
+ 0.2342529296875,
+ 0.3720703125
+ ],
+ [
+ 0.07183837890625,
+ 0.2200927734375,
+ 0.466796875,
+ 0.990234375,
+ 0.99609375,
+ 0.9794921875,
+ 0.423095703125,
+ 0.0806884765625
+ ],
+ [
+ 0.323486328125,
+ 0.2376708984375,
+ 0.014129638671875,
+ 0.09521484375,
+ 0.453125,
+ 0.339599609375,
+ 0.1802978515625,
+ 0.71630859375
+ ],
+ [
+ 0.357177734375,
+ 0.85205078125,
+ 0.240966796875,
+ 0.53857421875,
+ 0.18408203125,
+ 0.495361328125,
+ 0.1524658203125,
+ 0.16162109375
+ ],
+ [
+ 0.6123046875,
+ 0.263671875,
+ 0.17236328125,
+ 0.9296875,
+ 0.042999267578125,
+ 0.56494140625,
+ 0.54833984375,
+ 0.25048828125
+ ]
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/tensor/matmul/matmul_ERRORIF_WrongRank_3x1x5x8x1_f16_accf16/test.json b/operators/tensor/matmul/matmul_ERRORIF_WrongRank_3x1x5x8x1_f16_accf16/test.json
new file mode 100644
index 000000000..97d2b2969
--- /dev/null
+++ b/operators/tensor/matmul/matmul_ERRORIF_WrongRank_3x1x5x8x1_f16_accf16/test.json
@@ -0,0 +1,73 @@
+{
+ version: {
+ _major: 0,
+ _minor: 51,
+ _patch: 0,
+ _draft: true
+ },
+ regions: [
+ {
+ name: "main",
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "MATMUL",
+ attribute_type: "MatMulAttribute",
+ attribute: {
+ a_zp: 0,
+ b_zp: 0
+ },
+ inputs: [
+ "input-0",
+ "input-1"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 3,
+ 1,
+ 5,
+ 8,
+ 1
+ ],
+ type: "FP16"
+ },
+ {
+ name: "input-1",
+ shape: [
+ 3,
+ 5,
+ 8
+ ],
+ type: "FP16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 3,
+ 1,
+ 8
+ ],
+ type: "FP16"
+ }
+ ],
+ inputs: [
+ "input-0",
+ "input-1"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+ }
+ ]
+}