diff options
author | James Ward <james.ward@arm.com> | 2023-01-27 18:44:11 +0000 |
---|---|---|
committer | James Ward <james.ward@arm.com> | 2023-01-31 11:29:43 +0000 |
commit | ee8287e7d32a98f5e6197a361702bfc07e6efd91 (patch) | |
tree | 8b798a2dc13444e542eb93a45a23f4eeb878b226 /operators/reduction/reduce_product/reduce_product_26_f16_axis0 | |
parent | 9cc3f4b597d3d4546ea7898ce8774a9b13196b57 (diff) | |
download | conformance_tests-ee8287e7d32a98f5e6197a361702bfc07e6efd91.tar.gz |
Create MI tests for Reduction: REDUCE_SUM, REDUCE_PRODUCT
Signed-off-by: James Ward <james.ward@arm.com>
Change-Id: Ie333c2e7c851ced9ad3f4d823f7070bed5e1cdfc
Diffstat (limited to 'operators/reduction/reduce_product/reduce_product_26_f16_axis0')
4 files changed, 115 insertions, 0 deletions
diff --git a/operators/reduction/reduce_product/reduce_product_26_f16_axis0/Conformance-result-0.json b/operators/reduction/reduce_product/reduce_product_26_f16_axis0/Conformance-result-0.json new file mode 100644 index 000000000..6d4c5b8f6 --- /dev/null +++ b/operators/reduction/reduce_product/reduce_product_26_f16_axis0/Conformance-result-0.json @@ -0,0 +1,6 @@ +{ + "type": "float16", + "data": [ + 0.0008826255798339844 + ] +}
\ No newline at end of file diff --git a/operators/reduction/reduce_product/reduce_product_26_f16_axis0/desc.json b/operators/reduction/reduce_product/reduce_product_26_f16_axis0/desc.json new file mode 100644 index 000000000..d418e4060 --- /dev/null +++ b/operators/reduction/reduce_product/reduce_product_26_f16_axis0/desc.json @@ -0,0 +1,23 @@ +{ + "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" + ], + "profile": [ + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/reduction/reduce_product/reduce_product_26_f16_axis0/input-0.json b/operators/reduction/reduce_product/reduce_product_26_f16_axis0/input-0.json new file mode 100644 index 000000000..6b0dee644 --- /dev/null +++ b/operators/reduction/reduce_product/reduce_product_26_f16_axis0/input-0.json @@ -0,0 +1,31 @@ +{ + "type": "float16", + "data": [ + 1.310546875, + 0.52685546875, + 1.0322265625, + -0.58203125, + 1.8828125, + 1.572265625, + 1.11328125, + -1.2216796875, + -0.133056640625, + -1.8251953125, + -1.3828125, + 0.732421875, + 0.97900390625, + 1.8701171875, + -0.69677734375, + -0.51806640625, + -0.12176513671875, + -1.2421875, + -1.48046875, + -0.09716796875, + -1.0927734375, + 0.67919921875, + -0.25146484375, + 1.3310546875, + 0.80126953125, + -0.75048828125 + ] +}
\ No newline at end of file diff --git a/operators/reduction/reduce_product/reduce_product_26_f16_axis0/test.json b/operators/reduction/reduce_product/reduce_product_26_f16_axis0/test.json new file mode 100644 index 000000000..5bd0b601a --- /dev/null +++ b/operators/reduction/reduce_product/reduce_product_26_f16_axis0/test.json @@ -0,0 +1,55 @@ +{ + version: { + _major: 0, + _minor: 51, + _patch: 0, + _draft: true + }, + regions: [ + { + name: "main", + blocks: [ + { + name: "main", + operators: [ + { + op: "REDUCE_PRODUCT", + attribute_type: "AxisAttribute", + attribute: { + axis: 0 + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 26 + ], + type: "FP16" + }, + { + name: "result-0", + shape: [ + 1 + ], + type: "FP16" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] + } + ] +} |