aboutsummaryrefslogtreecommitdiff
path: root/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListThenGraphMismatch_11_i32_cond0
diff options
context:
space:
mode:
authorJeremy Johnson <jeremy.johnson@arm.com>2022-06-17 13:06:07 +0100
committerJeremy Johnson <jeremy.johnson@arm.com>2022-06-17 13:06:07 +0100
commit8e8683119f76463973cd7e84cfd8e966451074ba (patch)
tree1e8d2ac2878fdcb97996166d079a0ba9c0684940 /operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListThenGraphMismatch_11_i32_cond0
parent9faada17a2a70bd86b1755490eb3acf65654ceaf (diff)
downloadconformance_tests-8e8683119f76463973cd7e84cfd8e966451074ba.tar.gz
Updating COND_IF_BINARY tests for v0.30.0 release
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: I2c09e55b4d6f040c187586ff320dd863183b6ebd
Diffstat (limited to 'operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListThenGraphMismatch_11_i32_cond0')
-rw-r--r--operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListThenGraphMismatch_11_i32_cond0/desc.json20
-rw-r--r--operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListThenGraphMismatch_11_i32_cond0/input-0.json16
-rw-r--r--operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListThenGraphMismatch_11_i32_cond0/input-1.json16
-rw-r--r--operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListThenGraphMismatch_11_i32_cond0/test.json173
4 files changed, 225 insertions, 0 deletions
diff --git a/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListThenGraphMismatch_11_i32_cond0/desc.json b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListThenGraphMismatch_11_i32_cond0/desc.json
new file mode 100644
index 000000000..e0296cbed
--- /dev/null
+++ b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListThenGraphMismatch_11_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": "Output 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_CondIfOutputListThenGraphMismatch_11_i32_cond0/input-0.json b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListThenGraphMismatch_11_i32_cond0/input-0.json
new file mode 100644
index 000000000..1fc75e159
--- /dev/null
+++ b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListThenGraphMismatch_11_i32_cond0/input-0.json
@@ -0,0 +1,16 @@
+{
+ "type": "int32",
+ "data": [
+ 14779,
+ 25200,
+ 27240,
+ -2514,
+ -26083,
+ 2576,
+ -4419,
+ 26600,
+ -28222,
+ 7835,
+ 17373
+ ]
+} \ No newline at end of file
diff --git a/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListThenGraphMismatch_11_i32_cond0/input-1.json b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListThenGraphMismatch_11_i32_cond0/input-1.json
new file mode 100644
index 000000000..466428776
--- /dev/null
+++ b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListThenGraphMismatch_11_i32_cond0/input-1.json
@@ -0,0 +1,16 @@
+{
+ "type": "int32",
+ "data": [
+ -7071,
+ 12822,
+ 12237,
+ -18344,
+ 1756,
+ 16275,
+ -24798,
+ 17631,
+ 20270,
+ -24959,
+ 29164
+ ]
+} \ No newline at end of file
diff --git a/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListThenGraphMismatch_11_i32_cond0/test.json b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListThenGraphMismatch_11_i32_cond0/test.json
new file mode 100644
index 000000000..144a9b6f0
--- /dev/null
+++ b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListThenGraphMismatch_11_i32_cond0/test.json
@@ -0,0 +1,173 @@
+{
+ 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: [
+ 11
+ ],
+ type: "INT32"
+ },
+ {
+ name: "input-1",
+ shape: [
+ 11
+ ],
+ type: "INT32"
+ },
+ {
+ name: "const-2",
+ shape: [
+
+ ],
+ type: "BOOL",
+ data: [
+ 0
+ ]
+ },
+ {
+ name: "result-0",
+ shape: [
+ 11
+ ],
+ 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: [
+ 11
+ ],
+ type: "INT32"
+ },
+ {
+ name: "input-1",
+ shape: [
+ 11
+ ],
+ type: "INT32"
+ },
+ {
+ name: "result-1",
+ shape: [
+ 9
+ ],
+ 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: [
+ 11
+ ],
+ type: "INT32"
+ },
+ {
+ name: "input-1",
+ shape: [
+ 11
+ ],
+ type: "INT32"
+ },
+ {
+ name: "result-2",
+ shape: [
+ 11
+ ],
+ type: "INT32"
+ }
+ ],
+ inputs: [
+ "input-0",
+ "input-1"
+ ],
+ outputs: [
+ "result-2"
+ ]
+ }
+ ]
+}