aboutsummaryrefslogtreecommitdiff
path: root/operators/data_layout/reshape/reshape_ERRORIF_WrongInputType_13x5_i4_perm2_rank1
diff options
context:
space:
mode:
authorJeremy Johnson <jeremy.johnson@arm.com>2022-06-17 13:06:22 +0100
committerJeremy Johnson <jeremy.johnson@arm.com>2022-06-17 13:06:22 +0100
commit49986ff81f505448e2b119535a671c3ba92a72c6 (patch)
treeb09ced1df3ddfd594700ffe9d868d790976d1e6d /operators/data_layout/reshape/reshape_ERRORIF_WrongInputType_13x5_i4_perm2_rank1
parent5dae754706e716e805a25d94a93c62fe89b28d1d (diff)
downloadconformance_tests-49986ff81f505448e2b119535a671c3ba92a72c6.tar.gz
Updating RESHAPE tests for v0.30.0 release
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: I5a5366c30ff35fb375ce9b2a2efafe0871600b58
Diffstat (limited to 'operators/data_layout/reshape/reshape_ERRORIF_WrongInputType_13x5_i4_perm2_rank1')
-rw-r--r--operators/data_layout/reshape/reshape_ERRORIF_WrongInputType_13x5_i4_perm2_rank1/desc.json18
-rw-r--r--operators/data_layout/reshape/reshape_ERRORIF_WrongInputType_13x5_i4_perm2_rank1/input-0.json96
-rw-r--r--operators/data_layout/reshape/reshape_ERRORIF_WrongInputType_13x5_i4_perm2_rank1/test.json53
3 files changed, 167 insertions, 0 deletions
diff --git a/operators/data_layout/reshape/reshape_ERRORIF_WrongInputType_13x5_i4_perm2_rank1/desc.json b/operators/data_layout/reshape/reshape_ERRORIF_WrongInputType_13x5_i4_perm2_rank1/desc.json
new file mode 100644
index 000000000..453da2758
--- /dev/null
+++ b/operators/data_layout/reshape/reshape_ERRORIF_WrongInputType_13x5_i4_perm2_rank1/desc.json
@@ -0,0 +1,18 @@
+{
+ "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": "Input data type not supported for this operator"
+} \ No newline at end of file
diff --git a/operators/data_layout/reshape/reshape_ERRORIF_WrongInputType_13x5_i4_perm2_rank1/input-0.json b/operators/data_layout/reshape/reshape_ERRORIF_WrongInputType_13x5_i4_perm2_rank1/input-0.json
new file mode 100644
index 000000000..470effba8
--- /dev/null
+++ b/operators/data_layout/reshape/reshape_ERRORIF_WrongInputType_13x5_i4_perm2_rank1/input-0.json
@@ -0,0 +1,96 @@
+{
+ "type": "int32",
+ "data": [
+ [
+ 2,
+ 0,
+ -6,
+ -7,
+ 5
+ ],
+ [
+ -7,
+ -7,
+ 4,
+ -6,
+ 1
+ ],
+ [
+ -7,
+ -6,
+ 5,
+ -3,
+ 2
+ ],
+ [
+ 4,
+ 7,
+ 1,
+ -2,
+ 3
+ ],
+ [
+ -5,
+ -1,
+ 3,
+ 1,
+ 2
+ ],
+ [
+ -5,
+ -4,
+ -1,
+ 4,
+ 7
+ ],
+ [
+ 3,
+ 3,
+ 0,
+ 6,
+ -1
+ ],
+ [
+ 6,
+ -7,
+ 0,
+ -1,
+ -1
+ ],
+ [
+ 5,
+ 1,
+ 1,
+ -6,
+ 0
+ ],
+ [
+ 2,
+ -4,
+ -4,
+ 3,
+ -2
+ ],
+ [
+ -4,
+ -6,
+ 7,
+ -5,
+ -7
+ ],
+ [
+ 0,
+ -1,
+ 3,
+ 4,
+ 4
+ ],
+ [
+ -4,
+ 6,
+ -3,
+ -5,
+ 6
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/data_layout/reshape/reshape_ERRORIF_WrongInputType_13x5_i4_perm2_rank1/test.json b/operators/data_layout/reshape/reshape_ERRORIF_WrongInputType_13x5_i4_perm2_rank1/test.json
new file mode 100644
index 000000000..3980424b9
--- /dev/null
+++ b/operators/data_layout/reshape/reshape_ERRORIF_WrongInputType_13x5_i4_perm2_rank1/test.json
@@ -0,0 +1,53 @@
+{
+ version: {
+ _major: 0,
+ _minor: 30,
+ _patch: 0,
+ _draft: false
+ },
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "RESHAPE",
+ attribute_type: "ReshapeAttribute",
+ attribute: {
+ new_shape: [
+ 65
+ ]
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 13,
+ 5
+ ],
+ type: "INT4"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 65
+ ],
+ type: "INT4"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}