aboutsummaryrefslogtreecommitdiff
path: root/operators/ew_ternary/select/select_20_i8
diff options
context:
space:
mode:
Diffstat (limited to 'operators/ew_ternary/select/select_20_i8')
-rw-r--r--operators/ew_ternary/select/select_20_i8/Conformance-result-0.json25
-rw-r--r--operators/ew_ternary/select/select_20_i8/desc.json24
-rw-r--r--operators/ew_ternary/select/select_20_i8/input-0.json25
-rw-r--r--operators/ew_ternary/select/select_20_i8/input-1.json25
-rw-r--r--operators/ew_ternary/select/select_20_i8/input-2.json6
-rw-r--r--operators/ew_ternary/select/select_20_i8/test.json65
6 files changed, 170 insertions, 0 deletions
diff --git a/operators/ew_ternary/select/select_20_i8/Conformance-result-0.json b/operators/ew_ternary/select/select_20_i8/Conformance-result-0.json
new file mode 100644
index 000000000..d5806fbd4
--- /dev/null
+++ b/operators/ew_ternary/select/select_20_i8/Conformance-result-0.json
@@ -0,0 +1,25 @@
+{
+ "type": "int32",
+ "data": [
+ 33,
+ -45,
+ 33,
+ -34,
+ -109,
+ -8,
+ 75,
+ 33,
+ 33,
+ 33,
+ 33,
+ 33,
+ -44,
+ 33,
+ 16,
+ 43,
+ 112,
+ -17,
+ 33,
+ 85
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_ternary/select/select_20_i8/desc.json b/operators/ew_ternary/select/select_20_i8/desc.json
new file mode 100644
index 000000000..8270b964d
--- /dev/null
+++ b/operators/ew_ternary/select/select_20_i8/desc.json
@@ -0,0 +1,24 @@
+{
+ "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": 0,
+ "expected_failure": false,
+ "expected_result_file": [
+ "Conformance-result-0.npy"
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_ternary/select/select_20_i8/input-0.json b/operators/ew_ternary/select/select_20_i8/input-0.json
new file mode 100644
index 000000000..c7af84290
--- /dev/null
+++ b/operators/ew_ternary/select/select_20_i8/input-0.json
@@ -0,0 +1,25 @@
+{
+ "type": "bool",
+ "data": [
+ false,
+ true,
+ false,
+ true,
+ true,
+ true,
+ true,
+ false,
+ false,
+ false,
+ false,
+ false,
+ true,
+ false,
+ true,
+ true,
+ true,
+ true,
+ false,
+ true
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_ternary/select/select_20_i8/input-1.json b/operators/ew_ternary/select/select_20_i8/input-1.json
new file mode 100644
index 000000000..1c8016ef2
--- /dev/null
+++ b/operators/ew_ternary/select/select_20_i8/input-1.json
@@ -0,0 +1,25 @@
+{
+ "type": "int32",
+ "data": [
+ -23,
+ -45,
+ 103,
+ -34,
+ -109,
+ -8,
+ 75,
+ -80,
+ -10,
+ -95,
+ 47,
+ -7,
+ -44,
+ -70,
+ 16,
+ 43,
+ 112,
+ -17,
+ -87,
+ 85
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_ternary/select/select_20_i8/input-2.json b/operators/ew_ternary/select/select_20_i8/input-2.json
new file mode 100644
index 000000000..b6b28a2d6
--- /dev/null
+++ b/operators/ew_ternary/select/select_20_i8/input-2.json
@@ -0,0 +1,6 @@
+{
+ "type": "int32",
+ "data": [
+ 33
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_ternary/select/select_20_i8/test.json b/operators/ew_ternary/select/select_20_i8/test.json
new file mode 100644
index 000000000..f1b69ddcb
--- /dev/null
+++ b/operators/ew_ternary/select/select_20_i8/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: [
+ 20
+ ],
+ type: "BOOL"
+ },
+ {
+ name: "input-1",
+ shape: [
+ 20
+ ],
+ type: "INT8"
+ },
+ {
+ name: "input-2",
+ shape: [
+ 1
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 20
+ ],
+ type: "INT8"
+ }
+ ],
+ inputs: [
+ "input-0",
+ "input-1",
+ "input-2"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}