aboutsummaryrefslogtreecommitdiff
path: root/operators/data_layout/reshape/reshape_1x19_bf16_perm0_rank1_outdefined
diff options
context:
space:
mode:
authorJeremy Johnson <jeremy.johnson@arm.com>2023-05-22 11:42:56 +0100
committerJeremy Johnson <jeremy.johnson@arm.com>2023-05-22 11:42:56 +0100
commitfa4f26105f770ff21a26b31aa78067297e2312fa (patch)
treec26b1482d7fa44eed6df954b7899a7e8c67a595e /operators/data_layout/reshape/reshape_1x19_bf16_perm0_rank1_outdefined
parent7037332896b3151963a3e83f65acb40590c74199 (diff)
downloadconformance_tests-fa4f26105f770ff21a26b31aa78067297e2312fa.tar.gz
Update tests for one dimension of -1 in RESHAPE
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: Ia65988177fb6abece6dbaad5a0eb85e67741a67a
Diffstat (limited to 'operators/data_layout/reshape/reshape_1x19_bf16_perm0_rank1_outdefined')
-rw-r--r--operators/data_layout/reshape/reshape_1x19_bf16_perm0_rank1_outdefined/Conformance-result-0.json24
-rw-r--r--operators/data_layout/reshape/reshape_1x19_bf16_perm0_rank1_outdefined/desc.json23
-rw-r--r--operators/data_layout/reshape/reshape_1x19_bf16_perm0_rank1_outdefined/input-0.json26
-rw-r--r--operators/data_layout/reshape/reshape_1x19_bf16_perm0_rank1_outdefined/test.json58
4 files changed, 131 insertions, 0 deletions
diff --git a/operators/data_layout/reshape/reshape_1x19_bf16_perm0_rank1_outdefined/Conformance-result-0.json b/operators/data_layout/reshape/reshape_1x19_bf16_perm0_rank1_outdefined/Conformance-result-0.json
new file mode 100644
index 000000000..f01af1f2e
--- /dev/null
+++ b/operators/data_layout/reshape/reshape_1x19_bf16_perm0_rank1_outdefined/Conformance-result-0.json
@@ -0,0 +1,24 @@
+{
+ "type": "float32",
+ "data": [
+ -1.3515625,
+ 0.640625,
+ 1.015625,
+ -1.84375,
+ 0.21484375,
+ 0.302734375,
+ -0.78515625,
+ 1.5,
+ -1.34375,
+ -0.54296875,
+ 1.390625,
+ -1.234375,
+ 1.28125,
+ -1.6796875,
+ -0.04296875,
+ -1.6953125,
+ 0.7109375,
+ 1.15625,
+ 1.3984375
+ ]
+} \ No newline at end of file
diff --git a/operators/data_layout/reshape/reshape_1x19_bf16_perm0_rank1_outdefined/desc.json b/operators/data_layout/reshape/reshape_1x19_bf16_perm0_rank1_outdefined/desc.json
new file mode 100644
index 000000000..d418e4060
--- /dev/null
+++ b/operators/data_layout/reshape/reshape_1x19_bf16_perm0_rank1_outdefined/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/reshape/reshape_1x19_bf16_perm0_rank1_outdefined/input-0.json b/operators/data_layout/reshape/reshape_1x19_bf16_perm0_rank1_outdefined/input-0.json
new file mode 100644
index 000000000..eb37bfcde
--- /dev/null
+++ b/operators/data_layout/reshape/reshape_1x19_bf16_perm0_rank1_outdefined/input-0.json
@@ -0,0 +1,26 @@
+{
+ "type": "float32",
+ "data": [
+ [
+ -1.3515625,
+ 0.640625,
+ 1.015625,
+ -1.84375,
+ 0.21484375,
+ 0.302734375,
+ -0.78515625,
+ 1.5,
+ -1.34375,
+ -0.54296875,
+ 1.390625,
+ -1.234375,
+ 1.28125,
+ -1.6796875,
+ -0.04296875,
+ -1.6953125,
+ 0.7109375,
+ 1.15625,
+ 1.3984375
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/data_layout/reshape/reshape_1x19_bf16_perm0_rank1_outdefined/test.json b/operators/data_layout/reshape/reshape_1x19_bf16_perm0_rank1_outdefined/test.json
new file mode 100644
index 000000000..ac96c9e60
--- /dev/null
+++ b/operators/data_layout/reshape/reshape_1x19_bf16_perm0_rank1_outdefined/test.json
@@ -0,0 +1,58 @@
+{
+ version: {
+ _major: 0,
+ _minor: 70,
+ _patch: 0,
+ _draft: true
+ },
+ regions: [
+ {
+ name: "main",
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "RESHAPE",
+ attribute_type: "ReshapeAttribute",
+ attribute: {
+ new_shape: [
+ 19
+ ]
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 1,
+ 19
+ ],
+ type: "BF16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 19
+ ],
+ type: "BF16"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+ }
+ ]
+}