aboutsummaryrefslogtreecommitdiff
path: root/operators/data_layout/slice/slice_ERRORIF_WrongOutputList_10x5_f16_perm0
diff options
context:
space:
mode:
authorJames Ward <james.ward@arm.com>2023-01-17 17:22:19 +0000
committerJames Ward <james.ward@arm.com>2023-01-26 12:10:28 +0000
commite8c4df459931d92df458f42adfc6d164a701e2e4 (patch)
tree1760d2ab225e44db0434bc6fa73694f6dd952132 /operators/data_layout/slice/slice_ERRORIF_WrongOutputList_10x5_f16_perm0
parentde22a661323bcad18a67a318d9cda5ce9f2699a8 (diff)
downloadconformance_tests-e8c4df459931d92df458f42adfc6d164a701e2e4.tar.gz
Create MI tests for Data Layout: SLICE
Signed-off-by: James Ward <james.ward@arm.com> Change-Id: I1be7f445a53791ca1395ef484725825b051afba3
Diffstat (limited to 'operators/data_layout/slice/slice_ERRORIF_WrongOutputList_10x5_f16_perm0')
-rw-r--r--operators/data_layout/slice/slice_ERRORIF_WrongOutputList_10x5_f16_perm0/desc.json22
-rw-r--r--operators/data_layout/slice/slice_ERRORIF_WrongOutputList_10x5_f16_perm0/input-0.json75
-rw-r--r--operators/data_layout/slice/slice_ERRORIF_WrongOutputList_10x5_f16_perm0/test.json64
3 files changed, 161 insertions, 0 deletions
diff --git a/operators/data_layout/slice/slice_ERRORIF_WrongOutputList_10x5_f16_perm0/desc.json b/operators/data_layout/slice/slice_ERRORIF_WrongOutputList_10x5_f16_perm0/desc.json
new file mode 100644
index 000000000..2b74f86d0
--- /dev/null
+++ b/operators/data_layout/slice/slice_ERRORIF_WrongOutputList_10x5_f16_perm0/desc.json
@@ -0,0 +1,22 @@
+{
+ "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": "Op output list does not match expected output",
+ "profile": [
+ "tosa-bi",
+ "tosa-mi"
+ ]
+} \ No newline at end of file
diff --git a/operators/data_layout/slice/slice_ERRORIF_WrongOutputList_10x5_f16_perm0/input-0.json b/operators/data_layout/slice/slice_ERRORIF_WrongOutputList_10x5_f16_perm0/input-0.json
new file mode 100644
index 000000000..878df30fb
--- /dev/null
+++ b/operators/data_layout/slice/slice_ERRORIF_WrongOutputList_10x5_f16_perm0/input-0.json
@@ -0,0 +1,75 @@
+{
+ "type": "float16",
+ "data": [
+ [
+ 0.744140625,
+ 0.1651611328125,
+ 0.0025653839111328125,
+ 0.1754150390625,
+ 0.72607421875
+ ],
+ [
+ 0.89794921875,
+ 0.10107421875,
+ 0.445556640625,
+ 0.57275390625,
+ 0.8896484375
+ ],
+ [
+ 0.2174072265625,
+ 0.65576171875,
+ 0.83544921875,
+ 0.0662841796875,
+ 0.2169189453125
+ ],
+ [
+ 0.13525390625,
+ 0.7099609375,
+ 0.289794921875,
+ 0.069091796875,
+ 0.09332275390625
+ ],
+ [
+ 0.68505859375,
+ 0.58056640625,
+ 0.332763671875,
+ 0.9140625,
+ 0.026092529296875
+ ],
+ [
+ 0.23291015625,
+ 0.54931640625,
+ 0.9501953125,
+ 0.88427734375,
+ 0.728515625
+ ],
+ [
+ 0.479736328125,
+ 0.43603515625,
+ 0.70947265625,
+ 0.677734375,
+ 0.395263671875
+ ],
+ [
+ 0.87841796875,
+ 0.810546875,
+ 0.98486328125,
+ 0.395263671875,
+ 0.211669921875
+ ],
+ [
+ 0.2022705078125,
+ 0.64208984375,
+ 0.2003173828125,
+ 0.7392578125,
+ 0.94775390625
+ ],
+ [
+ 0.0273895263671875,
+ 0.87646484375,
+ 0.229248046875,
+ 0.5517578125,
+ 0.266845703125
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/data_layout/slice/slice_ERRORIF_WrongOutputList_10x5_f16_perm0/test.json b/operators/data_layout/slice/slice_ERRORIF_WrongOutputList_10x5_f16_perm0/test.json
new file mode 100644
index 000000000..df4dc742d
--- /dev/null
+++ b/operators/data_layout/slice/slice_ERRORIF_WrongOutputList_10x5_f16_perm0/test.json
@@ -0,0 +1,64 @@
+{
+ version: {
+ _major: 0,
+ _minor: 51,
+ _patch: 0,
+ _draft: true
+ },
+ regions: [
+ {
+ name: "main",
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "SLICE",
+ attribute_type: "SliceAttribute",
+ attribute: {
+ start: [
+ 1,
+ 0
+ ],
+ size: [
+ 5,
+ 3
+ ]
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 10,
+ 5
+ ],
+ type: "FP16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 5,
+ 3
+ ],
+ type: "FP16"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+ }
+ ]
+}