aboutsummaryrefslogtreecommitdiff
path: root/operators/ew_binary/logical_right_shift/logical_right_shift_ERRORIF_WrongInputType_24_i4
diff options
context:
space:
mode:
authorJeremy Johnson <jeremy.johnson@arm.com>2022-06-17 13:06:40 +0100
committerJeremy Johnson <jeremy.johnson@arm.com>2022-06-17 13:06:40 +0100
commit617dd99bd43d58af4dabeda02fe1c1fd359365fb (patch)
tree8e2ef225ffcebffa27a0f7c8fb649c5b11bf7ad2 /operators/ew_binary/logical_right_shift/logical_right_shift_ERRORIF_WrongInputType_24_i4
parentbceaa684e5249be84669ca1b1d8260236f0c1a6e (diff)
downloadconformance_tests-617dd99bd43d58af4dabeda02fe1c1fd359365fb.tar.gz
Updating LOGICAL_RIGHT_SHIFT tests for v0.30.0 release
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: Ibf67ce7a991887bb652f9696e97fade69336d153
Diffstat (limited to 'operators/ew_binary/logical_right_shift/logical_right_shift_ERRORIF_WrongInputType_24_i4')
-rw-r--r--operators/ew_binary/logical_right_shift/logical_right_shift_ERRORIF_WrongInputType_24_i4/desc.json20
-rw-r--r--operators/ew_binary/logical_right_shift/logical_right_shift_ERRORIF_WrongInputType_24_i4/input-0.json29
-rw-r--r--operators/ew_binary/logical_right_shift/logical_right_shift_ERRORIF_WrongInputType_24_i4/input-1.json6
-rw-r--r--operators/ew_binary/logical_right_shift/logical_right_shift_ERRORIF_WrongInputType_24_i4/test.json56
4 files changed, 111 insertions, 0 deletions
diff --git a/operators/ew_binary/logical_right_shift/logical_right_shift_ERRORIF_WrongInputType_24_i4/desc.json b/operators/ew_binary/logical_right_shift/logical_right_shift_ERRORIF_WrongInputType_24_i4/desc.json
new file mode 100644
index 000000000..3a3a4eb23
--- /dev/null
+++ b/operators/ew_binary/logical_right_shift/logical_right_shift_ERRORIF_WrongInputType_24_i4/desc.json
@@ -0,0 +1,20 @@
+{
+ "tosa_file": "test.json",
+ "ifm_name": [
+ "input-0",
+ "input-1"
+ ],
+ "ifm_file": [
+ "input-0.npy",
+ "input-1.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/ew_binary/logical_right_shift/logical_right_shift_ERRORIF_WrongInputType_24_i4/input-0.json b/operators/ew_binary/logical_right_shift/logical_right_shift_ERRORIF_WrongInputType_24_i4/input-0.json
new file mode 100644
index 000000000..254008796
--- /dev/null
+++ b/operators/ew_binary/logical_right_shift/logical_right_shift_ERRORIF_WrongInputType_24_i4/input-0.json
@@ -0,0 +1,29 @@
+{
+ "type": "int32",
+ "data": [
+ -7,
+ 6,
+ -2,
+ 3,
+ -3,
+ -3,
+ -4,
+ 1,
+ 3,
+ -7,
+ 2,
+ 5,
+ 0,
+ -3,
+ -4,
+ 5,
+ 2,
+ 5,
+ 0,
+ -1,
+ -3,
+ 5,
+ 4,
+ 0
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_binary/logical_right_shift/logical_right_shift_ERRORIF_WrongInputType_24_i4/input-1.json b/operators/ew_binary/logical_right_shift/logical_right_shift_ERRORIF_WrongInputType_24_i4/input-1.json
new file mode 100644
index 000000000..d99e4bb29
--- /dev/null
+++ b/operators/ew_binary/logical_right_shift/logical_right_shift_ERRORIF_WrongInputType_24_i4/input-1.json
@@ -0,0 +1,6 @@
+{
+ "type": "int32",
+ "data": [
+ 26
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_binary/logical_right_shift/logical_right_shift_ERRORIF_WrongInputType_24_i4/test.json b/operators/ew_binary/logical_right_shift/logical_right_shift_ERRORIF_WrongInputType_24_i4/test.json
new file mode 100644
index 000000000..ae539c5dd
--- /dev/null
+++ b/operators/ew_binary/logical_right_shift/logical_right_shift_ERRORIF_WrongInputType_24_i4/test.json
@@ -0,0 +1,56 @@
+{
+ version: {
+ _major: 0,
+ _minor: 30,
+ _patch: 0,
+ _draft: false
+ },
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "LOGICAL_RIGHT_SHIFT",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0",
+ "input-1"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 24
+ ],
+ type: "INT4"
+ },
+ {
+ name: "input-1",
+ shape: [
+ 1
+ ],
+ type: "INT4"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 24
+ ],
+ type: "INT4"
+ }
+ ],
+ inputs: [
+ "input-0",
+ "input-1"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}