aboutsummaryrefslogtreecommitdiff
path: root/operators/reduction/reduce_max/reduce_max_ERRORIF_WrongInputType_10x1x6x7_i4_axis0
diff options
context:
space:
mode:
authorJeremy Johnson <jeremy.johnson@arm.com>2022-10-13 12:50:29 +0100
committerJeremy Johnson <jeremy.johnson@arm.com>2022-10-13 12:50:29 +0100
commit00d05b3831fa305a377fda5ad6d81c53964a4d13 (patch)
tree3e9caa35371288dccb3a6de7f3e8353ab007c5b3 /operators/reduction/reduce_max/reduce_max_ERRORIF_WrongInputType_10x1x6x7_i4_axis0
parent52bfc1a26ec8a1583a274bedf848f3ff3047a2d6 (diff)
downloadconformance_tests-00d05b3831fa305a377fda5ad6d81c53964a4d13.tar.gz
Updating REDUCTION tests for FP16 and accumulator types
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: Ifc85983119c6b49776f243aa9e7499af1f81413e
Diffstat (limited to 'operators/reduction/reduce_max/reduce_max_ERRORIF_WrongInputType_10x1x6x7_i4_axis0')
-rw-r--r--operators/reduction/reduce_max/reduce_max_ERRORIF_WrongInputType_10x1x6x7_i4_axis0/desc.json22
-rw-r--r--operators/reduction/reduce_max/reduce_max_ERRORIF_WrongInputType_10x1x6x7_i4_axis0/input-0.json585
-rw-r--r--operators/reduction/reduce_max/reduce_max_ERRORIF_WrongInputType_10x1x6x7_i4_axis0/test.json56
3 files changed, 663 insertions, 0 deletions
diff --git a/operators/reduction/reduce_max/reduce_max_ERRORIF_WrongInputType_10x1x6x7_i4_axis0/desc.json b/operators/reduction/reduce_max/reduce_max_ERRORIF_WrongInputType_10x1x6x7_i4_axis0/desc.json
new file mode 100644
index 000000000..992afc22b
--- /dev/null
+++ b/operators/reduction/reduce_max/reduce_max_ERRORIF_WrongInputType_10x1x6x7_i4_axis0/desc.json
@@ -0,0 +1,22 @@
+{
+ "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": "Input data type not supported for this operator",
+ "profile": [
+ "tosa-bi",
+ "tosa-mi"
+ ]
+} \ No newline at end of file
diff --git a/operators/reduction/reduce_max/reduce_max_ERRORIF_WrongInputType_10x1x6x7_i4_axis0/input-0.json b/operators/reduction/reduce_max/reduce_max_ERRORIF_WrongInputType_10x1x6x7_i4_axis0/input-0.json
new file mode 100644
index 000000000..3c4a12908
--- /dev/null
+++ b/operators/reduction/reduce_max/reduce_max_ERRORIF_WrongInputType_10x1x6x7_i4_axis0/input-0.json
@@ -0,0 +1,585 @@
+{
+ "type": "int32",
+ "data": [
+ [
+ [
+ [
+ 5,
+ -1,
+ -4,
+ 2,
+ 2,
+ -3,
+ -5
+ ],
+ [
+ -7,
+ -2,
+ 3,
+ 5,
+ -3,
+ 2,
+ -4
+ ],
+ [
+ -5,
+ 1,
+ -3,
+ -5,
+ -4,
+ -3,
+ -3
+ ],
+ [
+ 0,
+ 6,
+ 7,
+ 1,
+ -4,
+ -5,
+ 0
+ ],
+ [
+ 3,
+ 0,
+ -6,
+ 3,
+ -3,
+ 0,
+ 5
+ ],
+ [
+ 4,
+ 0,
+ 5,
+ -4,
+ -3,
+ -3,
+ 5
+ ]
+ ]
+ ],
+ [
+ [
+ [
+ 5,
+ -4,
+ -5,
+ 5,
+ -1,
+ 2,
+ -5
+ ],
+ [
+ 1,
+ 3,
+ -1,
+ 5,
+ 1,
+ 1,
+ -4
+ ],
+ [
+ 3,
+ 0,
+ 2,
+ 2,
+ -2,
+ -2,
+ -3
+ ],
+ [
+ -2,
+ 5,
+ -2,
+ -6,
+ 5,
+ -4,
+ -2
+ ],
+ [
+ -4,
+ 1,
+ -4,
+ 7,
+ -1,
+ -7,
+ 1
+ ],
+ [
+ -4,
+ -2,
+ 6,
+ -5,
+ 3,
+ 3,
+ -2
+ ]
+ ]
+ ],
+ [
+ [
+ [
+ -1,
+ -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
+ -7,
+ -7,
+ 1,
+ 4,
+ 1,
+ -5,
+ -3
+ ],
+ [
+ -1,
+ -4,
+ 7,
+ -1,
+ 6,
+ -6,
+ -1
+ ],
+ [
+ 5,
+ -3,
+ 5,
+ 4,
+ 1,
+ -7,
+ 6
+ ]
+ ]
+ ],
+ [
+ [
+ [
+ 0,
+ 2,
+ 3,
+ 0,
+ -5,
+ 1,
+ 1
+ ],
+ [
+ -6,
+ -5,
+ -4,
+ -2,
+ 1,
+ 2,
+ -6
+ ],
+ [
+ 5,
+ 5,
+ -6,
+ -5,
+ 5,
+ -1,
+ -1
+ ],
+ [
+ 0,
+ 7,
+ -5,
+ 7,
+ -4,
+ 6,
+ 0
+ ],
+ [
+ 4,
+ -6,
+ -2,
+ -5,
+ 1,
+ -7,
+ -2
+ ],
+ [
+ 0,
+ 0,
+ 5,
+ 2,
+ 5,
+ 0,
+ -2
+ ]
+ ]
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/reduction/reduce_max/reduce_max_ERRORIF_WrongInputType_10x1x6x7_i4_axis0/test.json b/operators/reduction/reduce_max/reduce_max_ERRORIF_WrongInputType_10x1x6x7_i4_axis0/test.json
new file mode 100644
index 000000000..34840fc05
--- /dev/null
+++ b/operators/reduction/reduce_max/reduce_max_ERRORIF_WrongInputType_10x1x6x7_i4_axis0/test.json
@@ -0,0 +1,56 @@
+{
+ version: {
+ _major: 0,
+ _minor: 41,
+ _patch: 0,
+ _draft: true
+ },
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "REDUCE_MAX",
+ attribute_type: "AxisAttribute",
+ attribute: {
+ axis: 0
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 10,
+ 1,
+ 6,
+ 7
+ ],
+ type: "INT4"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 1,
+ 1,
+ 6,
+ 7
+ ],
+ type: "INT4"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}