aboutsummaryrefslogtreecommitdiff
path: root/operators/data_layout/pad/pad_6_f16_pad01
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/pad/pad_6_f16_pad01
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/pad/pad_6_f16_pad01')
-rw-r--r--operators/data_layout/pad/pad_6_f16_pad01/Conformance-result-0.json12
-rw-r--r--operators/data_layout/pad/pad_6_f16_pad01/desc.json23
-rw-r--r--operators/data_layout/pad/pad_6_f16_pad01/input-0.json11
-rw-r--r--operators/data_layout/pad/pad_6_f16_pad01/test.json55
4 files changed, 101 insertions, 0 deletions
diff --git a/operators/data_layout/pad/pad_6_f16_pad01/Conformance-result-0.json b/operators/data_layout/pad/pad_6_f16_pad01/Conformance-result-0.json
new file mode 100644
index 000000000..870847a43
--- /dev/null
+++ b/operators/data_layout/pad/pad_6_f16_pad01/Conformance-result-0.json
@@ -0,0 +1,12 @@
+{
+ "type": "float16",
+ "data": [
+ 1.11328125,
+ -1.2216796875,
+ -0.133056640625,
+ -1.8251953125,
+ -1.3828125,
+ 0.732421875,
+ -0.2445068359375
+ ]
+} \ No newline at end of file
diff --git a/operators/data_layout/pad/pad_6_f16_pad01/desc.json b/operators/data_layout/pad/pad_6_f16_pad01/desc.json
new file mode 100644
index 000000000..d418e4060
--- /dev/null
+++ b/operators/data_layout/pad/pad_6_f16_pad01/desc.json
@@ -0,0 +1,23 @@
+{
+ "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-mi"
+ ]
+} \ No newline at end of file
diff --git a/operators/data_layout/pad/pad_6_f16_pad01/input-0.json b/operators/data_layout/pad/pad_6_f16_pad01/input-0.json
new file mode 100644
index 000000000..94cd5a5a1
--- /dev/null
+++ b/operators/data_layout/pad/pad_6_f16_pad01/input-0.json
@@ -0,0 +1,11 @@
+{
+ "type": "float16",
+ "data": [
+ 1.11328125,
+ -1.2216796875,
+ -0.133056640625,
+ -1.8251953125,
+ -1.3828125,
+ 0.732421875
+ ]
+} \ No newline at end of file
diff --git a/operators/data_layout/pad/pad_6_f16_pad01/test.json b/operators/data_layout/pad/pad_6_f16_pad01/test.json
new file mode 100644
index 000000000..c73faebc5
--- /dev/null
+++ b/operators/data_layout/pad/pad_6_f16_pad01/test.json
@@ -0,0 +1,55 @@
+{
+ version: {
+ _major: 0,
+ _minor: 41,
+ _patch: 0,
+ _draft: true
+ },
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "PAD",
+ attribute_type: "PadAttribute",
+ attribute: {
+ padding: [
+ 0,
+ 1
+ ],
+ pad_const_int: 0,
+ pad_const_fp: -0.244507
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 6
+ ],
+ type: "FP16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 7
+ ],
+ type: "FP16"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}