From d2f0a9657439fe7ad7c60208a9eacafdcb1af5be Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Fri, 17 Jun 2022 13:07:05 +0100 Subject: Updating REDUCE_MAX tests for v0.30.0 release Signed-off-by: Jeremy Johnson Change-Id: Ifad1bf01c9285e09596729029bd9cba05a6042a1 --- .../Conformance-result-0.json | 47 +++++ .../reduce_max/reduce_max_14x14_i8_axis1/desc.json | 20 ++ .../reduce_max_14x14_i8_axis1/input-0.json | 229 +++++++++++++++++++++ .../reduce_max/reduce_max_14x14_i8_axis1/test.json | 52 +++++ 4 files changed, 348 insertions(+) create mode 100644 operators/reduction/reduce_max/reduce_max_14x14_i8_axis1/Conformance-result-0.json create mode 100644 operators/reduction/reduce_max/reduce_max_14x14_i8_axis1/desc.json create mode 100644 operators/reduction/reduce_max/reduce_max_14x14_i8_axis1/input-0.json create mode 100644 operators/reduction/reduce_max/reduce_max_14x14_i8_axis1/test.json (limited to 'operators/reduction/reduce_max/reduce_max_14x14_i8_axis1') diff --git a/operators/reduction/reduce_max/reduce_max_14x14_i8_axis1/Conformance-result-0.json b/operators/reduction/reduce_max/reduce_max_14x14_i8_axis1/Conformance-result-0.json new file mode 100644 index 000000000..ba46383a9 --- /dev/null +++ b/operators/reduction/reduce_max/reduce_max_14x14_i8_axis1/Conformance-result-0.json @@ -0,0 +1,47 @@ +{ + "type": "int32", + "data": [ + [ + 112 + ], + [ + 116 + ], + [ + 101 + ], + [ + 121 + ], + [ + 118 + ], + [ + 126 + ], + [ + 100 + ], + [ + 114 + ], + [ + 100 + ], + [ + 127 + ], + [ + 120 + ], + [ + 121 + ], + [ + 117 + ], + [ + 119 + ] + ] +} \ No newline at end of file diff --git a/operators/reduction/reduce_max/reduce_max_14x14_i8_axis1/desc.json b/operators/reduction/reduce_max/reduce_max_14x14_i8_axis1/desc.json new file mode 100644 index 000000000..3cd43b509 --- /dev/null +++ b/operators/reduction/reduce_max/reduce_max_14x14_i8_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_max/reduce_max_14x14_i8_axis1/input-0.json b/operators/reduction/reduce_max/reduce_max_14x14_i8_axis1/input-0.json new file mode 100644 index 000000000..7c7be1feb --- /dev/null +++ b/operators/reduction/reduce_max/reduce_max_14x14_i8_axis1/input-0.json @@ -0,0 +1,229 @@ +{ + "type": "int32", + "data": [ + [ + -21, + -5, + -9, + 72, + -112, + -107, + -58, + -4, + 43, + -3, + -16, + 112, + -87, + 18 + ], + [ + 10, + -7, + 78, + -60, + 116, + -44, + 11, + 5, + 89, + -16, + -56, + -123, + -35, + 83 + ], + [ + -126, + 101, + 10, + -93, + -51, + 13, + -48, + -101, + 42, + 44, + -98, + -57, + -66, + 40 + ], + [ + 58, + 58, + 112, + 68, + -46, + -101, + 29, + 106, + 121, + -70, + -68, + -119, + -92, + 14 + ], + [ + 11, + -34, + -49, + 84, + -11, + 78, + 118, + -47, + -77, + 115, + 34, + -54, + 31, + 3 + ], + [ + 103, + -63, + 125, + 111, + -82, + -86, + 8, + -117, + -52, + -17, + 120, + 126, + -90, + 100 + ], + [ + -105, + 63, + 88, + 100, + -71, + 100, + -99, + 4, + -8, + -48, + -123, + 69, + -43, + 41 + ], + [ + -23, + -33, + 98, + -104, + 60, + 63, + -31, + -61, + -127, + 111, + 114, + -67, + -120, + -97 + ], + [ + -111, + 84, + 100, + -89, + 63, + -83, + -34, + 25, + 56, + 95, + -117, + -78, + -57, + -49 + ], + [ + 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 + ] + ] +} \ No newline at end of file diff --git a/operators/reduction/reduce_max/reduce_max_14x14_i8_axis1/test.json b/operators/reduction/reduce_max/reduce_max_14x14_i8_axis1/test.json new file mode 100644 index 000000000..a43951dda --- /dev/null +++ b/operators/reduction/reduce_max/reduce_max_14x14_i8_axis1/test.json @@ -0,0 +1,52 @@ +{ + version: { + _major: 0, + _minor: 30, + _patch: 0, + _draft: false + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "REDUCE_MAX", + attribute_type: "AxisAttribute", + attribute: { + axis: 1 + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 14, + 14 + ], + type: "INT8" + }, + { + name: "result-0", + shape: [ + 14, + 1 + ], + type: "INT8" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} -- cgit v1.2.1