aboutsummaryrefslogtreecommitdiff
path: root/operators/ew_binary/sub/sub_ERRORIF_WrongInputList_2_f16
diff options
context:
space:
mode:
authorJeremy Johnson <jeremy.johnson@arm.com>2023-01-04 14:47:16 +0000
committerEric Kunze <eric.kunze@arm.com>2023-01-11 22:53:36 +0000
commit007a2c7c0743b002587cd5e7b4c6b6acbcaedff8 (patch)
tree03fd6fc8fb2517b07bd9b9a5b31a65848ff1f2db /operators/ew_binary/sub/sub_ERRORIF_WrongInputList_2_f16
parentc9b776bfc8433d9d4ef1cd9a5502d1b35827ff27 (diff)
downloadconformance_tests-007a2c7c0743b002587cd5e7b4c6b6acbcaedff8.tar.gz
Create MI tests for EW Binary: ADD, SUB, MUL
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: Iefd40317b8e2a4ff74e8f835d580a2fc623c5875
Diffstat (limited to 'operators/ew_binary/sub/sub_ERRORIF_WrongInputList_2_f16')
-rw-r--r--operators/ew_binary/sub/sub_ERRORIF_WrongInputList_2_f16/desc.json23
-rw-r--r--operators/ew_binary/sub/sub_ERRORIF_WrongInputList_2_f16/input-0.json7
-rw-r--r--operators/ew_binary/sub/sub_ERRORIF_WrongInputList_2_f16/input-1.json6
-rw-r--r--operators/ew_binary/sub/sub_ERRORIF_WrongInputList_2_f16/test.json57
4 files changed, 93 insertions, 0 deletions
diff --git a/operators/ew_binary/sub/sub_ERRORIF_WrongInputList_2_f16/desc.json b/operators/ew_binary/sub/sub_ERRORIF_WrongInputList_2_f16/desc.json
new file mode 100644
index 000000000..3e33b7c32
--- /dev/null
+++ b/operators/ew_binary/sub/sub_ERRORIF_WrongInputList_2_f16/desc.json
@@ -0,0 +1,23 @@
+{
+ "tosa_file": "test.json",
+ "ifm_name": [
+ "input-0",
+ "input-1"
+ ],
+ "ifm_file": [
+ "input-0.npy",
+ "input-1.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/ew_binary/sub/sub_ERRORIF_WrongInputList_2_f16/input-0.json b/operators/ew_binary/sub/sub_ERRORIF_WrongInputList_2_f16/input-0.json
new file mode 100644
index 000000000..563d7b513
--- /dev/null
+++ b/operators/ew_binary/sub/sub_ERRORIF_WrongInputList_2_f16/input-0.json
@@ -0,0 +1,7 @@
+{
+ "type": "float16",
+ "data": [
+ 0.7646484375,
+ 0.08233642578125
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_binary/sub/sub_ERRORIF_WrongInputList_2_f16/input-1.json b/operators/ew_binary/sub/sub_ERRORIF_WrongInputList_2_f16/input-1.json
new file mode 100644
index 000000000..6f6887d05
--- /dev/null
+++ b/operators/ew_binary/sub/sub_ERRORIF_WrongInputList_2_f16/input-1.json
@@ -0,0 +1,6 @@
+{
+ "type": "float16",
+ "data": [
+ 0.86376953125
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_binary/sub/sub_ERRORIF_WrongInputList_2_f16/test.json b/operators/ew_binary/sub/sub_ERRORIF_WrongInputList_2_f16/test.json
new file mode 100644
index 000000000..351358351
--- /dev/null
+++ b/operators/ew_binary/sub/sub_ERRORIF_WrongInputList_2_f16/test.json
@@ -0,0 +1,57 @@
+{
+ version: {
+ _major: 0,
+ _minor: 51,
+ _patch: 0,
+ _draft: true
+ },
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "SUB",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0",
+ "input-1",
+ "eiDummyInput"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 2
+ ],
+ type: "FP16"
+ },
+ {
+ name: "input-1",
+ shape: [
+ 1
+ ],
+ type: "FP16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 2
+ ],
+ type: "FP16"
+ }
+ ],
+ inputs: [
+ "input-0",
+ "input-1"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}