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 --- .../Conformance-result-0.json | 65 +++++++++++++++++ .../reduce_min/reduce_min_20x2_i16_axis1/desc.json | 20 +++++ .../reduce_min_20x2_i16_axis1/input-0.json | 85 ++++++++++++++++++++++ .../reduce_min/reduce_min_20x2_i16_axis1/test.json | 52 +++++++++++++ 4 files changed, 222 insertions(+) create mode 100644 operators/reduction/reduce_min/reduce_min_20x2_i16_axis1/Conformance-result-0.json create mode 100644 operators/reduction/reduce_min/reduce_min_20x2_i16_axis1/desc.json create mode 100644 operators/reduction/reduce_min/reduce_min_20x2_i16_axis1/input-0.json create mode 100644 operators/reduction/reduce_min/reduce_min_20x2_i16_axis1/test.json (limited to 'operators/reduction/reduce_min/reduce_min_20x2_i16_axis1') diff --git a/operators/reduction/reduce_min/reduce_min_20x2_i16_axis1/Conformance-result-0.json b/operators/reduction/reduce_min/reduce_min_20x2_i16_axis1/Conformance-result-0.json new file mode 100644 index 000000000..bf49690cc --- /dev/null +++ b/operators/reduction/reduce_min/reduce_min_20x2_i16_axis1/Conformance-result-0.json @@ -0,0 +1,65 @@ +{ + "type": "int32", + "data": [ + [ + -30317 + ], + [ + 3067 + ], + [ + -12455 + ], + [ + -2620 + ], + [ + 20201 + ], + [ + -19482 + ], + [ + 8836 + ], + [ + -13703 + ], + [ + 986 + ], + [ + -15994 + ], + [ + -20926 + ], + [ + -21981 + ], + [ + -29825 + ], + [ + -4254 + ], + [ + -22837 + ], + [ + -26809 + ], + [ + 16292 + ], + [ + -18127 + ], + [ + -25168 + ], + [ + -1996 + ] + ] +} \ No newline at end of file diff --git a/operators/reduction/reduce_min/reduce_min_20x2_i16_axis1/desc.json b/operators/reduction/reduce_min/reduce_min_20x2_i16_axis1/desc.json new file mode 100644 index 000000000..3cd43b509 --- /dev/null +++ b/operators/reduction/reduce_min/reduce_min_20x2_i16_axis1/desc.json @@ -0,0 +1,20 @@ +{ + "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": 0, + "expected_failure": false, + "expected_result_file": [ + "Conformance-result-0.npy" + ] +} \ No newline at end of file diff --git a/operators/reduction/reduce_min/reduce_min_20x2_i16_axis1/input-0.json b/operators/reduction/reduce_min/reduce_min_20x2_i16_axis1/input-0.json new file mode 100644 index 000000000..b02bdd419 --- /dev/null +++ b/operators/reduction/reduce_min/reduce_min_20x2_i16_axis1/input-0.json @@ -0,0 +1,85 @@ +{ + "type": "int32", + "data": [ + [ + -30317, + -23511 + ], + [ + 3594, + 3067 + ], + [ + -8460, + -12455 + ], + [ + 21613, + -2620 + ], + [ + 20201, + 30357 + ], + [ + -11984, + -19482 + ], + [ + 29681, + 8836 + ], + [ + -13703, + 7986 + ], + [ + 986, + 26576 + ], + [ + -15994, + 32203 + ], + [ + 28576, + -20926 + ], + [ + -21981, + 2172 + ], + [ + -29825, + -13186 + ], + [ + -4254, + 30760 + ], + [ + 32268, + -22837 + ], + [ + 25668, + -26809 + ], + [ + 16292, + 22652 + ], + [ + 25610, + -18127 + ], + [ + 25784, + -25168 + ], + [ + 1235, + -1996 + ] + ] +} \ No newline at end of file diff --git a/operators/reduction/reduce_min/reduce_min_20x2_i16_axis1/test.json b/operators/reduction/reduce_min/reduce_min_20x2_i16_axis1/test.json new file mode 100644 index 000000000..37f8a2d19 --- /dev/null +++ b/operators/reduction/reduce_min/reduce_min_20x2_i16_axis1/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: 1 + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 20, + 2 + ], + type: "INT16" + }, + { + name: "result-0", + shape: [ + 20, + 1 + ], + type: "INT16" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} -- cgit v1.2.1