aboutsummaryrefslogtreecommitdiff
path: root/operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_ERRORIF_RankMismatch_13_i32_roundFalse
diff options
context:
space:
mode:
Diffstat (limited to 'operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_ERRORIF_RankMismatch_13_i32_roundFalse')
-rw-r--r--operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_ERRORIF_RankMismatch_13_i32_roundFalse/desc.json20
-rw-r--r--operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_ERRORIF_RankMismatch_13_i32_roundFalse/input-0.json18
-rw-r--r--operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_ERRORIF_RankMismatch_13_i32_roundFalse/input-1.json473
-rw-r--r--operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_ERRORIF_RankMismatch_13_i32_roundFalse/test.json60
4 files changed, 571 insertions, 0 deletions
diff --git a/operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_ERRORIF_RankMismatch_13_i32_roundFalse/desc.json b/operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_ERRORIF_RankMismatch_13_i32_roundFalse/desc.json
new file mode 100644
index 000000000..632843f0a
--- /dev/null
+++ b/operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_ERRORIF_RankMismatch_13_i32_roundFalse/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 Rank does not match output rank"
+} \ No newline at end of file
diff --git a/operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_ERRORIF_RankMismatch_13_i32_roundFalse/input-0.json b/operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_ERRORIF_RankMismatch_13_i32_roundFalse/input-0.json
new file mode 100644
index 000000000..1a3b7d5f6
--- /dev/null
+++ b/operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_ERRORIF_RankMismatch_13_i32_roundFalse/input-0.json
@@ -0,0 +1,18 @@
+{
+ "type": "int32",
+ "data": [
+ -2138741213,
+ 955349793,
+ -1056236274,
+ 551223035,
+ -2061382430,
+ -956974812,
+ -982822691,
+ -1701456261,
+ 288192200,
+ -1530387250,
+ -331837095,
+ -1382950363,
+ -875771341
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_ERRORIF_RankMismatch_13_i32_roundFalse/input-1.json b/operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_ERRORIF_RankMismatch_13_i32_roundFalse/input-1.json
new file mode 100644
index 000000000..8525d03c5
--- /dev/null
+++ b/operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_ERRORIF_RankMismatch_13_i32_roundFalse/input-1.json
@@ -0,0 +1,473 @@
+{
+ "type": "int32",
+ "data": [
+ [
+ 8,
+ 30,
+ 11,
+ 22,
+ 30,
+ 19,
+ 14,
+ 13,
+ 21,
+ 7,
+ 16,
+ 6,
+ 26,
+ 6,
+ 9,
+ 20,
+ 5,
+ 15,
+ 17,
+ 4,
+ 4,
+ 11,
+ 22,
+ 30,
+ 12,
+ 20,
+ 29,
+ 30,
+ 20,
+ 6,
+ 23,
+ 26,
+ 12,
+ 17
+ ],
+ [
+ 5,
+ 26,
+ 19,
+ 4,
+ 2,
+ 8,
+ 3,
+ 31,
+ 28,
+ 7,
+ 13,
+ 11,
+ 20,
+ 18,
+ 18,
+ 30,
+ 15,
+ 16,
+ 25,
+ 28,
+ 26,
+ 14,
+ 31,
+ 10,
+ 29,
+ 0,
+ 24,
+ 5,
+ 24,
+ 17,
+ 24,
+ 21,
+ 9,
+ 6
+ ],
+ [
+ 16,
+ 5,
+ 9,
+ 21,
+ 29,
+ 26,
+ 31,
+ 29,
+ 27,
+ 11,
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 18
+ ],
+ [
+ 7,
+ 29,
+ 13,
+ 6,
+ 25,
+ 20,
+ 26,
+ 1,
+ 25,
+ 15,
+ 26,
+ 7,
+ 31,
+ 26,
+ 28,
+ 16,
+ 16,
+ 14,
+ 17,
+ 6,
+ 6,
+ 19,
+ 11,
+ 29,
+ 5,
+ 29,
+ 31,
+ 14,
+ 21,
+ 8,
+ 16,
+ 14,
+ 2,
+ 11
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_ERRORIF_RankMismatch_13_i32_roundFalse/test.json b/operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_ERRORIF_RankMismatch_13_i32_roundFalse/test.json
new file mode 100644
index 000000000..1b5640d58
--- /dev/null
+++ b/operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_ERRORIF_RankMismatch_13_i32_roundFalse/test.json
@@ -0,0 +1,60 @@
+{
+ version: {
+ _major: 0,
+ _minor: 30,
+ _patch: 0,
+ _draft: false
+ },
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "ARITHMETIC_RIGHT_SHIFT",
+ attribute_type: "ArithmeticRightShiftAttribute",
+ attribute: {
+ round: false
+ },
+ inputs: [
+ "input-0",
+ "input-1"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 13
+ ],
+ type: "INT32"
+ },
+ {
+ name: "input-1",
+ shape: [
+ 13,
+ 34
+ ],
+ type: "INT32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 13
+ ],
+ type: "INT32"
+ }
+ ],
+ inputs: [
+ "input-0",
+ "input-1"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}