aboutsummaryrefslogtreecommitdiff
path: root/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfCondNotMatchingBool_12x9_i32_cond0
diff options
context:
space:
mode:
authorJeremy Johnson <jeremy.johnson@arm.com>2023-01-03 16:24:52 +0000
committerJeremy Johnson <jeremy.johnson@arm.com>2023-01-03 16:26:20 +0000
commit59dba4bee812c3fddd8d5ed20464f8417a6997c4 (patch)
tree3bc4e8e3e87a7253d52c73599c0e78df572fb320 /operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfCondNotMatchingBool_12x9_i32_cond0
parentff47fea5f558845c7ff6bd07e89318a108736aa2 (diff)
downloadconformance_tests-59dba4bee812c3fddd8d5ed20464f8417a6997c4.tar.gz
Updating CONTROL_FLOW tests for new ERROR_IF cases
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: Iab804b9fa6bd37f609b1a8ccda84667a01289c91
Diffstat (limited to 'operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfCondNotMatchingBool_12x9_i32_cond0')
-rw-r--r--operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfCondNotMatchingBool_12x9_i32_cond0/desc.json24
-rw-r--r--operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfCondNotMatchingBool_12x9_i32_cond0/input-0.json137
-rw-r--r--operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfCondNotMatchingBool_12x9_i32_cond0/input-1.json137
-rw-r--r--operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfCondNotMatchingBool_12x9_i32_cond0/test.json185
4 files changed, 483 insertions, 0 deletions
diff --git a/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfCondNotMatchingBool_12x9_i32_cond0/desc.json b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfCondNotMatchingBool_12x9_i32_cond0/desc.json
new file mode 100644
index 000000000..eaf7d5e44
--- /dev/null
+++ b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfCondNotMatchingBool_12x9_i32_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": "Conditional tensor does not match bool type",
+ "profile": [
+ "tosa-bi",
+ "tosa-mi"
+ ]
+} \ No newline at end of file
diff --git a/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfCondNotMatchingBool_12x9_i32_cond0/input-0.json b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfCondNotMatchingBool_12x9_i32_cond0/input-0.json
new file mode 100644
index 000000000..7e34bb954
--- /dev/null
+++ b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfCondNotMatchingBool_12x9_i32_cond0/input-0.json
@@ -0,0 +1,137 @@
+{
+ "type": "int32",
+ "data": [
+ [
+ 11556,
+ 21296,
+ -24378,
+ 15599,
+ 11458,
+ 16054,
+ -17976,
+ 16693,
+ 7412
+ ],
+ [
+ -631,
+ -7182,
+ -25487,
+ -3080,
+ -1890,
+ 25841,
+ -15552,
+ 5403,
+ -31243
+ ],
+ [
+ -18330,
+ 7398,
+ -24016,
+ -29336,
+ -455,
+ -4757,
+ -17943,
+ 9991,
+ 7384
+ ],
+ [
+ -547,
+ 1087,
+ 9408,
+ 21395,
+ 27459,
+ -5339,
+ -8142,
+ -31228,
+ 2968
+ ],
+ [
+ 17848,
+ -26275,
+ -24019,
+ -5542,
+ -5660,
+ 15284,
+ 9066,
+ -3212,
+ 7461
+ ],
+ [
+ 15338,
+ -15078,
+ 23725,
+ -19448,
+ 11409,
+ 24976,
+ -29920,
+ -21294,
+ -11197
+ ],
+ [
+ 20631,
+ 7055,
+ 21128,
+ 13946,
+ 22383,
+ 18156,
+ -29042,
+ -3621,
+ 28416
+ ],
+ [
+ 676,
+ 23564,
+ -32296,
+ 816,
+ -19930,
+ -17570,
+ -23597,
+ 24379,
+ 16064
+ ],
+ [
+ -8047,
+ 31677,
+ -31538,
+ -27743,
+ 7612,
+ -9046,
+ 14850,
+ 20140,
+ 6383
+ ],
+ [
+ -28305,
+ 3428,
+ -16100,
+ -9996,
+ -19062,
+ -9891,
+ 6025,
+ -429,
+ 11224
+ ],
+ [
+ -2076,
+ 12690,
+ -12593,
+ -20953,
+ -10125,
+ -11628,
+ -3915,
+ -1623,
+ -2525
+ ],
+ [
+ -2442,
+ -29977,
+ -17862,
+ -5548,
+ -411,
+ 21266,
+ -27698,
+ -23901,
+ 18073
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfCondNotMatchingBool_12x9_i32_cond0/input-1.json b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfCondNotMatchingBool_12x9_i32_cond0/input-1.json
new file mode 100644
index 000000000..613b263d4
--- /dev/null
+++ b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfCondNotMatchingBool_12x9_i32_cond0/input-1.json
@@ -0,0 +1,137 @@
+{
+ "type": "int32",
+ "data": [
+ [
+ 23006,
+ -18664,
+ -26101,
+ -10676,
+ 8969,
+ -25697,
+ 5036,
+ -17362,
+ 25283
+ ],
+ [
+ -10764,
+ -14603,
+ 31209,
+ 12867,
+ -5953,
+ 5068,
+ -24170,
+ 25074,
+ -29748
+ ],
+ [
+ -3726,
+ -4954,
+ -3884,
+ 25131,
+ 9838,
+ 10164,
+ 3399,
+ 29584,
+ 4175
+ ],
+ [
+ 1716,
+ 16965,
+ 28749,
+ -23870,
+ -29915,
+ 19955,
+ 22741,
+ 12137,
+ 27736
+ ],
+ [
+ 18335,
+ 30940,
+ -32265,
+ 22007,
+ 4682,
+ -27152,
+ 2269,
+ -7903,
+ -22324
+ ],
+ [
+ -20283,
+ 29044,
+ -24091,
+ 4683,
+ 31170,
+ 28643,
+ 31739,
+ 1870,
+ -10219
+ ],
+ [
+ 930,
+ -26015,
+ -21916,
+ 11986,
+ 23140,
+ 27804,
+ 5802,
+ -1691,
+ 301
+ ],
+ [
+ 4212,
+ -21131,
+ 14335,
+ 12965,
+ 25621,
+ 20011,
+ 1353,
+ 29522,
+ 871
+ ],
+ [
+ 18118,
+ -2329,
+ 24793,
+ -7706,
+ -8525,
+ -6174,
+ 29624,
+ -2803,
+ -23872
+ ],
+ [
+ -27033,
+ -14958,
+ -114,
+ 17762,
+ 29073,
+ 26978,
+ -16434,
+ 18378,
+ 31094
+ ],
+ [
+ -12589,
+ 2355,
+ 14598,
+ -1935,
+ 13102,
+ 5634,
+ -2694,
+ 11099,
+ 8881
+ ],
+ [
+ 30270,
+ -24490,
+ -23282,
+ -17248,
+ -3127,
+ 11902,
+ 16740,
+ -22559,
+ 25405
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfCondNotMatchingBool_12x9_i32_cond0/test.json b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfCondNotMatchingBool_12x9_i32_cond0/test.json
new file mode 100644
index 000000000..a4670dd2c
--- /dev/null
+++ b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfCondNotMatchingBool_12x9_i32_cond0/test.json
@@ -0,0 +1,185 @@
+{
+ version: {
+ _major: 0,
+ _minor: 51,
+ _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,
+ 9
+ ],
+ type: "INT32"
+ },
+ {
+ name: "input-1",
+ shape: [
+ 12,
+ 9
+ ],
+ type: "INT32"
+ },
+ {
+ name: "const-2",
+ shape: [
+
+ ],
+ type: "FP32",
+ data: [
+ 0,
+ 0,
+ 0,
+ 0
+ ]
+ },
+ {
+ name: "result-0",
+ shape: [
+ 12,
+ 9
+ ],
+ 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: [
+ 12,
+ 9
+ ],
+ type: "INT32"
+ },
+ {
+ name: "input-1",
+ shape: [
+ 12,
+ 9
+ ],
+ type: "INT32"
+ },
+ {
+ name: "result-1",
+ shape: [
+ 12,
+ 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: [
+ 12,
+ 9
+ ],
+ type: "INT32"
+ },
+ {
+ name: "input-1",
+ shape: [
+ 12,
+ 9
+ ],
+ type: "INT32"
+ },
+ {
+ name: "result-2",
+ shape: [
+ 12,
+ 9
+ ],
+ type: "INT32"
+ }
+ ],
+ inputs: [
+ "input-0",
+ "input-1"
+ ],
+ outputs: [
+ "result-2"
+ ]
+ }
+ ]
+}