diff options
author | James Ward <james.ward@arm.com> | 2022-12-14 12:22:49 +0000 |
---|---|---|
committer | James Ward <james.ward@arm.com> | 2022-12-14 12:22:49 +0000 |
commit | 9438531ceffbf9f8c6c123b93ec81656f6685fef (patch) | |
tree | 14d6795076d0205339a1c06300d31f158cc744da /operators/reduction/reduce_min/reduce_min_ERRORIF_ShapeOfAxisNotOne_10_f16_axis0 | |
parent | 4abeb4f0514409aec7e23cb5495dcc68417fc7ad (diff) | |
download | conformance_tests-9438531ceffbf9f8c6c123b93ec81656f6685fef.tar.gz |
Create MI tests for Reduction: REDUCE_MIN, REDUCE_MAX
Signed-off-by: James Ward <james.ward@arm.com>
Change-Id: I203c8f2fdfe10342a4b6bf6572b643b7c7eda1e2
Diffstat (limited to 'operators/reduction/reduce_min/reduce_min_ERRORIF_ShapeOfAxisNotOne_10_f16_axis0')
3 files changed, 86 insertions, 0 deletions
diff --git a/operators/reduction/reduce_min/reduce_min_ERRORIF_ShapeOfAxisNotOne_10_f16_axis0/desc.json b/operators/reduction/reduce_min/reduce_min_ERRORIF_ShapeOfAxisNotOne_10_f16_axis0/desc.json new file mode 100644 index 000000000..c523d227e --- /dev/null +++ b/operators/reduction/reduce_min/reduce_min_ERRORIF_ShapeOfAxisNotOne_10_f16_axis0/desc.json @@ -0,0 +1,21 @@ +{ + "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": "shape[axis] is not equal to 1", + "profile": [ + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/reduction/reduce_min/reduce_min_ERRORIF_ShapeOfAxisNotOne_10_f16_axis0/input-0.json b/operators/reduction/reduce_min/reduce_min_ERRORIF_ShapeOfAxisNotOne_10_f16_axis0/input-0.json new file mode 100644 index 000000000..01dab14d8 --- /dev/null +++ b/operators/reduction/reduce_min/reduce_min_ERRORIF_ShapeOfAxisNotOne_10_f16_axis0/input-0.json @@ -0,0 +1,15 @@ +{ + "type": "float16", + "data": [ + 0.0802001953125, + 0.348876953125, + 0.39794921875, + 0.904296875, + 0.7431640625, + 0.479248046875, + 0.1348876953125, + 0.65625, + 0.93603515625, + 0.07806396484375 + ] +}
\ No newline at end of file diff --git a/operators/reduction/reduce_min/reduce_min_ERRORIF_ShapeOfAxisNotOne_10_f16_axis0/test.json b/operators/reduction/reduce_min/reduce_min_ERRORIF_ShapeOfAxisNotOne_10_f16_axis0/test.json new file mode 100644 index 000000000..f95341a9b --- /dev/null +++ b/operators/reduction/reduce_min/reduce_min_ERRORIF_ShapeOfAxisNotOne_10_f16_axis0/test.json @@ -0,0 +1,50 @@ +{ + version: { + _major: 0, + _minor: 51, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "REDUCE_MIN", + attribute_type: "AxisAttribute", + attribute: { + axis: 0 + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 10 + ], + type: "FP16" + }, + { + name: "result-0", + shape: [ + 10 + ], + type: "FP16" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} |