aboutsummaryrefslogtreecommitdiff
path: root/operators/reduction/reduce_sum/reduce_sum_ERRORIF_AxisSmallerZero_29_i32_axis-4
diff options
context:
space:
mode:
authorJeremy Johnson <jeremy.johnson@arm.com>2022-06-17 13:07:09 +0100
committerJeremy Johnson <jeremy.johnson@arm.com>2022-06-17 13:07:09 +0100
commitfa017a13f19b8f94f8f873f627f5eb2613d2e191 (patch)
tree3d2a60c58f6ea9c80cc16818b163eb69c502e078 /operators/reduction/reduce_sum/reduce_sum_ERRORIF_AxisSmallerZero_29_i32_axis-4
parentae5fcadbf03f8b5779065b22039f952f813dfc0e (diff)
downloadconformance_tests-fa017a13f19b8f94f8f873f627f5eb2613d2e191.tar.gz
Updating REDUCE_SUM tests for v0.30.0 release
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: I86ab2dcba84953549f3ea932d92aa85812c15dbc
Diffstat (limited to 'operators/reduction/reduce_sum/reduce_sum_ERRORIF_AxisSmallerZero_29_i32_axis-4')
-rw-r--r--operators/reduction/reduce_sum/reduce_sum_ERRORIF_AxisSmallerZero_29_i32_axis-4/desc.json18
-rw-r--r--operators/reduction/reduce_sum/reduce_sum_ERRORIF_AxisSmallerZero_29_i32_axis-4/input-0.json34
-rw-r--r--operators/reduction/reduce_sum/reduce_sum_ERRORIF_AxisSmallerZero_29_i32_axis-4/test.json50
3 files changed, 102 insertions, 0 deletions
diff --git a/operators/reduction/reduce_sum/reduce_sum_ERRORIF_AxisSmallerZero_29_i32_axis-4/desc.json b/operators/reduction/reduce_sum/reduce_sum_ERRORIF_AxisSmallerZero_29_i32_axis-4/desc.json
new file mode 100644
index 000000000..255ea750d
--- /dev/null
+++ b/operators/reduction/reduce_sum/reduce_sum_ERRORIF_AxisSmallerZero_29_i32_axis-4/desc.json
@@ -0,0 +1,18 @@
+{
+ "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"
+} \ No newline at end of file
diff --git a/operators/reduction/reduce_sum/reduce_sum_ERRORIF_AxisSmallerZero_29_i32_axis-4/input-0.json b/operators/reduction/reduce_sum/reduce_sum_ERRORIF_AxisSmallerZero_29_i32_axis-4/input-0.json
new file mode 100644
index 000000000..f0585bb79
--- /dev/null
+++ b/operators/reduction/reduce_sum/reduce_sum_ERRORIF_AxisSmallerZero_29_i32_axis-4/input-0.json
@@ -0,0 +1,34 @@
+{
+ "type": "int32",
+ "data": [
+ -2200257,
+ -33115486,
+ -18057105,
+ -34612696,
+ 69829970,
+ 37036246,
+ -5131798,
+ -67641268,
+ 46417480,
+ -66997827,
+ -6704125,
+ 28124509,
+ 66905358,
+ 32619995,
+ 39278136,
+ -20165705,
+ 18597047,
+ 25773366,
+ -42803168,
+ 49670338,
+ 34333838,
+ -17188952,
+ -34445435,
+ -20558142,
+ 7393325,
+ -48619627,
+ 27904484,
+ 53167718,
+ 70141351
+ ]
+} \ No newline at end of file
diff --git a/operators/reduction/reduce_sum/reduce_sum_ERRORIF_AxisSmallerZero_29_i32_axis-4/test.json b/operators/reduction/reduce_sum/reduce_sum_ERRORIF_AxisSmallerZero_29_i32_axis-4/test.json
new file mode 100644
index 000000000..bbf7c7ad9
--- /dev/null
+++ b/operators/reduction/reduce_sum/reduce_sum_ERRORIF_AxisSmallerZero_29_i32_axis-4/test.json
@@ -0,0 +1,50 @@
+{
+ version: {
+ _major: 0,
+ _minor: 30,
+ _patch: 0,
+ _draft: false
+ },
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "REDUCE_SUM",
+ attribute_type: "AxisAttribute",
+ attribute: {
+ axis: -4
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 29
+ ],
+ type: "INT32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 29
+ ],
+ type: "INT32"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}