aboutsummaryrefslogtreecommitdiff
path: root/operators/ew_ternary/select/select_ERRORIF_WrongInputType_36_i4
diff options
context:
space:
mode:
authorJeremy Johnson <jeremy.johnson@arm.com>2022-06-17 13:06:48 +0100
committerJeremy Johnson <jeremy.johnson@arm.com>2022-06-17 13:06:48 +0100
commitc4092d6680fe919b2631f273cdfb3342fcae4bcc (patch)
treeb38f12ad7af070d014eb13a4056eeddeb664b40b /operators/ew_ternary/select/select_ERRORIF_WrongInputType_36_i4
parent4d31d66df328978cf99dd65266aec0e24e334e8e (diff)
downloadconformance_tests-c4092d6680fe919b2631f273cdfb3342fcae4bcc.tar.gz
Updating SELECT tests for v0.30.0 release
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: I01b98dc43d4fccfde79e04194846b70604e6cdf5
Diffstat (limited to 'operators/ew_ternary/select/select_ERRORIF_WrongInputType_36_i4')
-rw-r--r--operators/ew_ternary/select/select_ERRORIF_WrongInputType_36_i4/desc.json22
-rw-r--r--operators/ew_ternary/select/select_ERRORIF_WrongInputType_36_i4/input-0.json41
-rw-r--r--operators/ew_ternary/select/select_ERRORIF_WrongInputType_36_i4/input-1.json41
-rw-r--r--operators/ew_ternary/select/select_ERRORIF_WrongInputType_36_i4/input-2.json6
-rw-r--r--operators/ew_ternary/select/select_ERRORIF_WrongInputType_36_i4/test.json65
5 files changed, 175 insertions, 0 deletions
diff --git a/operators/ew_ternary/select/select_ERRORIF_WrongInputType_36_i4/desc.json b/operators/ew_ternary/select/select_ERRORIF_WrongInputType_36_i4/desc.json
new file mode 100644
index 000000000..d504c010e
--- /dev/null
+++ b/operators/ew_ternary/select/select_ERRORIF_WrongInputType_36_i4/desc.json
@@ -0,0 +1,22 @@
+{
+ "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"
+} \ No newline at end of file
diff --git a/operators/ew_ternary/select/select_ERRORIF_WrongInputType_36_i4/input-0.json b/operators/ew_ternary/select/select_ERRORIF_WrongInputType_36_i4/input-0.json
new file mode 100644
index 000000000..f02cc6fe6
--- /dev/null
+++ b/operators/ew_ternary/select/select_ERRORIF_WrongInputType_36_i4/input-0.json
@@ -0,0 +1,41 @@
+{
+ "type": "bool",
+ "data": [
+ false,
+ false,
+ false,
+ true,
+ false,
+ false,
+ false,
+ true,
+ true,
+ false,
+ true,
+ false,
+ false,
+ true,
+ false,
+ false,
+ false,
+ false,
+ false,
+ true,
+ true,
+ false,
+ true,
+ true,
+ true,
+ true,
+ false,
+ true,
+ true,
+ false,
+ false,
+ true,
+ false,
+ false,
+ true,
+ true
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_ternary/select/select_ERRORIF_WrongInputType_36_i4/input-1.json b/operators/ew_ternary/select/select_ERRORIF_WrongInputType_36_i4/input-1.json
new file mode 100644
index 000000000..1b31df5eb
--- /dev/null
+++ b/operators/ew_ternary/select/select_ERRORIF_WrongInputType_36_i4/input-1.json
@@ -0,0 +1,41 @@
+{
+ "type": "int32",
+ "data": [
+ -3,
+ 1,
+ -7,
+ 7,
+ 4,
+ 3,
+ -7,
+ -5,
+ -1,
+ -2,
+ -2,
+ -4,
+ 4,
+ 2,
+ -7,
+ -4,
+ -5,
+ -7,
+ 7,
+ -4,
+ 0,
+ 4,
+ 5,
+ 6,
+ 3,
+ -6,
+ -3,
+ -7,
+ 5,
+ -4,
+ 6,
+ -3,
+ -2,
+ 5,
+ -3,
+ -7
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_ternary/select/select_ERRORIF_WrongInputType_36_i4/input-2.json b/operators/ew_ternary/select/select_ERRORIF_WrongInputType_36_i4/input-2.json
new file mode 100644
index 000000000..f60c990f8
--- /dev/null
+++ b/operators/ew_ternary/select/select_ERRORIF_WrongInputType_36_i4/input-2.json
@@ -0,0 +1,6 @@
+{
+ "type": "int32",
+ "data": [
+ -7
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_ternary/select/select_ERRORIF_WrongInputType_36_i4/test.json b/operators/ew_ternary/select/select_ERRORIF_WrongInputType_36_i4/test.json
new file mode 100644
index 000000000..9187214d2
--- /dev/null
+++ b/operators/ew_ternary/select/select_ERRORIF_WrongInputType_36_i4/test.json
@@ -0,0 +1,65 @@
+{
+ version: {
+ _major: 0,
+ _minor: 30,
+ _patch: 0,
+ _draft: false
+ },
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "SELECT",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0",
+ "input-1",
+ "input-2"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 36
+ ],
+ type: "BOOL"
+ },
+ {
+ name: "input-1",
+ shape: [
+ 36
+ ],
+ type: "INT4"
+ },
+ {
+ name: "input-2",
+ shape: [
+ 1
+ ],
+ type: "INT4"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 36
+ ],
+ type: "INT4"
+ }
+ ],
+ inputs: [
+ "input-0",
+ "input-1",
+ "input-2"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}