From ae5fcadbf03f8b5779065b22039f952f813dfc0e Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Fri, 17 Jun 2022 13:07:07 +0100 Subject: Updating REDUCE_MIN tests for v0.30.0 release Signed-off-by: Jeremy Johnson Change-Id: I106585a7a6a8dea1c9cdcb923804d1ad60d06a1b --- .../desc.json | 18 ++++ .../input-0.json | 109 +++++++++++++++++++++ .../test.json | 52 ++++++++++ 3 files changed, 179 insertions(+) create mode 100644 operators/reduction/reduce_min/reduce_min_ERRORIF_AxisLargerRank_13x6_i8_axis7/desc.json create mode 100644 operators/reduction/reduce_min/reduce_min_ERRORIF_AxisLargerRank_13x6_i8_axis7/input-0.json create mode 100644 operators/reduction/reduce_min/reduce_min_ERRORIF_AxisLargerRank_13x6_i8_axis7/test.json (limited to 'operators/reduction/reduce_min/reduce_min_ERRORIF_AxisLargerRank_13x6_i8_axis7') diff --git a/operators/reduction/reduce_min/reduce_min_ERRORIF_AxisLargerRank_13x6_i8_axis7/desc.json b/operators/reduction/reduce_min/reduce_min_ERRORIF_AxisLargerRank_13x6_i8_axis7/desc.json new file mode 100644 index 000000000..927be76a5 --- /dev/null +++ b/operators/reduction/reduce_min/reduce_min_ERRORIF_AxisLargerRank_13x6_i8_axis7/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": "Axis larger than rank" +} \ No newline at end of file diff --git a/operators/reduction/reduce_min/reduce_min_ERRORIF_AxisLargerRank_13x6_i8_axis7/input-0.json b/operators/reduction/reduce_min/reduce_min_ERRORIF_AxisLargerRank_13x6_i8_axis7/input-0.json new file mode 100644 index 000000000..99594e2a1 --- /dev/null +++ b/operators/reduction/reduce_min/reduce_min_ERRORIF_AxisLargerRank_13x6_i8_axis7/input-0.json @@ -0,0 +1,109 @@ +{ + "type": "int32", + "data": [ + [ + 127, + 71, + -46, + 120, + -1, + 0 + ], + [ + -17, + -92, + 111, + -125, + -84, + -70 + ], + [ + -57, + -95, + -124, + 45, + 120, + -97 + ], + [ + -53, + 1, + 109, + 49, + 68, + 20 + ], + [ + -22, + -77, + 93, + 77, + -122, + 55 + ], + [ + -107, + 61, + 83, + -95, + -17, + -97 + ], + [ + 17, + 109, + -108, + -27, + 121, + -51 + ], + [ + -95, + -3, + 2, + 41, + -48, + 116 + ], + [ + 5, + -55, + 117, + 108, + -1, + -122 + ], + [ + 24, + 14, + -91, + 34, + 87, + -101 + ], + [ + 57, + -93, + 63, + -21, + -127, + 119 + ], + [ + -86, + 24, + -82, + 110, + 61, + 77 + ], + [ + -18, + -9, + 34, + 72, + 88, + -124 + ] + ] +} \ No newline at end of file diff --git a/operators/reduction/reduce_min/reduce_min_ERRORIF_AxisLargerRank_13x6_i8_axis7/test.json b/operators/reduction/reduce_min/reduce_min_ERRORIF_AxisLargerRank_13x6_i8_axis7/test.json new file mode 100644 index 000000000..1427ae281 --- /dev/null +++ b/operators/reduction/reduce_min/reduce_min_ERRORIF_AxisLargerRank_13x6_i8_axis7/test.json @@ -0,0 +1,52 @@ +{ + version: { + _major: 0, + _minor: 30, + _patch: 0, + _draft: false + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "REDUCE_MIN", + attribute_type: "AxisAttribute", + attribute: { + axis: 7 + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 13, + 6 + ], + type: "INT8" + }, + { + name: "result-0", + shape: [ + 13, + 6 + ], + type: "INT8" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} -- cgit v1.2.1