aboutsummaryrefslogtreecommitdiff
path: root/operators/data_layout/concat/concat_ERRORIF_ConcatInputDimMismatch_11x7_f16_axis0
diff options
context:
space:
mode:
authorJames Ward <james.ward@arm.com>2022-11-21 11:51:55 +0000
committerJames Ward <james.ward@arm.com>2022-11-21 11:51:55 +0000
commitd8e6b6b5148a3d61b378e6e5259ca421a709abef (patch)
tree2ec785497e47a644c12d57f22a306b0749d22735 /operators/data_layout/concat/concat_ERRORIF_ConcatInputDimMismatch_11x7_f16_axis0
parentda333bee0fae850bf90f422d68902884b6063cce (diff)
downloadconformance_tests-d8e6b6b5148a3d61b378e6e5259ca421a709abef.tar.gz
Create MI tests for Data Layout: CONCAT, PAD, RESHAPE, REVERSE, SLICE, TILE, TRANSPOSE
Signed-off-by: James Ward <james.ward@arm.com> Change-Id: Icbbe8f63e35d04a3b2cc64bd760ca92c22fd4aa7
Diffstat (limited to 'operators/data_layout/concat/concat_ERRORIF_ConcatInputDimMismatch_11x7_f16_axis0')
-rw-r--r--operators/data_layout/concat/concat_ERRORIF_ConcatInputDimMismatch_11x7_f16_axis0/desc.json27
-rw-r--r--operators/data_layout/concat/concat_ERRORIF_ConcatInputDimMismatch_11x7_f16_axis0/input-0.json104
-rw-r--r--operators/data_layout/concat/concat_ERRORIF_ConcatInputDimMismatch_11x7_f16_axis0/input-1.json50
-rw-r--r--operators/data_layout/concat/concat_ERRORIF_ConcatInputDimMismatch_11x7_f16_axis0/input-2.json39
-rw-r--r--operators/data_layout/concat/concat_ERRORIF_ConcatInputDimMismatch_11x7_f16_axis0/input-3.json51
-rw-r--r--operators/data_layout/concat/concat_ERRORIF_ConcatInputDimMismatch_11x7_f16_axis0/test.json82
6 files changed, 353 insertions, 0 deletions
diff --git a/operators/data_layout/concat/concat_ERRORIF_ConcatInputDimMismatch_11x7_f16_axis0/desc.json b/operators/data_layout/concat/concat_ERRORIF_ConcatInputDimMismatch_11x7_f16_axis0/desc.json
new file mode 100644
index 000000000..4df28096e
--- /dev/null
+++ b/operators/data_layout/concat/concat_ERRORIF_ConcatInputDimMismatch_11x7_f16_axis0/desc.json
@@ -0,0 +1,27 @@
+{
+ "tosa_file": "test.json",
+ "ifm_name": [
+ "input-0",
+ "input-1",
+ "input-2",
+ "input-3"
+ ],
+ "ifm_file": [
+ "input-0.npy",
+ "input-1.npy",
+ "input-2.npy",
+ "input-3.npy"
+ ],
+ "ofm_name": [
+ "result-0"
+ ],
+ "ofm_file": [
+ "result-0.npy"
+ ],
+ "expected_return_code": 2,
+ "expected_failure": true,
+ "expected_failure_desc": "Input dimensions differ on too many axes",
+ "profile": [
+ "tosa-mi"
+ ]
+} \ No newline at end of file
diff --git a/operators/data_layout/concat/concat_ERRORIF_ConcatInputDimMismatch_11x7_f16_axis0/input-0.json b/operators/data_layout/concat/concat_ERRORIF_ConcatInputDimMismatch_11x7_f16_axis0/input-0.json
new file mode 100644
index 000000000..17191723b
--- /dev/null
+++ b/operators/data_layout/concat/concat_ERRORIF_ConcatInputDimMismatch_11x7_f16_axis0/input-0.json
@@ -0,0 +1,104 @@
+{
+ "type": "float16",
+ "data": [
+ [
+ 0.7216796875,
+ 0.84375,
+ 0.40234375,
+ 0.475341796875,
+ 0.7333984375,
+ 0.97119140625,
+ 0.342529296875
+ ],
+ [
+ 0.428466796875,
+ 0.79052734375,
+ 0.51513671875,
+ 0.44970703125,
+ 0.02593994140625,
+ 0.7490234375,
+ 0.66357421875
+ ],
+ [
+ 0.92724609375,
+ 0.68701171875,
+ 0.72607421875,
+ 0.243896484375,
+ 0.80712890625,
+ 0.29736328125,
+ 0.93212890625
+ ],
+ [
+ 0.61474609375,
+ 0.1500244140625,
+ 0.2457275390625,
+ 0.64208984375,
+ 0.72998046875,
+ 0.231201171875,
+ 0.5556640625
+ ],
+ [
+ 0.305419921875,
+ 0.8232421875,
+ 0.30517578125,
+ 0.08795166015625,
+ 0.9267578125,
+ 0.56396484375,
+ 0.239013671875
+ ],
+ [
+ 0.525390625,
+ 0.814453125,
+ 0.537109375,
+ 0.308837890625,
+ 0.64208984375,
+ 0.40380859375,
+ 0.062347412109375
+ ],
+ [
+ 0.53662109375,
+ 0.5732421875,
+ 0.87646484375,
+ 0.2078857421875,
+ 0.2110595703125,
+ 0.355224609375,
+ 0.66064453125
+ ],
+ [
+ 0.284423828125,
+ 0.38037109375,
+ 0.50244140625,
+ 0.91650390625,
+ 0.9208984375,
+ 0.7431640625,
+ 0.7294921875
+ ],
+ [
+ 0.413330078125,
+ 0.59130859375,
+ 0.10943603515625,
+ 0.2139892578125,
+ 0.1978759765625,
+ 0.312255859375,
+ 0.64697265625
+ ],
+ [
+ 0.478271484375,
+ 0.66943359375,
+ 0.99853515625,
+ 0.2291259765625,
+ 0.58447265625,
+ 0.7861328125,
+ 0.0111083984375
+ ],
+ [
+ 0.63916015625,
+ 0.9052734375,
+ 0.436279296875,
+ 0.7001953125,
+ 0.20166015625,
+ 0.028717041015625,
+ 0.5517578125
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/data_layout/concat/concat_ERRORIF_ConcatInputDimMismatch_11x7_f16_axis0/input-1.json b/operators/data_layout/concat/concat_ERRORIF_ConcatInputDimMismatch_11x7_f16_axis0/input-1.json
new file mode 100644
index 000000000..5b82cee38
--- /dev/null
+++ b/operators/data_layout/concat/concat_ERRORIF_ConcatInputDimMismatch_11x7_f16_axis0/input-1.json
@@ -0,0 +1,50 @@
+{
+ "type": "float16",
+ "data": [
+ [
+ 0.466064453125,
+ 0.75,
+ 0.1685791015625,
+ 0.9716796875,
+ 0.25537109375,
+ 0.00927734375,
+ 0.56396484375
+ ],
+ [
+ 0.293701171875,
+ 0.5927734375,
+ 0.08575439453125,
+ 0.182373046875,
+ 0.59228515625,
+ 0.35888671875,
+ 0.316650390625
+ ],
+ [
+ 0.3330078125,
+ 0.87744140625,
+ 0.6962890625,
+ 0.383056640625,
+ 0.30029296875,
+ 0.0142974853515625,
+ 0.29052734375
+ ],
+ [
+ 0.9931640625,
+ 0.77294921875,
+ 0.5390625,
+ 0.8916015625,
+ 0.497314453125,
+ 0.759765625,
+ 0.234619140625
+ ],
+ [
+ 0.8701171875,
+ 0.037261962890625,
+ 0.09210205078125,
+ 0.466552734375,
+ 0.2100830078125,
+ 0.45263671875,
+ 0.03509521484375
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/data_layout/concat/concat_ERRORIF_ConcatInputDimMismatch_11x7_f16_axis0/input-2.json b/operators/data_layout/concat/concat_ERRORIF_ConcatInputDimMismatch_11x7_f16_axis0/input-2.json
new file mode 100644
index 000000000..75ca13994
--- /dev/null
+++ b/operators/data_layout/concat/concat_ERRORIF_ConcatInputDimMismatch_11x7_f16_axis0/input-2.json
@@ -0,0 +1,39 @@
+{
+ "type": "float16",
+ "data": [
+ [
+ 0.083251953125,
+ 0.47021484375,
+ 0.75732421875,
+ 0.07818603515625,
+ 0.58349609375,
+ 0.8056640625,
+ 0.0777587890625,
+ 0.65478515625,
+ 0.86181640625,
+ 0.5478515625,
+ 0.460205078125,
+ 0.5693359375,
+ 0.611328125,
+ 0.42578125,
+ 0.40771484375
+ ],
+ [
+ 0.6171875,
+ 0.5341796875,
+ 0.6865234375,
+ 0.0787353515625,
+ 0.7919921875,
+ 0.98828125,
+ 0.204345703125,
+ 0.142822265625,
+ 0.8828125,
+ 0.9775390625,
+ 0.0782470703125,
+ 0.358642578125,
+ 0.2318115234375,
+ 0.293212890625,
+ 0.400146484375
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/data_layout/concat/concat_ERRORIF_ConcatInputDimMismatch_11x7_f16_axis0/input-3.json b/operators/data_layout/concat/concat_ERRORIF_ConcatInputDimMismatch_11x7_f16_axis0/input-3.json
new file mode 100644
index 000000000..1a7da5dd5
--- /dev/null
+++ b/operators/data_layout/concat/concat_ERRORIF_ConcatInputDimMismatch_11x7_f16_axis0/input-3.json
@@ -0,0 +1,51 @@
+{
+ "type": "float16",
+ "data": [
+ [
+ 0.1490478515625,
+ 0.7919921875,
+ 0.72412109375,
+ 0.87548828125,
+ 0.5732421875,
+ 0.33447265625,
+ 0.6455078125,
+ 0.12158203125,
+ 0.75244140625,
+ 0.53759765625,
+ 0.54541015625,
+ 0.413330078125,
+ 0.6982421875,
+ 0.0582275390625,
+ 0.0246429443359375,
+ 0.51611328125,
+ 0.334228515625,
+ 0.260009765625,
+ 0.84619140625,
+ 0.453369140625,
+ 0.7333984375
+ ],
+ [
+ 0.0029201507568359375,
+ 0.0660400390625,
+ 0.51025390625,
+ 0.4541015625,
+ 0.75146484375,
+ 0.6748046875,
+ 0.083740234375,
+ 0.408935546875,
+ 0.370849609375,
+ 0.407470703125,
+ 0.130615234375,
+ 0.4677734375,
+ 0.311279296875,
+ 0.53955078125,
+ 0.517578125,
+ 0.15283203125,
+ 0.70849609375,
+ 0.92529296875,
+ 0.5048828125,
+ 0.315185546875,
+ 0.50390625
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/data_layout/concat/concat_ERRORIF_ConcatInputDimMismatch_11x7_f16_axis0/test.json b/operators/data_layout/concat/concat_ERRORIF_ConcatInputDimMismatch_11x7_f16_axis0/test.json
new file mode 100644
index 000000000..d8448b4fa
--- /dev/null
+++ b/operators/data_layout/concat/concat_ERRORIF_ConcatInputDimMismatch_11x7_f16_axis0/test.json
@@ -0,0 +1,82 @@
+{
+ version: {
+ _major: 0,
+ _minor: 41,
+ _patch: 0,
+ _draft: true
+ },
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "CONCAT",
+ attribute_type: "AxisAttribute",
+ attribute: {
+ axis: 0
+ },
+ inputs: [
+ "input-0",
+ "input-1",
+ "input-2",
+ "input-3"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 11,
+ 7
+ ],
+ type: "FP16"
+ },
+ {
+ name: "input-1",
+ shape: [
+ 5,
+ 7
+ ],
+ type: "FP16"
+ },
+ {
+ name: "input-2",
+ shape: [
+ 2,
+ 15
+ ],
+ type: "FP16"
+ },
+ {
+ name: "input-3",
+ shape: [
+ 2,
+ 21
+ ],
+ type: "FP16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 20,
+ 7
+ ],
+ type: "FP16"
+ }
+ ],
+ inputs: [
+ "input-0",
+ "input-1",
+ "input-2",
+ "input-3"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}