aboutsummaryrefslogtreecommitdiff
path: root/operators/reduction/reduce_sum/reduce_sum_ERRORIF_AxisSmallerZero_11_f16_axis-4
diff options
context:
space:
mode:
authorJames Ward <james.ward@arm.com>2023-01-27 18:44:11 +0000
committerJames Ward <james.ward@arm.com>2023-01-31 11:29:43 +0000
commitee8287e7d32a98f5e6197a361702bfc07e6efd91 (patch)
tree8b798a2dc13444e542eb93a45a23f4eeb878b226 /operators/reduction/reduce_sum/reduce_sum_ERRORIF_AxisSmallerZero_11_f16_axis-4
parent9cc3f4b597d3d4546ea7898ce8774a9b13196b57 (diff)
downloadconformance_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_sum/reduce_sum_ERRORIF_AxisSmallerZero_11_f16_axis-4')
-rw-r--r--operators/reduction/reduce_sum/reduce_sum_ERRORIF_AxisSmallerZero_11_f16_axis-4/desc.json21
-rw-r--r--operators/reduction/reduce_sum/reduce_sum_ERRORIF_AxisSmallerZero_11_f16_axis-4/input-0.json16
-rw-r--r--operators/reduction/reduce_sum/reduce_sum_ERRORIF_AxisSmallerZero_11_f16_axis-4/test.json55
3 files changed, 92 insertions, 0 deletions
diff --git a/operators/reduction/reduce_sum/reduce_sum_ERRORIF_AxisSmallerZero_11_f16_axis-4/desc.json b/operators/reduction/reduce_sum/reduce_sum_ERRORIF_AxisSmallerZero_11_f16_axis-4/desc.json
new file mode 100644
index 000000000..9a306b5d5
--- /dev/null
+++ b/operators/reduction/reduce_sum/reduce_sum_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_sum/reduce_sum_ERRORIF_AxisSmallerZero_11_f16_axis-4/input-0.json b/operators/reduction/reduce_sum/reduce_sum_ERRORIF_AxisSmallerZero_11_f16_axis-4/input-0.json
new file mode 100644
index 000000000..65dc5f549
--- /dev/null
+++ b/operators/reduction/reduce_sum/reduce_sum_ERRORIF_AxisSmallerZero_11_f16_axis-4/input-0.json
@@ -0,0 +1,16 @@
+{
+ "type": "float16",
+ "data": [
+ 0.89599609375,
+ 0.97412109375,
+ 0.0517578125,
+ 0.7958984375,
+ 0.6455078125,
+ 0.261474609375,
+ 0.63525390625,
+ 0.128662109375,
+ 0.06939697265625,
+ 0.99365234375,
+ 0.63623046875
+ ]
+} \ No newline at end of file
diff --git a/operators/reduction/reduce_sum/reduce_sum_ERRORIF_AxisSmallerZero_11_f16_axis-4/test.json b/operators/reduction/reduce_sum/reduce_sum_ERRORIF_AxisSmallerZero_11_f16_axis-4/test.json
new file mode 100644
index 000000000..704499b5b
--- /dev/null
+++ b/operators/reduction/reduce_sum/reduce_sum_ERRORIF_AxisSmallerZero_11_f16_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_SUM",
+ 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"
+ ]
+ }
+ ]
+ }
+ ]
+}