aboutsummaryrefslogtreecommitdiff
path: root/operators/reduction/reduce_min/reduce_min_ERRORIF_WrongInputList_10_f32_axis0
diff options
context:
space:
mode:
authorJames Ward <james.ward@arm.com>2022-12-14 12:22:49 +0000
committerJames Ward <james.ward@arm.com>2022-12-14 12:22:49 +0000
commit9438531ceffbf9f8c6c123b93ec81656f6685fef (patch)
tree14d6795076d0205339a1c06300d31f158cc744da /operators/reduction/reduce_min/reduce_min_ERRORIF_WrongInputList_10_f32_axis0
parent4abeb4f0514409aec7e23cb5495dcc68417fc7ad (diff)
downloadconformance_tests-9438531ceffbf9f8c6c123b93ec81656f6685fef.tar.gz
Create MI tests for Reduction: REDUCE_MIN, REDUCE_MAX
Signed-off-by: James Ward <james.ward@arm.com> Change-Id: I203c8f2fdfe10342a4b6bf6572b643b7c7eda1e2
Diffstat (limited to 'operators/reduction/reduce_min/reduce_min_ERRORIF_WrongInputList_10_f32_axis0')
-rw-r--r--operators/reduction/reduce_min/reduce_min_ERRORIF_WrongInputList_10_f32_axis0/desc.json21
-rw-r--r--operators/reduction/reduce_min/reduce_min_ERRORIF_WrongInputList_10_f32_axis0/input-0.json15
-rw-r--r--operators/reduction/reduce_min/reduce_min_ERRORIF_WrongInputList_10_f32_axis0/test.json51
3 files changed, 87 insertions, 0 deletions
diff --git a/operators/reduction/reduce_min/reduce_min_ERRORIF_WrongInputList_10_f32_axis0/desc.json b/operators/reduction/reduce_min/reduce_min_ERRORIF_WrongInputList_10_f32_axis0/desc.json
new file mode 100644
index 000000000..b4526f1cb
--- /dev/null
+++ b/operators/reduction/reduce_min/reduce_min_ERRORIF_WrongInputList_10_f32_axis0/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": "Op input list does not match expected input",
+ "profile": [
+ "tosa-mi"
+ ]
+} \ No newline at end of file
diff --git a/operators/reduction/reduce_min/reduce_min_ERRORIF_WrongInputList_10_f32_axis0/input-0.json b/operators/reduction/reduce_min/reduce_min_ERRORIF_WrongInputList_10_f32_axis0/input-0.json
new file mode 100644
index 000000000..61125ec47
--- /dev/null
+++ b/operators/reduction/reduce_min/reduce_min_ERRORIF_WrongInputList_10_f32_axis0/input-0.json
@@ -0,0 +1,15 @@
+{
+ "type": "float32",
+ "data": [
+ 0.33321571350097656,
+ 0.6250083446502686,
+ 0.18229998648166656,
+ 0.27150607109069824,
+ 0.046911366283893585,
+ 0.4157748222351074,
+ 0.05780433118343353,
+ 0.19553397595882416,
+ 0.766265332698822,
+ 0.6019465923309326
+ ]
+} \ No newline at end of file
diff --git a/operators/reduction/reduce_min/reduce_min_ERRORIF_WrongInputList_10_f32_axis0/test.json b/operators/reduction/reduce_min/reduce_min_ERRORIF_WrongInputList_10_f32_axis0/test.json
new file mode 100644
index 000000000..edbb68ea6
--- /dev/null
+++ b/operators/reduction/reduce_min/reduce_min_ERRORIF_WrongInputList_10_f32_axis0/test.json
@@ -0,0 +1,51 @@
+{
+ version: {
+ _major: 0,
+ _minor: 51,
+ _patch: 0,
+ _draft: true
+ },
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "REDUCE_MIN",
+ attribute_type: "AxisAttribute",
+ attribute: {
+ axis: 0
+ },
+ inputs: [
+ "input-0",
+ "eiDummyInput"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 10
+ ],
+ type: "FP32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 1
+ ],
+ type: "FP32"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}