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_22_bf16_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_22_bf16_axis0')
4 files changed, 111 insertions, 0 deletions
diff --git a/operators/reduction/reduce_product/reduce_product_22_bf16_axis0/Conformance-result-0.json b/operators/reduction/reduce_product/reduce_product_22_bf16_axis0/Conformance-result-0.json new file mode 100644 index 000000000..8a5abe5f9 --- /dev/null +++ b/operators/reduction/reduce_product/reduce_product_22_bf16_axis0/Conformance-result-0.json @@ -0,0 +1,6 @@ +{ + "type": "float32", + "data": [ + -0.000247955322265625 + ] +}
\ No newline at end of file diff --git a/operators/reduction/reduce_product/reduce_product_22_bf16_axis0/desc.json b/operators/reduction/reduce_product/reduce_product_22_bf16_axis0/desc.json new file mode 100644 index 000000000..d418e4060 --- /dev/null +++ b/operators/reduction/reduce_product/reduce_product_22_bf16_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_22_bf16_axis0/input-0.json b/operators/reduction/reduce_product/reduce_product_22_bf16_axis0/input-0.json new file mode 100644 index 000000000..6afc2c4fc --- /dev/null +++ b/operators/reduction/reduce_product/reduce_product_22_bf16_axis0/input-0.json @@ -0,0 +1,27 @@ +{ + "type": "float32", + "data": [ + 1.328125, + 1.21875, + -0.44921875, + -0.84375, + 0.7265625, + -1.4375, + -1.1953125, + -1.96875, + 1.140625, + 0.65625, + 0.8203125, + 1.1171875, + -0.1640625, + 0.2734375, + -1.4375, + -1.5390625, + 0.671875, + -0.115234375, + 0.259765625, + 1.0546875, + 0.53515625, + 0.2138671875 + ] +}
\ No newline at end of file diff --git a/operators/reduction/reduce_product/reduce_product_22_bf16_axis0/test.json b/operators/reduction/reduce_product/reduce_product_22_bf16_axis0/test.json new file mode 100644 index 000000000..c7973b619 --- /dev/null +++ b/operators/reduction/reduce_product/reduce_product_22_bf16_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: [ + 22 + ], + type: "BF16" + }, + { + name: "result-0", + shape: [ + 1 + ], + type: "BF16" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] + } + ] +} |