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 | 12 ++ .../reduce_min/reduce_min_17x5_i32_axis0/desc.json | 20 ++++ .../reduce_min_17x5_i32_axis0/input-0.json | 124 +++++++++++++++++++++ .../reduce_min/reduce_min_17x5_i32_axis0/test.json | 52 +++++++++ 4 files changed, 208 insertions(+) create mode 100644 operators/reduction/reduce_min/reduce_min_17x5_i32_axis0/Conformance-result-0.json create mode 100644 operators/reduction/reduce_min/reduce_min_17x5_i32_axis0/desc.json create mode 100644 operators/reduction/reduce_min/reduce_min_17x5_i32_axis0/input-0.json create mode 100644 operators/reduction/reduce_min/reduce_min_17x5_i32_axis0/test.json (limited to 'operators/reduction/reduce_min/reduce_min_17x5_i32_axis0') diff --git a/operators/reduction/reduce_min/reduce_min_17x5_i32_axis0/Conformance-result-0.json b/operators/reduction/reduce_min/reduce_min_17x5_i32_axis0/Conformance-result-0.json new file mode 100644 index 000000000..f59057a13 --- /dev/null +++ b/operators/reduction/reduce_min/reduce_min_17x5_i32_axis0/Conformance-result-0.json @@ -0,0 +1,12 @@ +{ + "type": "int32", + "data": [ + [ + -1624217026, + -2052503979, + -2087627749, + -2124689947, + -1955134236 + ] + ] +} \ No newline at end of file diff --git a/operators/reduction/reduce_min/reduce_min_17x5_i32_axis0/desc.json b/operators/reduction/reduce_min/reduce_min_17x5_i32_axis0/desc.json new file mode 100644 index 000000000..3cd43b509 --- /dev/null +++ b/operators/reduction/reduce_min/reduce_min_17x5_i32_axis0/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_17x5_i32_axis0/input-0.json b/operators/reduction/reduce_min/reduce_min_17x5_i32_axis0/input-0.json new file mode 100644 index 000000000..0d10a92ed --- /dev/null +++ b/operators/reduction/reduce_min/reduce_min_17x5_i32_axis0/input-0.json @@ -0,0 +1,124 @@ +{ + "type": "int32", + "data": [ + [ + -790578703, + -2052503979, + 1168284500, + -706162836, + 694329838 + ], + [ + -385602493, + -542635923, + 1659128332, + -1741752399, + 1016263814 + ], + [ + 1059953309, + -515432790, + -1020224316, + -2124689947, + 1876098196 + ], + [ + 1922991991, + -1112522910, + -2010426731, + -1620242343, + -1856959762 + ], + [ + 1422118098, + 1683246877, + -1489132522, + 1059737894, + -1377532128 + ], + [ + -570333014, + 426845839, + 944578370, + 1608731715, + -1955134236 + ], + [ + -1303803183, + -942708308, + -814653622, + 2139013367, + 1191444707 + ], + [ + -771302135, + 2026479069, + -2976476, + 3183370, + -284761282 + ], + [ + -1529448581, + 1865615609, + -2087627749, + -1398963051, + -1161118510 + ], + [ + -947909998, + -1581311534, + -2070339969, + 763038193, + 2015670728 + ], + [ + -1624217026, + -873874641, + 27186849, + 1836108670, + 834350807 + ], + [ + 1143269295, + 348393183, + -356328586, + -1289453758, + 1564718363 + ], + [ + 1306204893, + -2039674280, + 925166577, + -1785039500, + 1026428481 + ], + [ + 1399961104, + -1584594892, + -284172797, + -1615965109, + 288974921 + ], + [ + 1836367173, + -1800151569, + -439898308, + 2032037150, + -854918860 + ], + [ + -1579617215, + -49031152, + 35959970, + 699496467, + -799991099 + ], + [ + 1956886988, + 90291978, + -917206472, + 1976906654, + 1824538310 + ] + ] +} \ No newline at end of file diff --git a/operators/reduction/reduce_min/reduce_min_17x5_i32_axis0/test.json b/operators/reduction/reduce_min/reduce_min_17x5_i32_axis0/test.json new file mode 100644 index 000000000..db8b8ca3d --- /dev/null +++ b/operators/reduction/reduce_min/reduce_min_17x5_i32_axis0/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: 0 + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 17, + 5 + ], + type: "INT32" + }, + { + name: "result-0", + shape: [ + 1, + 5 + ], + type: "INT32" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} -- cgit v1.2.1