aboutsummaryrefslogtreecommitdiff
path: root/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_WrongInputList_32_i32
diff options
context:
space:
mode:
authorJeremy Johnson <jeremy.johnson@arm.com>2022-06-17 13:06:38 +0100
committerJeremy Johnson <jeremy.johnson@arm.com>2022-06-17 13:06:38 +0100
commit4f0cd453e02cf11dcb8b1dcb004cf4909cb2db1a (patch)
treec0615247657214838ae0e9e6e08cf59b45945421 /operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_WrongInputList_32_i32
parente6f2dc9772476e7be0c139ea01b25688325397c3 (diff)
downloadconformance_tests-4f0cd453e02cf11dcb8b1dcb004cf4909cb2db1a.tar.gz
Updating LOGICAL_LEFT_SHIFT tests for v0.30.0 release
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: I65a948370fd39f6af47c84317dd40fa4d3f4f5ce
Diffstat (limited to 'operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_WrongInputList_32_i32')
-rw-r--r--operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_WrongInputList_32_i32/desc.json20
-rw-r--r--operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_WrongInputList_32_i32/input-0.json37
-rw-r--r--operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_WrongInputList_32_i32/input-1.json6
-rw-r--r--operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_WrongInputList_32_i32/test.json55
4 files changed, 118 insertions, 0 deletions
diff --git a/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_WrongInputList_32_i32/desc.json b/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_WrongInputList_32_i32/desc.json
new file mode 100644
index 000000000..32d976811
--- /dev/null
+++ b/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_WrongInputList_32_i32/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": "Op input list does not match expected input"
+} \ No newline at end of file
diff --git a/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_WrongInputList_32_i32/input-0.json b/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_WrongInputList_32_i32/input-0.json
new file mode 100644
index 000000000..5511af3eb
--- /dev/null
+++ b/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_WrongInputList_32_i32/input-0.json
@@ -0,0 +1,37 @@
+{
+ "type": "int32",
+ "data": [
+ -1983098134,
+ 1957538415,
+ -2059642378,
+ 160857041,
+ 1378723547,
+ -1987088982,
+ -757005988,
+ -1788978383,
+ 234018676,
+ -850385353,
+ 227252745,
+ -441215394,
+ -1366523521,
+ -1648953887,
+ 997469417,
+ 1880025037,
+ -1391245361,
+ -1948816527,
+ -697404720,
+ -1633419168,
+ -1623516391,
+ -623388694,
+ 1178768468,
+ -1238182482,
+ 776182561,
+ -116395472,
+ 1754221912,
+ 1095392009,
+ -1824237020,
+ 159649930,
+ 1209012552,
+ -1190458481
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_WrongInputList_32_i32/input-1.json b/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_WrongInputList_32_i32/input-1.json
new file mode 100644
index 000000000..a76a8b1e4
--- /dev/null
+++ b/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_WrongInputList_32_i32/input-1.json
@@ -0,0 +1,6 @@
+{
+ "type": "int32",
+ "data": [
+ 4
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_WrongInputList_32_i32/test.json b/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_WrongInputList_32_i32/test.json
new file mode 100644
index 000000000..cba68508c
--- /dev/null
+++ b/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_WrongInputList_32_i32/test.json
@@ -0,0 +1,55 @@
+{
+ version: {
+ _major: 0,
+ _minor: 30,
+ _patch: 0,
+ _draft: false
+ },
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "LOGICAL_LEFT_SHIFT",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 32
+ ],
+ type: "INT32"
+ },
+ {
+ name: "input-1",
+ shape: [
+ 1
+ ],
+ type: "INT32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 32
+ ],
+ type: "INT32"
+ }
+ ],
+ inputs: [
+ "input-0",
+ "input-1"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}