From 7a972150d7bfd82a775fd1db6b70a8644e285836 Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Fri, 17 Jun 2022 13:06:32 +0100 Subject: Updating ARITHMETIC_RIGHT_SHIFT tests for v0.30.0 release Signed-off-by: Jeremy Johnson Change-Id: I04d4bb6669b1967fef686cf67549bb08344c2570 --- .../Conformance-result-0.json | 41 +++++++++++++++ .../desc.json | 22 ++++++++ .../input-0.json | 41 +++++++++++++++ .../input-1.json | 6 +++ .../test.json | 59 ++++++++++++++++++++++ 5 files changed, 169 insertions(+) create mode 100644 operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_36_i32_roundFalse/Conformance-result-0.json create mode 100644 operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_36_i32_roundFalse/desc.json create mode 100644 operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_36_i32_roundFalse/input-0.json create mode 100644 operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_36_i32_roundFalse/input-1.json create mode 100644 operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_36_i32_roundFalse/test.json (limited to 'operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_36_i32_roundFalse') diff --git a/operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_36_i32_roundFalse/Conformance-result-0.json b/operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_36_i32_roundFalse/Conformance-result-0.json new file mode 100644 index 000000000..45b2c2a56 --- /dev/null +++ b/operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_36_i32_roundFalse/Conformance-result-0.json @@ -0,0 +1,41 @@ +{ + "type": "int32", + "data": [ + -969, + 1141, + -979, + 888, + 1183, + -208, + 970, + -933, + -1724, + -1654, + -217, + 1649, + -1526, + -182, + 835, + -1220, + 907, + -795, + 1264, + 324, + 192, + -1324, + -151, + 1460, + -1969, + 1058, + -30, + 898, + 668, + -279, + -784, + 521, + -1474, + 344, + -1661, + 613 + ] +} \ No newline at end of file diff --git a/operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_36_i32_roundFalse/desc.json b/operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_36_i32_roundFalse/desc.json new file mode 100644 index 000000000..be172ba86 --- /dev/null +++ b/operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_36_i32_roundFalse/desc.json @@ -0,0 +1,22 @@ +{ + "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": 0, + "expected_failure": false, + "expected_result_file": [ + "Conformance-result-0.npy" + ] +} \ No newline at end of file diff --git a/operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_36_i32_roundFalse/input-0.json b/operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_36_i32_roundFalse/input-0.json new file mode 100644 index 000000000..d2fa719fa --- /dev/null +++ b/operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_36_i32_roundFalse/input-0.json @@ -0,0 +1,41 @@ +{ + "type": "int32", + "data": [ + -1015652990, + 1197226016, + -1025895884, + 931536269, + 1241273733, + -217490693, + 1017561928, + -978215044, + -1807092397, + -1733487618, + -227531392, + 1729164126, + -1599545251, + -189939389, + 876311027, + -1278339615, + 951835184, + -833409954, + 1325687812, + 340245457, + 201465201, + -1388250327, + -158029417, + 1531646687, + -2063628741, + 1110332926, + -31085291, + 942586218, + 701359625, + -291658174, + -821768116, + 546787307, + -1545224993, + 361198026, + -1740773041, + 643586253 + ] +} \ No newline at end of file diff --git a/operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_36_i32_roundFalse/input-1.json b/operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_36_i32_roundFalse/input-1.json new file mode 100644 index 000000000..458d6e6f5 --- /dev/null +++ b/operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_36_i32_roundFalse/input-1.json @@ -0,0 +1,6 @@ +{ + "type": "int32", + "data": [ + 20 + ] +} \ No newline at end of file diff --git a/operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_36_i32_roundFalse/test.json b/operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_36_i32_roundFalse/test.json new file mode 100644 index 000000000..61787d745 --- /dev/null +++ b/operators/ew_binary/arithmetic_right_shift/arithmetic_right_shift_36_i32_roundFalse/test.json @@ -0,0 +1,59 @@ +{ + 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: [ + 36 + ], + type: "INT32" + }, + { + name: "input-1", + shape: [ + 1 + ], + type: "INT32" + }, + { + name: "result-0", + shape: [ + 36 + ], + type: "INT32" + } + ], + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ] +} -- cgit v1.2.1