From fa017a13f19b8f94f8f873f627f5eb2613d2e191 Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Fri, 17 Jun 2022 13:07:09 +0100 Subject: Updating REDUCE_SUM tests for v0.30.0 release Signed-off-by: Jeremy Johnson Change-Id: I86ab2dcba84953549f3ea932d92aa85812c15dbc --- .../desc.json | 18 ++++++++ .../input-0.json | 15 +++++++ .../test.json | 50 ++++++++++++++++++++++ 3 files changed, 83 insertions(+) create mode 100644 operators/reduction/reduce_sum/reduce_sum_ERRORIF_ShapeOfAxisNotOne_10_i32_axis0/desc.json create mode 100644 operators/reduction/reduce_sum/reduce_sum_ERRORIF_ShapeOfAxisNotOne_10_i32_axis0/input-0.json create mode 100644 operators/reduction/reduce_sum/reduce_sum_ERRORIF_ShapeOfAxisNotOne_10_i32_axis0/test.json (limited to 'operators/reduction/reduce_sum/reduce_sum_ERRORIF_ShapeOfAxisNotOne_10_i32_axis0') diff --git a/operators/reduction/reduce_sum/reduce_sum_ERRORIF_ShapeOfAxisNotOne_10_i32_axis0/desc.json b/operators/reduction/reduce_sum/reduce_sum_ERRORIF_ShapeOfAxisNotOne_10_i32_axis0/desc.json new file mode 100644 index 000000000..0d8c027cd --- /dev/null +++ b/operators/reduction/reduce_sum/reduce_sum_ERRORIF_ShapeOfAxisNotOne_10_i32_axis0/desc.json @@ -0,0 +1,18 @@ +{ + "tosa_file": "test.json", + "ifm_name": [ + "input-0" + ], + "ifm_file": [ + "input-0.npy" + ], + "ofm_name": [ + "result-0" + ], + "ofm_file": [ + "result-0.npy" + ], + "expected_return_code": 2, + "expected_failure": true, + "expected_failure_desc": "shape[axis] is not equal to 1" +} \ No newline at end of file diff --git a/operators/reduction/reduce_sum/reduce_sum_ERRORIF_ShapeOfAxisNotOne_10_i32_axis0/input-0.json b/operators/reduction/reduce_sum/reduce_sum_ERRORIF_ShapeOfAxisNotOne_10_i32_axis0/input-0.json new file mode 100644 index 000000000..97bf9295a --- /dev/null +++ b/operators/reduction/reduce_sum/reduce_sum_ERRORIF_ShapeOfAxisNotOne_10_i32_axis0/input-0.json @@ -0,0 +1,15 @@ +{ + "type": "int32", + "data": [ + -55071792, + 170672292, + -178982193, + 31963481, + 54061732, + 42096609, + -45363625, + 36160279, + -155559219, + 46376369 + ] +} \ No newline at end of file diff --git a/operators/reduction/reduce_sum/reduce_sum_ERRORIF_ShapeOfAxisNotOne_10_i32_axis0/test.json b/operators/reduction/reduce_sum/reduce_sum_ERRORIF_ShapeOfAxisNotOne_10_i32_axis0/test.json new file mode 100644 index 000000000..8b0011146 --- /dev/null +++ b/operators/reduction/reduce_sum/reduce_sum_ERRORIF_ShapeOfAxisNotOne_10_i32_axis0/test.json @@ -0,0 +1,50 @@ +{ + version: { + _major: 0, + _minor: 30, + _patch: 0, + _draft: false + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "REDUCE_SUM", + attribute_type: "AxisAttribute", + attribute: { + axis: 0 + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 10 + ], + type: "INT32" + }, + { + name: "result-0", + shape: [ + 10 + ], + type: "INT32" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} -- cgit v1.2.1