From 4f0cd453e02cf11dcb8b1dcb004cf4909cb2db1a Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Fri, 17 Jun 2022 13:06:38 +0100 Subject: Updating LOGICAL_LEFT_SHIFT tests for v0.30.0 release Signed-off-by: Jeremy Johnson Change-Id: I65a948370fd39f6af47c84317dd40fa4d3f4f5ce --- .../desc.json | 20 + .../input-0.json | 18 + .../input-1.json | 473 +++++++++++++++++++++ .../test.json | 57 +++ 4 files changed, 568 insertions(+) create mode 100644 operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_RankMismatch_13_i32/desc.json create mode 100644 operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_RankMismatch_13_i32/input-0.json create mode 100644 operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_RankMismatch_13_i32/input-1.json create mode 100644 operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_RankMismatch_13_i32/test.json (limited to 'operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_RankMismatch_13_i32') diff --git a/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_RankMismatch_13_i32/desc.json b/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_RankMismatch_13_i32/desc.json new file mode 100644 index 000000000..632843f0a --- /dev/null +++ b/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_RankMismatch_13_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": "Input Rank does not match output rank" +} \ No newline at end of file diff --git a/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_RankMismatch_13_i32/input-0.json b/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_RankMismatch_13_i32/input-0.json new file mode 100644 index 000000000..bfb671052 --- /dev/null +++ b/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_RankMismatch_13_i32/input-0.json @@ -0,0 +1,18 @@ +{ + "type": "int32", + "data": [ + -435582873, + 1644190310, + -1803862866, + 423266136, + -2064313807, + -1356408350, + -2085634807, + -1768909636, + 2073277284, + -1955716798, + 1764354462, + -1969476572, + 275847940 + ] +} \ No newline at end of file diff --git a/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_RankMismatch_13_i32/input-1.json b/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_RankMismatch_13_i32/input-1.json new file mode 100644 index 000000000..2341edbbf --- /dev/null +++ b/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_RankMismatch_13_i32/input-1.json @@ -0,0 +1,473 @@ +{ + "type": "int32", + "data": [ + [ + 26, + 25, + 4, + 20, + 28, + 22, + 9, + 15, + 31, + 2, + 14, + 9, + 4, + 14, + 7, + 19, + 6, + 11, + 5, + 15, + 25, + 21, + 4, + 16, + 15, + 10, + 26, + 19, + 19, + 11, + 24, + 25, + 3, + 22 + ], + [ + 26, + 13, + 19, + 29, + 0, + 20, + 26, + 8, + 21, + 17, + 0, + 1, + 25, + 14, + 31, + 26, + 20, + 13, + 27, + 6, + 27, + 14, + 31, + 20, + 8, + 17, + 15, + 11, + 12, + 19, + 22, + 5, + 20, + 9 + ], + [ + 14, + 3, + 29, + 28, + 28, + 14, + 4, + 10, + 14, + 3, + 0, + 26, + 18, + 10, + 27, + 12, + 20, + 31, + 10, + 17, + 29, + 1, + 27, + 9, + 28, + 19, + 23, + 6, + 2, + 16, + 18, + 7, + 17, + 10 + ], + [ + 29, + 12, + 25, + 5, + 7, + 23, + 24, + 21, + 12, + 31, + 12, + 3, + 29, + 17, + 2, + 2, + 5, + 23, + 13, + 7, + 14, + 20, + 29, + 26, + 20, + 3, + 18, + 26, + 22, + 12, + 2, + 31, + 16, + 6 + ], + [ + 21, + 20, + 27, + 5, + 0, + 24, + 8, + 17, + 6, + 10, + 27, + 0, + 12, + 10, + 30, + 27, + 24, + 12, + 27, + 7, + 26, + 19, + 5, + 5, + 1, + 30, + 18, + 3, + 2, + 4, + 18, + 0, + 7, + 30 + ], + [ + 30, + 26, + 14, + 11, + 20, + 3, + 19, + 3, + 29, + 6, + 26, + 2, + 25, + 30, + 10, + 5, + 11, + 17, + 12, + 4, + 11, + 25, + 28, + 29, + 15, + 14, + 21, + 17, + 7, + 29, + 31, + 18, + 30, + 9 + ], + [ + 19, + 26, + 29, + 18, + 26, + 17, + 2, + 22, + 31, + 16, + 9, + 0, + 6, + 13, + 31, + 12, + 3, + 28, + 20, + 23, + 29, + 30, + 31, + 24, + 27, + 16, + 28, + 31, + 15, + 9, + 30, + 25, + 6, + 6 + ], + [ + 8, + 25, + 6, + 11, + 22, + 9, + 1, + 27, + 7, + 28, + 14, + 13, + 11, + 1, + 0, + 19, + 7, + 10, + 1, + 21, + 7, + 0, + 16, + 9, + 11, + 22, + 26, + 24, + 12, + 4, + 12, + 5, + 10, + 31 + ], + [ + 5, + 3, + 6, + 12, + 29, + 15, + 16, + 4, + 29, + 26, + 19, + 6, + 11, + 18, + 31, + 19, + 2, + 3, + 29, + 22, + 13, + 30, + 25, + 14, + 25, + 0, + 9, + 24, + 2, + 2, + 25, + 22, + 23, + 30 + ], + [ + 8, + 0, + 27, + 16, + 17, + 25, + 24, + 22, + 15, + 12, + 2, + 29, + 2, + 27, + 21, + 11, + 31, + 14, + 24, + 13, + 14, + 29, + 28, + 14, + 15, + 1, + 18, + 31, + 10, + 11, + 21, + 15, + 18, + 9 + ], + [ + 30, + 12, + 12, + 31, + 15, + 23, + 5, + 8, + 24, + 8, + 31, + 2, + 31, + 21, + 15, + 5, + 16, + 12, + 9, + 18, + 31, + 22, + 3, + 31, + 24, + 24, + 17, + 2, + 20, + 19, + 20, + 12, + 13, + 17 + ], + [ + 16, + 26, + 22, + 16, + 30, + 5, + 13, + 9, + 14, + 5, + 5, + 20, + 21, + 15, + 29, + 15, + 17, + 7, + 7, + 16, + 14, + 9, + 15, + 8, + 7, + 11, + 17, + 19, + 19, + 17, + 8, + 16, + 14, + 27 + ], + [ + 20, + 14, + 29, + 22, + 2, + 0, + 28, + 16, + 4, + 4, + 15, + 12, + 28, + 17, + 29, + 6, + 25, + 2, + 2, + 4, + 10, + 12, + 6, + 1, + 16, + 2, + 12, + 9, + 29, + 3, + 7, + 30, + 27, + 26 + ] + ] +} \ No newline at end of file diff --git a/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_RankMismatch_13_i32/test.json b/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_RankMismatch_13_i32/test.json new file mode 100644 index 000000000..adebe9a33 --- /dev/null +++ b/operators/ew_binary/logical_left_shift/logical_left_shift_ERRORIF_RankMismatch_13_i32/test.json @@ -0,0 +1,57 @@ +{ + version: { + _major: 0, + _minor: 30, + _patch: 0, + _draft: false + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "LOGICAL_LEFT_SHIFT", + attribute_type: "NONE", + 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" + ] + } + ] +} -- cgit v1.2.1