aboutsummaryrefslogtreecommitdiff
path: root/operators/ew_ternary/select/select_ERRORIF_WrongInputType_12_i4
diff options
context:
space:
mode:
authorJeremy Johnson <jeremy.johnson@arm.com>2022-10-13 12:50:23 +0100
committerJeremy Johnson <jeremy.johnson@arm.com>2022-10-13 12:50:23 +0100
commite6f9063246205683ac621abf062cddeb8bae1de9 (patch)
treec7c9af11210300a3f25595fdd69a20defda4752c /operators/ew_ternary/select/select_ERRORIF_WrongInputType_12_i4
parent4cc1201dde80193611cc8e14a7886aba96a3da09 (diff)
downloadconformance_tests-e6f9063246205683ac621abf062cddeb8bae1de9.tar.gz
Updating EW_TERNARY tests for FP16 and accumulator types
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: Icd7bfb5c9db6f8444077881c875e3e991433d13c
Diffstat (limited to 'operators/ew_ternary/select/select_ERRORIF_WrongInputType_12_i4')
-rw-r--r--operators/ew_ternary/select/select_ERRORIF_WrongInputType_12_i4/desc.json26
-rw-r--r--operators/ew_ternary/select/select_ERRORIF_WrongInputType_12_i4/input-0.json17
-rw-r--r--operators/ew_ternary/select/select_ERRORIF_WrongInputType_12_i4/input-1.json17
-rw-r--r--operators/ew_ternary/select/select_ERRORIF_WrongInputType_12_i4/input-2.json6
-rw-r--r--operators/ew_ternary/select/select_ERRORIF_WrongInputType_12_i4/test.json65
5 files changed, 131 insertions, 0 deletions
diff --git a/operators/ew_ternary/select/select_ERRORIF_WrongInputType_12_i4/desc.json b/operators/ew_ternary/select/select_ERRORIF_WrongInputType_12_i4/desc.json
new file mode 100644
index 000000000..32f91dd72
--- /dev/null
+++ b/operators/ew_ternary/select/select_ERRORIF_WrongInputType_12_i4/desc.json
@@ -0,0 +1,26 @@
+{
+ "tosa_file": "test.json",
+ "ifm_name": [
+ "input-0",
+ "input-1",
+ "input-2"
+ ],
+ "ifm_file": [
+ "input-0.npy",
+ "input-1.npy",
+ "input-2.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/ew_ternary/select/select_ERRORIF_WrongInputType_12_i4/input-0.json b/operators/ew_ternary/select/select_ERRORIF_WrongInputType_12_i4/input-0.json
new file mode 100644
index 000000000..4b4732384
--- /dev/null
+++ b/operators/ew_ternary/select/select_ERRORIF_WrongInputType_12_i4/input-0.json
@@ -0,0 +1,17 @@
+{
+ "type": "bool",
+ "data": [
+ true,
+ false,
+ false,
+ true,
+ false,
+ true,
+ false,
+ true,
+ true,
+ true,
+ false,
+ true
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_ternary/select/select_ERRORIF_WrongInputType_12_i4/input-1.json b/operators/ew_ternary/select/select_ERRORIF_WrongInputType_12_i4/input-1.json
new file mode 100644
index 000000000..c2a5493b3
--- /dev/null
+++ b/operators/ew_ternary/select/select_ERRORIF_WrongInputType_12_i4/input-1.json
@@ -0,0 +1,17 @@
+{
+ "type": "int32",
+ "data": [
+ 4,
+ 6,
+ 2,
+ 7,
+ -5,
+ -1,
+ -7,
+ -4,
+ -7,
+ 7,
+ -5,
+ -5
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_ternary/select/select_ERRORIF_WrongInputType_12_i4/input-2.json b/operators/ew_ternary/select/select_ERRORIF_WrongInputType_12_i4/input-2.json
new file mode 100644
index 000000000..2076bd515
--- /dev/null
+++ b/operators/ew_ternary/select/select_ERRORIF_WrongInputType_12_i4/input-2.json
@@ -0,0 +1,6 @@
+{
+ "type": "int32",
+ "data": [
+ -6
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_ternary/select/select_ERRORIF_WrongInputType_12_i4/test.json b/operators/ew_ternary/select/select_ERRORIF_WrongInputType_12_i4/test.json
new file mode 100644
index 000000000..a50ab9264
--- /dev/null
+++ b/operators/ew_ternary/select/select_ERRORIF_WrongInputType_12_i4/test.json
@@ -0,0 +1,65 @@
+{
+ version: {
+ _major: 0,
+ _minor: 41,
+ _patch: 0,
+ _draft: true
+ },
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "SELECT",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0",
+ "input-1",
+ "input-2"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 12
+ ],
+ type: "BOOL"
+ },
+ {
+ name: "input-1",
+ shape: [
+ 12
+ ],
+ type: "INT4"
+ },
+ {
+ name: "input-2",
+ shape: [
+ 1
+ ],
+ type: "INT4"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 12
+ ],
+ type: "INT4"
+ }
+ ],
+ inputs: [
+ "input-0",
+ "input-1",
+ "input-2"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}