From 79f9874824b35262af8939dad547e2aab4436812 Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Fri, 17 Jun 2022 13:06:44 +0100 Subject: Updating MUL tests for v0.30.0 release Signed-off-by: Jeremy Johnson Change-Id: I04e942d9017bb45e04c8fe343f652fb7b6b21dd3 --- .../Conformance-result-0.json | 41 +++++++++++++++ .../mul/mul_36_i32_perm5_shift31/desc.json | 22 ++++++++ .../mul/mul_36_i32_perm5_shift31/input-0.json | 41 +++++++++++++++ .../mul/mul_36_i32_perm5_shift31/input-1.json | 6 +++ .../mul/mul_36_i32_perm5_shift31/test.json | 59 ++++++++++++++++++++++ 5 files changed, 169 insertions(+) create mode 100644 operators/ew_binary/mul/mul_36_i32_perm5_shift31/Conformance-result-0.json create mode 100644 operators/ew_binary/mul/mul_36_i32_perm5_shift31/desc.json create mode 100644 operators/ew_binary/mul/mul_36_i32_perm5_shift31/input-0.json create mode 100644 operators/ew_binary/mul/mul_36_i32_perm5_shift31/input-1.json create mode 100644 operators/ew_binary/mul/mul_36_i32_perm5_shift31/test.json (limited to 'operators/ew_binary/mul/mul_36_i32_perm5_shift31') diff --git a/operators/ew_binary/mul/mul_36_i32_perm5_shift31/Conformance-result-0.json b/operators/ew_binary/mul/mul_36_i32_perm5_shift31/Conformance-result-0.json new file mode 100644 index 000000000..e74c1a3bc --- /dev/null +++ b/operators/ew_binary/mul/mul_36_i32_perm5_shift31/Conformance-result-0.json @@ -0,0 +1,41 @@ +{ + "type": "int32", + "data": [ + -45064983, + -158693647, + -72578748, + -80905216, + -66028729, + -158420419, + -135733982, + 207509494, + -185141310, + -20480244, + 100457220, + -8076066, + -265163743, + -203037524, + -189481537, + 21123359, + -161339872, + 65248775, + -105708957, + -79247171, + 142069935, + 132607393, + 249198493, + 204547617, + 37692826, + 12561783, + 190151997, + 47192090, + -59154344, + 151852816, + 91852734, + 75229781, + -2869711, + 75865379, + -134542495, + 97951907 + ] +} \ No newline at end of file diff --git a/operators/ew_binary/mul/mul_36_i32_perm5_shift31/desc.json b/operators/ew_binary/mul/mul_36_i32_perm5_shift31/desc.json new file mode 100644 index 000000000..be172ba86 --- /dev/null +++ b/operators/ew_binary/mul/mul_36_i32_perm5_shift31/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/mul/mul_36_i32_perm5_shift31/input-0.json b/operators/ew_binary/mul/mul_36_i32_perm5_shift31/input-0.json new file mode 100644 index 000000000..2a26f94bd --- /dev/null +++ b/operators/ew_binary/mul/mul_36_i32_perm5_shift31/input-0.json @@ -0,0 +1,41 @@ +{ + "type": "int32", + "data": [ + 340868162, + 1200346896, + 548980227, + 611961009, + 499436374, + 1198280217, + 1026681700, + -1569586315, + 1400395044, + 154911033, + -759850910, + 61086761, + 2005678744, + 1535760663, + 1433224190, + -159775510, + 1220362742, + -493536858, + 799574652, + 599419684, + -1074606380, + -1003032415, + -1884918790, + -1547182895, + -285105718, + -95016386, + -1438295504, + -356957445, + 447439037, + -1148603361, + -694767219, + -569032444, + 21706282, + -573840060, + 1017669385, + -740900911 + ] +} \ No newline at end of file diff --git a/operators/ew_binary/mul/mul_36_i32_perm5_shift31/input-1.json b/operators/ew_binary/mul/mul_36_i32_perm5_shift31/input-1.json new file mode 100644 index 000000000..acb443df3 --- /dev/null +++ b/operators/ew_binary/mul/mul_36_i32_perm5_shift31/input-1.json @@ -0,0 +1,6 @@ +{ + "type": "int32", + "data": [ + -283911271 + ] +} \ No newline at end of file diff --git a/operators/ew_binary/mul/mul_36_i32_perm5_shift31/test.json b/operators/ew_binary/mul/mul_36_i32_perm5_shift31/test.json new file mode 100644 index 000000000..84600406f --- /dev/null +++ b/operators/ew_binary/mul/mul_36_i32_perm5_shift31/test.json @@ -0,0 +1,59 @@ +{ + version: { + _major: 0, + _minor: 30, + _patch: 0, + _draft: false + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "MUL", + attribute_type: "MulAttribute", + attribute: { + shift: 31 + }, + 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