aboutsummaryrefslogtreecommitdiff
path: root/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfInputListThenGraphMismatch_13x6_i32_cond0
diff options
context:
space:
mode:
Diffstat (limited to 'operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfInputListThenGraphMismatch_13x6_i32_cond0')
-rw-r--r--operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfInputListThenGraphMismatch_13x6_i32_cond0/desc.json20
-rw-r--r--operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfInputListThenGraphMismatch_13x6_i32_cond0/input-0.json109
-rw-r--r--operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfInputListThenGraphMismatch_13x6_i32_cond0/input-1.json109
-rw-r--r--operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfInputListThenGraphMismatch_13x6_i32_cond0/test.json182
4 files changed, 420 insertions, 0 deletions
diff --git a/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfInputListThenGraphMismatch_13x6_i32_cond0/desc.json b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfInputListThenGraphMismatch_13x6_i32_cond0/desc.json
new file mode 100644
index 000000000..a31cd6c10
--- /dev/null
+++ b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfInputListThenGraphMismatch_13x6_i32_cond0/desc.json
@@ -0,0 +1,20 @@
+{
+ "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": "Input list shape does not match then-graph shape"
+} \ No newline at end of file
diff --git a/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfInputListThenGraphMismatch_13x6_i32_cond0/input-0.json b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfInputListThenGraphMismatch_13x6_i32_cond0/input-0.json
new file mode 100644
index 000000000..e603681ad
--- /dev/null
+++ b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfInputListThenGraphMismatch_13x6_i32_cond0/input-0.json
@@ -0,0 +1,109 @@
+{
+ "type": "int32",
+ "data": [
+ [
+ -2295,
+ 9449,
+ -9831,
+ -19189,
+ -1018,
+ 14047
+ ],
+ [
+ -19361,
+ 6405,
+ 29853,
+ 32050,
+ 29552,
+ -10493
+ ],
+ [
+ -26664,
+ -18225,
+ 28059,
+ 20901,
+ -21284,
+ -20742
+ ],
+ [
+ -523,
+ -12858,
+ -49,
+ 3382,
+ -31976,
+ 19899
+ ],
+ [
+ -23333,
+ -18423,
+ 31462,
+ 26614,
+ 17607,
+ -29345
+ ],
+ [
+ 9852,
+ -1610,
+ -1640,
+ -4273,
+ -8260,
+ 5996
+ ],
+ [
+ 284,
+ 14159,
+ 12416,
+ 16659,
+ 1179,
+ -32574
+ ],
+ [
+ 5624,
+ -9687,
+ -18279,
+ -10626,
+ -4112,
+ -7788
+ ],
+ [
+ 29944,
+ -29793,
+ -31973,
+ -9571,
+ -14449,
+ -9604
+ ],
+ [
+ 15689,
+ 25171,
+ 15858,
+ 31454,
+ 18992,
+ -10825
+ ],
+ [
+ -26355,
+ -14554,
+ -13381,
+ -19756,
+ 27785,
+ 3539
+ ],
+ [
+ -22781,
+ -17753,
+ -15380,
+ 12560,
+ 29073,
+ -32539
+ ],
+ [
+ -27831,
+ -8203,
+ 23099,
+ -11266,
+ -18713,
+ -28752
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfInputListThenGraphMismatch_13x6_i32_cond0/input-1.json b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfInputListThenGraphMismatch_13x6_i32_cond0/input-1.json
new file mode 100644
index 000000000..10c2725b6
--- /dev/null
+++ b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfInputListThenGraphMismatch_13x6_i32_cond0/input-1.json
@@ -0,0 +1,109 @@
+{
+ "type": "int32",
+ "data": [
+ [
+ 6333,
+ -23513,
+ 25255,
+ -4088,
+ 30581,
+ 4095
+ ],
+ [
+ -6921,
+ 9879,
+ 1109,
+ 13014,
+ -23597,
+ 1132
+ ],
+ [
+ 24175,
+ -20958,
+ 1865,
+ 32389,
+ -1805,
+ -8689
+ ],
+ [
+ -28713,
+ -11812,
+ -9610,
+ 19484,
+ 15288,
+ 10450
+ ],
+ [
+ 15101,
+ 14457,
+ -16522,
+ 14394,
+ -31889,
+ 16566
+ ],
+ [
+ -5499,
+ -20850,
+ -5267,
+ -2784,
+ 10274,
+ 25440
+ ],
+ [
+ -9262,
+ 29925,
+ -866,
+ -11455,
+ 11821,
+ 3298
+ ],
+ [
+ -25567,
+ 31549,
+ -27334,
+ 3081,
+ 24972,
+ 2704
+ ],
+ [
+ -2470,
+ 9325,
+ -3887,
+ -30666,
+ 18357,
+ -22235
+ ],
+ [
+ 575,
+ 26764,
+ 1046,
+ 32622,
+ -7772,
+ 17141
+ ],
+ [
+ -9538,
+ 31266,
+ -18351,
+ -2829,
+ -31939,
+ 31553
+ ],
+ [
+ 28412,
+ 18676,
+ 17456,
+ -26496,
+ -17682,
+ 3623
+ ],
+ [
+ 11953,
+ -29756,
+ -1060,
+ -18701,
+ 16812,
+ 29468
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfInputListThenGraphMismatch_13x6_i32_cond0/test.json b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfInputListThenGraphMismatch_13x6_i32_cond0/test.json
new file mode 100644
index 000000000..4df13a14e
--- /dev/null
+++ b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfInputListThenGraphMismatch_13x6_i32_cond0/test.json
@@ -0,0 +1,182 @@
+{
+ version: {
+ _major: 0,
+ _minor: 30,
+ _patch: 0,
+ _draft: false
+ },
+ 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: [
+ 13,
+ 6
+ ],
+ type: "INT32"
+ },
+ {
+ name: "input-1",
+ shape: [
+ 13,
+ 6
+ ],
+ type: "INT32"
+ },
+ {
+ name: "const-2",
+ shape: [
+
+ ],
+ type: "BOOL",
+ data: [
+ 0
+ ]
+ },
+ {
+ name: "result-0",
+ shape: [
+ 13,
+ 6
+ ],
+ type: "INT32"
+ }
+ ],
+ inputs: [
+ "input-0",
+ "input-1"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ },
+ {
+ name: "THEN_BLOCK",
+ operators: [
+ {
+ op: "ADD",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0",
+ "input-1"
+ ],
+ outputs: [
+ "result-1"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 15,
+ 9
+ ],
+ type: "INT32"
+ },
+ {
+ name: "input-1",
+ shape: [
+ 13,
+ 6
+ ],
+ type: "INT32"
+ },
+ {
+ name: "result-1",
+ shape: [
+ 13,
+ 6
+ ],
+ type: "INT32"
+ }
+ ],
+ inputs: [
+ "input-0",
+ "input-1"
+ ],
+ outputs: [
+ "result-1"
+ ]
+ },
+ {
+ name: "ELSE_BLOCK",
+ operators: [
+ {
+ op: "SUB",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0",
+ "input-1"
+ ],
+ outputs: [
+ "result-2"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 13,
+ 6
+ ],
+ type: "INT32"
+ },
+ {
+ name: "input-1",
+ shape: [
+ 13,
+ 6
+ ],
+ type: "INT32"
+ },
+ {
+ name: "result-2",
+ shape: [
+ 13,
+ 6
+ ],
+ type: "INT32"
+ }
+ ],
+ inputs: [
+ "input-0",
+ "input-1"
+ ],
+ outputs: [
+ "result-2"
+ ]
+ }
+ ]
+}