aboutsummaryrefslogtreecommitdiff
path: root/operators/data_layout/slice/slice_57_bf16_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_57_bf16_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_57_bf16_perm0')
-rw-r--r--operators/data_layout/slice/slice_57_bf16_perm0/Conformance-result-0.json41
-rw-r--r--operators/data_layout/slice/slice_57_bf16_perm0/desc.json24
-rw-r--r--operators/data_layout/slice/slice_57_bf16_perm0/input-0.json62
-rw-r--r--operators/data_layout/slice/slice_57_bf16_perm0/test.json60
4 files changed, 187 insertions, 0 deletions
diff --git a/operators/data_layout/slice/slice_57_bf16_perm0/Conformance-result-0.json b/operators/data_layout/slice/slice_57_bf16_perm0/Conformance-result-0.json
new file mode 100644
index 000000000..eb8cf02ce
--- /dev/null
+++ b/operators/data_layout/slice/slice_57_bf16_perm0/Conformance-result-0.json
@@ -0,0 +1,41 @@
+{
+ "type": "float32",
+ "data": [
+ 0.004150390625,
+ -1.390625,
+ 0.78515625,
+ -0.21484375,
+ -0.474609375,
+ -0.79296875,
+ 0.51953125,
+ -0.55078125,
+ -1.6484375,
+ -1.5234375,
+ 1.84375,
+ 1.6328125,
+ 0.796875,
+ -0.93359375,
+ 1.875,
+ 1.109375,
+ 0.8671875,
+ -0.2021484375,
+ -0.91015625,
+ -1.609375,
+ 1.609375,
+ -0.1767578125,
+ -1.1875,
+ -0.7734375,
+ 0.31640625,
+ -1.2890625,
+ 1.421875,
+ 1.03125,
+ 0.875,
+ -0.271484375,
+ 0.5078125,
+ 0.3359375,
+ 0.59765625,
+ -1.65625,
+ -0.3359375,
+ -1.828125
+ ]
+} \ No newline at end of file
diff --git a/operators/data_layout/slice/slice_57_bf16_perm0/desc.json b/operators/data_layout/slice/slice_57_bf16_perm0/desc.json
new file mode 100644
index 000000000..7b8f68902
--- /dev/null
+++ b/operators/data_layout/slice/slice_57_bf16_perm0/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_57_bf16_perm0/input-0.json b/operators/data_layout/slice/slice_57_bf16_perm0/input-0.json
new file mode 100644
index 000000000..061dbd811
--- /dev/null
+++ b/operators/data_layout/slice/slice_57_bf16_perm0/input-0.json
@@ -0,0 +1,62 @@
+{
+ "type": "float32",
+ "data": [
+ -1.6328125,
+ 0.88671875,
+ -0.15234375,
+ -1.3515625,
+ 0.004150390625,
+ -1.390625,
+ 0.78515625,
+ -0.21484375,
+ -0.474609375,
+ -0.79296875,
+ 0.51953125,
+ -0.55078125,
+ -1.6484375,
+ -1.5234375,
+ 1.84375,
+ 1.6328125,
+ 0.796875,
+ -0.93359375,
+ 1.875,
+ 1.109375,
+ 0.8671875,
+ -0.2021484375,
+ -0.91015625,
+ -1.609375,
+ 1.609375,
+ -0.1767578125,
+ -1.1875,
+ -0.7734375,
+ 0.31640625,
+ -1.2890625,
+ 1.421875,
+ 1.03125,
+ 0.875,
+ -0.271484375,
+ 0.5078125,
+ 0.3359375,
+ 0.59765625,
+ -1.65625,
+ -0.3359375,
+ -1.828125,
+ -0.02392578125,
+ -0.6796875,
+ -1.421875,
+ -1.5859375,
+ 0.349609375,
+ -1.3125,
+ 1.6953125,
+ 0.32421875,
+ -0.609375,
+ 0.36328125,
+ -1.90625,
+ 1.828125,
+ -0.0703125,
+ 1.125,
+ -1.6640625,
+ -0.05322265625,
+ -0.037109375
+ ]
+} \ No newline at end of file
diff --git a/operators/data_layout/slice/slice_57_bf16_perm0/test.json b/operators/data_layout/slice/slice_57_bf16_perm0/test.json
new file mode 100644
index 000000000..311e7ed14
--- /dev/null
+++ b/operators/data_layout/slice/slice_57_bf16_perm0/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: [
+ 4
+ ],
+ size: [
+ 36
+ ]
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 57
+ ],
+ type: "BF16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 36
+ ],
+ type: "BF16"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+ }
+ ]
+}