aboutsummaryrefslogtreecommitdiff
path: root/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListThenGraphMismatch_12_i16_cond0
diff options
context:
space:
mode:
Diffstat (limited to 'operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListThenGraphMismatch_12_i16_cond0')
-rw-r--r--operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListThenGraphMismatch_12_i16_cond0/desc.json24
-rw-r--r--operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListThenGraphMismatch_12_i16_cond0/input-0.json17
-rw-r--r--operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListThenGraphMismatch_12_i16_cond0/input-1.json17
-rw-r--r--operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListThenGraphMismatch_12_i16_cond0/test.json173
4 files changed, 231 insertions, 0 deletions
diff --git a/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListThenGraphMismatch_12_i16_cond0/desc.json b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListThenGraphMismatch_12_i16_cond0/desc.json
new file mode 100644
index 000000000..a4bd0ea1d
--- /dev/null
+++ b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListThenGraphMismatch_12_i16_cond0/desc.json
@@ -0,0 +1,24 @@
+{
+ "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": "Output list shape does not match then-graph shape",
+ "profile": [
+ "tosa-bi",
+ "tosa-mi"
+ ]
+} \ No newline at end of file
diff --git a/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListThenGraphMismatch_12_i16_cond0/input-0.json b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListThenGraphMismatch_12_i16_cond0/input-0.json
new file mode 100644
index 000000000..a7de6c819
--- /dev/null
+++ b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListThenGraphMismatch_12_i16_cond0/input-0.json
@@ -0,0 +1,17 @@
+{
+ "type": "int32",
+ "data": [
+ 22,
+ 29,
+ 13,
+ 0,
+ 7,
+ 4,
+ 22,
+ 20,
+ 11,
+ 15,
+ 27,
+ 10
+ ]
+} \ No newline at end of file
diff --git a/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListThenGraphMismatch_12_i16_cond0/input-1.json b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListThenGraphMismatch_12_i16_cond0/input-1.json
new file mode 100644
index 000000000..da080669e
--- /dev/null
+++ b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListThenGraphMismatch_12_i16_cond0/input-1.json
@@ -0,0 +1,17 @@
+{
+ "type": "int32",
+ "data": [
+ 27,
+ 5,
+ 2,
+ 8,
+ 1,
+ 2,
+ 14,
+ 13,
+ 7,
+ 5,
+ 7,
+ 23
+ ]
+} \ No newline at end of file
diff --git a/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListThenGraphMismatch_12_i16_cond0/test.json b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListThenGraphMismatch_12_i16_cond0/test.json
new file mode 100644
index 000000000..0c73a740f
--- /dev/null
+++ b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListThenGraphMismatch_12_i16_cond0/test.json
@@ -0,0 +1,173 @@
+{
+ version: {
+ _major: 0,
+ _minor: 41,
+ _patch: 0,
+ _draft: true
+ },
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "CONST",
+ attribute_type: "NONE",
+ inputs: [
+
+ ],
+ outputs: [
+ "const-2"
+ ]
+ },
+ {
+ op: "COND_IF",
+ attribute_type: "CondIfAttribute",
+ attribute: {
+ then_branch: "THEN_BLOCK",
+ else_branch: "ELSE_BLOCK"
+ },
+ inputs: [
+ "const-2",
+ "input-0",
+ "input-1"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 12
+ ],
+ type: "INT16"
+ },
+ {
+ name: "input-1",
+ shape: [
+ 12
+ ],
+ type: "INT16"
+ },
+ {
+ name: "const-2",
+ shape: [
+
+ ],
+ type: "BOOL",
+ data: [
+ 0
+ ]
+ },
+ {
+ name: "result-0",
+ shape: [
+ 12
+ ],
+ type: "INT16"
+ }
+ ],
+ inputs: [
+ "input-0",
+ "input-1"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ },
+ {
+ name: "THEN_BLOCK",
+ operators: [
+ {
+ op: "LOGICAL_RIGHT_SHIFT",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0",
+ "input-1"
+ ],
+ outputs: [
+ "result-1"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 12
+ ],
+ type: "INT16"
+ },
+ {
+ name: "input-1",
+ shape: [
+ 12
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-1",
+ shape: [
+ 10
+ ],
+ type: "INT16"
+ }
+ ],
+ inputs: [
+ "input-0",
+ "input-1"
+ ],
+ outputs: [
+ "result-1"
+ ]
+ },
+ {
+ name: "ELSE_BLOCK",
+ operators: [
+ {
+ op: "LOGICAL_LEFT_SHIFT",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0",
+ "input-1"
+ ],
+ outputs: [
+ "result-2"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 12
+ ],
+ type: "INT16"
+ },
+ {
+ name: "input-1",
+ shape: [
+ 12
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-2",
+ shape: [
+ 12
+ ],
+ type: "INT16"
+ }
+ ],
+ inputs: [
+ "input-0",
+ "input-1"
+ ],
+ outputs: [
+ "result-2"
+ ]
+ }
+ ]
+}