diff options
author | Jeremy Johnson <jeremy.johnson@arm.com> | 2023-01-03 16:24:52 +0000 |
---|---|---|
committer | Jeremy Johnson <jeremy.johnson@arm.com> | 2023-01-03 16:26:20 +0000 |
commit | 59dba4bee812c3fddd8d5ed20464f8417a6997c4 (patch) | |
tree | 3bc4e8e3e87a7253d52c73599c0e78df572fb320 /operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfCondNotMatchingBool_12x9_i32_cond0/test.json | |
parent | ff47fea5f558845c7ff6bd07e89318a108736aa2 (diff) | |
download | conformance_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/test.json')
-rw-r--r-- | operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfCondNotMatchingBool_12x9_i32_cond0/test.json | 185 |
1 files changed, 185 insertions, 0 deletions
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" + ] + } + ] +} |