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_AxisSmallerZero_11_f16_axis-4 | |
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_AxisSmallerZero_11_f16_axis-4')
3 files changed, 87 insertions, 0 deletions
diff --git a/operators/reduction/reduce_min/reduce_min_ERRORIF_AxisSmallerZero_11_f16_axis-4/desc.json b/operators/reduction/reduce_min/reduce_min_ERRORIF_AxisSmallerZero_11_f16_axis-4/desc.json new file mode 100644 index 000000000..9a306b5d5 --- /dev/null +++ b/operators/reduction/reduce_min/reduce_min_ERRORIF_AxisSmallerZero_11_f16_axis-4/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": "Axis smaller than zero", + "profile": [ + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/reduction/reduce_min/reduce_min_ERRORIF_AxisSmallerZero_11_f16_axis-4/input-0.json b/operators/reduction/reduce_min/reduce_min_ERRORIF_AxisSmallerZero_11_f16_axis-4/input-0.json new file mode 100644 index 000000000..bcf24dae0 --- /dev/null +++ b/operators/reduction/reduce_min/reduce_min_ERRORIF_AxisSmallerZero_11_f16_axis-4/input-0.json @@ -0,0 +1,16 @@ +{ + "type": "float16", + "data": [ + 0.255126953125, + 0.23583984375, + 0.5732421875, + 0.767578125, + 0.8349609375, + 0.397705078125, + 0.06683349609375, + 0.48388671875, + 0.433837890625, + 0.197021484375, + 0.89599609375 + ] +}
\ No newline at end of file diff --git a/operators/reduction/reduce_min/reduce_min_ERRORIF_AxisSmallerZero_11_f16_axis-4/test.json b/operators/reduction/reduce_min/reduce_min_ERRORIF_AxisSmallerZero_11_f16_axis-4/test.json new file mode 100644 index 000000000..3c126c456 --- /dev/null +++ b/operators/reduction/reduce_min/reduce_min_ERRORIF_AxisSmallerZero_11_f16_axis-4/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: -4 + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 11 + ], + type: "FP16" + }, + { + name: "result-0", + shape: [ + 11 + ], + type: "FP16" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} |