aboutsummaryrefslogtreecommitdiff
path: root/operators/data_layout/slice/slice_20_f16_perm1
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_20_f16_perm1
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_20_f16_perm1')
-rw-r--r--operators/data_layout/slice/slice_20_f16_perm1/Conformance-result-0.json10
-rw-r--r--operators/data_layout/slice/slice_20_f16_perm1/desc.json24
-rw-r--r--operators/data_layout/slice/slice_20_f16_perm1/input-0.json25
-rw-r--r--operators/data_layout/slice/slice_20_f16_perm1/test.json60
4 files changed, 119 insertions, 0 deletions
diff --git a/operators/data_layout/slice/slice_20_f16_perm1/Conformance-result-0.json b/operators/data_layout/slice/slice_20_f16_perm1/Conformance-result-0.json
new file mode 100644
index 000000000..548420b9c
--- /dev/null
+++ b/operators/data_layout/slice/slice_20_f16_perm1/Conformance-result-0.json
@@ -0,0 +1,10 @@
+{
+ "type": "float16",
+ "data": [
+ -1.064453125,
+ -1.7666015625,
+ -0.87451171875,
+ -0.82568359375,
+ 0.6474609375
+ ]
+} \ No newline at end of file
diff --git a/operators/data_layout/slice/slice_20_f16_perm1/desc.json b/operators/data_layout/slice/slice_20_f16_perm1/desc.json
new file mode 100644
index 000000000..7b8f68902
--- /dev/null
+++ b/operators/data_layout/slice/slice_20_f16_perm1/desc.json
@@ -0,0 +1,24 @@
+{
+ "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": 0,
+ "expected_failure": false,
+ "expected_result_file": [
+ "Conformance-result-0.npy"
+ ],
+ "profile": [
+ "tosa-bi",
+ "tosa-mi"
+ ]
+} \ No newline at end of file
diff --git a/operators/data_layout/slice/slice_20_f16_perm1/input-0.json b/operators/data_layout/slice/slice_20_f16_perm1/input-0.json
new file mode 100644
index 000000000..4ab479dbc
--- /dev/null
+++ b/operators/data_layout/slice/slice_20_f16_perm1/input-0.json
@@ -0,0 +1,25 @@
+{
+ "type": "float16",
+ "data": [
+ 0.21435546875,
+ 0.23681640625,
+ -0.7841796875,
+ -1.876953125,
+ -0.253173828125,
+ -1.1416015625,
+ -0.365966796875,
+ 1.4140625,
+ -1.064453125,
+ -1.7666015625,
+ -0.87451171875,
+ -0.82568359375,
+ 0.6474609375,
+ 0.2281494140625,
+ 1.1357421875,
+ 0.6572265625,
+ -0.37451171875,
+ 1.255859375,
+ -1.33203125,
+ -1.9091796875
+ ]
+} \ No newline at end of file
diff --git a/operators/data_layout/slice/slice_20_f16_perm1/test.json b/operators/data_layout/slice/slice_20_f16_perm1/test.json
new file mode 100644
index 000000000..a4f1735d3
--- /dev/null
+++ b/operators/data_layout/slice/slice_20_f16_perm1/test.json
@@ -0,0 +1,60 @@
+{
+ version: {
+ _major: 0,
+ _minor: 51,
+ _patch: 0,
+ _draft: true
+ },
+ regions: [
+ {
+ name: "main",
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "SLICE",
+ attribute_type: "SliceAttribute",
+ attribute: {
+ start: [
+ 8
+ ],
+ size: [
+ 5
+ ]
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 20
+ ],
+ type: "FP16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 5
+ ],
+ type: "FP16"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+ }
+ ]
+}