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_ERRORIF_AxisSmallerZero_11_f32_axis-4 | |
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_ERRORIF_AxisSmallerZero_11_f32_axis-4')
3 files changed, 92 insertions, 0 deletions
diff --git a/operators/reduction/reduce_product/reduce_product_ERRORIF_AxisSmallerZero_11_f32_axis-4/desc.json b/operators/reduction/reduce_product/reduce_product_ERRORIF_AxisSmallerZero_11_f32_axis-4/desc.json new file mode 100644 index 000000000..9a306b5d5 --- /dev/null +++ b/operators/reduction/reduce_product/reduce_product_ERRORIF_AxisSmallerZero_11_f32_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_product/reduce_product_ERRORIF_AxisSmallerZero_11_f32_axis-4/input-0.json b/operators/reduction/reduce_product/reduce_product_ERRORIF_AxisSmallerZero_11_f32_axis-4/input-0.json new file mode 100644 index 000000000..a6705b6ed --- /dev/null +++ b/operators/reduction/reduce_product/reduce_product_ERRORIF_AxisSmallerZero_11_f32_axis-4/input-0.json @@ -0,0 +1,16 @@ +{ + "type": "float32", + "data": [ + 0.26143625378608704, + 0.6351560950279236, + 0.1286431849002838, + 0.06940650939941406, + 0.9934890866279602, + 0.6363698840141296, + 0.25322261452674866, + 0.450033962726593, + 0.9500882029533386, + 0.4387250542640686, + 0.900444507598877 + ] +}
\ No newline at end of file diff --git a/operators/reduction/reduce_product/reduce_product_ERRORIF_AxisSmallerZero_11_f32_axis-4/test.json b/operators/reduction/reduce_product/reduce_product_ERRORIF_AxisSmallerZero_11_f32_axis-4/test.json new file mode 100644 index 000000000..02dea1038 --- /dev/null +++ b/operators/reduction/reduce_product/reduce_product_ERRORIF_AxisSmallerZero_11_f32_axis-4/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: -4 + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 11 + ], + type: "FP32" + }, + { + name: "result-0", + shape: [ + 11 + ], + type: "FP32" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] + } + ] +} |