aboutsummaryrefslogtreecommitdiff
path: root/operators/data_layout/reverse/reverse_ERRORIF_WrongInputType_10_i4_axis0
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/reverse/reverse_ERRORIF_WrongInputType_10_i4_axis0
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/reverse/reverse_ERRORIF_WrongInputType_10_i4_axis0')
-rw-r--r--operators/data_layout/reverse/reverse_ERRORIF_WrongInputType_10_i4_axis0/desc.json21
-rw-r--r--operators/data_layout/reverse/reverse_ERRORIF_WrongInputType_10_i4_axis0/input-0.json15
-rw-r--r--operators/data_layout/reverse/reverse_ERRORIF_WrongInputType_10_i4_axis0/test.json50
3 files changed, 86 insertions, 0 deletions
diff --git a/operators/data_layout/reverse/reverse_ERRORIF_WrongInputType_10_i4_axis0/desc.json b/operators/data_layout/reverse/reverse_ERRORIF_WrongInputType_10_i4_axis0/desc.json
new file mode 100644
index 000000000..15cad4b15
--- /dev/null
+++ b/operators/data_layout/reverse/reverse_ERRORIF_WrongInputType_10_i4_axis0/desc.json
@@ -0,0 +1,21 @@
+{
+ "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",
+ "profile": [
+ "tosa-mi"
+ ]
+} \ No newline at end of file
diff --git a/operators/data_layout/reverse/reverse_ERRORIF_WrongInputType_10_i4_axis0/input-0.json b/operators/data_layout/reverse/reverse_ERRORIF_WrongInputType_10_i4_axis0/input-0.json
new file mode 100644
index 000000000..8b56e819c
--- /dev/null
+++ b/operators/data_layout/reverse/reverse_ERRORIF_WrongInputType_10_i4_axis0/input-0.json
@@ -0,0 +1,15 @@
+{
+ "type": "int32",
+ "data": [
+ -3,
+ -6,
+ -4,
+ -4,
+ -7,
+ 3,
+ -2,
+ 1,
+ 1,
+ 4
+ ]
+} \ No newline at end of file
diff --git a/operators/data_layout/reverse/reverse_ERRORIF_WrongInputType_10_i4_axis0/test.json b/operators/data_layout/reverse/reverse_ERRORIF_WrongInputType_10_i4_axis0/test.json
new file mode 100644
index 000000000..bd59a1368
--- /dev/null
+++ b/operators/data_layout/reverse/reverse_ERRORIF_WrongInputType_10_i4_axis0/test.json
@@ -0,0 +1,50 @@
+{
+ version: {
+ _major: 0,
+ _minor: 41,
+ _patch: 0,
+ _draft: true
+ },
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "REVERSE",
+ attribute_type: "AxisAttribute",
+ attribute: {
+ axis: 0
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 10
+ ],
+ type: "INT4"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 10
+ ],
+ type: "INT4"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}