From 00d05b3831fa305a377fda5ad6d81c53964a4d13 Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Thu, 13 Oct 2022 12:50:29 +0100 Subject: Updating REDUCTION tests for FP16 and accumulator types Signed-off-by: Jeremy Johnson Change-Id: Ifc85983119c6b49776f243aa9e7499af1f81413e --- .../desc.json | 22 +++++ .../input-0.json | 105 +++++++++++++++++++++ .../test.json | 54 +++++++++++ 3 files changed, 181 insertions(+) create mode 100644 operators/reduction/reduce_any/reduce_any_ERRORIF_WrongOutputList_10x1x6_b_axis0/desc.json create mode 100644 operators/reduction/reduce_any/reduce_any_ERRORIF_WrongOutputList_10x1x6_b_axis0/input-0.json create mode 100644 operators/reduction/reduce_any/reduce_any_ERRORIF_WrongOutputList_10x1x6_b_axis0/test.json (limited to 'operators/reduction/reduce_any/reduce_any_ERRORIF_WrongOutputList_10x1x6_b_axis0') diff --git a/operators/reduction/reduce_any/reduce_any_ERRORIF_WrongOutputList_10x1x6_b_axis0/desc.json b/operators/reduction/reduce_any/reduce_any_ERRORIF_WrongOutputList_10x1x6_b_axis0/desc.json new file mode 100644 index 000000000..2b74f86d0 --- /dev/null +++ b/operators/reduction/reduce_any/reduce_any_ERRORIF_WrongOutputList_10x1x6_b_axis0/desc.json @@ -0,0 +1,22 @@ +{ + "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": "Op output list does not match expected output", + "profile": [ + "tosa-bi", + "tosa-mi" + ] +} \ No newline at end of file diff --git a/operators/reduction/reduce_any/reduce_any_ERRORIF_WrongOutputList_10x1x6_b_axis0/input-0.json b/operators/reduction/reduce_any/reduce_any_ERRORIF_WrongOutputList_10x1x6_b_axis0/input-0.json new file mode 100644 index 000000000..a9328a313 --- /dev/null +++ b/operators/reduction/reduce_any/reduce_any_ERRORIF_WrongOutputList_10x1x6_b_axis0/input-0.json @@ -0,0 +1,105 @@ +{ + "type": "bool", + "data": [ + [ + [ + false, + true, + false, + false, + false, + true + ] + ], + [ + [ + true, + true, + false, + true, + true, + true + ] + ], + [ + [ + true, + false, + true, + true, + true, + false + ] + ], + [ + [ + false, + true, + true, + true, + true, + true + ] + ], + [ + [ + false, + true, + false, + true, + false, + false + ] + ], + [ + [ + true, + true, + true, + true, + false, + true + ] + ], + [ + [ + true, + false, + false, + true, + true, + false + ] + ], + [ + [ + false, + true, + false, + false, + false, + true + ] + ], + [ + [ + true, + false, + true, + true, + false, + true + ] + ], + [ + [ + false, + false, + false, + false, + false, + false + ] + ] + ] +} \ No newline at end of file diff --git a/operators/reduction/reduce_any/reduce_any_ERRORIF_WrongOutputList_10x1x6_b_axis0/test.json b/operators/reduction/reduce_any/reduce_any_ERRORIF_WrongOutputList_10x1x6_b_axis0/test.json new file mode 100644 index 000000000..602babe8d --- /dev/null +++ b/operators/reduction/reduce_any/reduce_any_ERRORIF_WrongOutputList_10x1x6_b_axis0/test.json @@ -0,0 +1,54 @@ +{ + version: { + _major: 0, + _minor: 41, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "REDUCE_ANY", + attribute_type: "AxisAttribute", + attribute: { + axis: 0 + }, + inputs: [ + "input-0" + ], + outputs: [ + + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 10, + 1, + 6 + ], + type: "BOOL" + }, + { + name: "result-0", + shape: [ + 1, + 1, + 6 + ], + type: "BOOL" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} -- cgit v1.2.1