diff options
author | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-06-17 13:06:10 +0100 |
---|---|---|
committer | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-06-17 13:06:10 +0100 |
commit | 3dd7bf887d5d04d98bc19b845f43cd3000b1d407 (patch) | |
tree | 9b5e57c01ef8c5b460174058d8ef4635401b62c4 /operators/control_flow/while_loop/while_loop_ERRORIF_CondGraphOutputNotMatchingBool_11_i32_iter0 | |
parent | b44d84cf19290be8ced2e0287160cb62c6385a21 (diff) | |
download | conformance_tests-3dd7bf887d5d04d98bc19b845f43cd3000b1d407.tar.gz |
Updating WHILE_LOOP tests for v0.30.0 release
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: Id220e001bd6ddfc8b06f8530a0b3bc1ed647c373
Diffstat (limited to 'operators/control_flow/while_loop/while_loop_ERRORIF_CondGraphOutputNotMatchingBool_11_i32_iter0')
4 files changed, 356 insertions, 0 deletions
diff --git a/operators/control_flow/while_loop/while_loop_ERRORIF_CondGraphOutputNotMatchingBool_11_i32_iter0/desc.json b/operators/control_flow/while_loop/while_loop_ERRORIF_CondGraphOutputNotMatchingBool_11_i32_iter0/desc.json new file mode 100644 index 000000000..7a69c373c --- /dev/null +++ b/operators/control_flow/while_loop/while_loop_ERRORIF_CondGraphOutputNotMatchingBool_11_i32_iter0/desc.json @@ -0,0 +1,20 @@ +{ + "tosa_file": "test.json", + "ifm_name": [ + "input-1", + "input-2" + ], + "ifm_file": [ + "input-1.npy", + "input-2.npy" + ], + "ofm_name": [ + "layer-3" + ], + "ofm_file": [ + "layer-3.npy" + ], + "expected_return_code": 2, + "expected_failure": true, + "expected_failure_desc": "Cond graph output is not a match list of booleans" +}
\ No newline at end of file diff --git a/operators/control_flow/while_loop/while_loop_ERRORIF_CondGraphOutputNotMatchingBool_11_i32_iter0/input-1.json b/operators/control_flow/while_loop/while_loop_ERRORIF_CondGraphOutputNotMatchingBool_11_i32_iter0/input-1.json new file mode 100644 index 000000000..c795012dc --- /dev/null +++ b/operators/control_flow/while_loop/while_loop_ERRORIF_CondGraphOutputNotMatchingBool_11_i32_iter0/input-1.json @@ -0,0 +1,6 @@ +{ + "type": "int32", + "data": [ + 0 + ] +}
\ No newline at end of file diff --git a/operators/control_flow/while_loop/while_loop_ERRORIF_CondGraphOutputNotMatchingBool_11_i32_iter0/input-2.json b/operators/control_flow/while_loop/while_loop_ERRORIF_CondGraphOutputNotMatchingBool_11_i32_iter0/input-2.json new file mode 100644 index 000000000..084427f2a --- /dev/null +++ b/operators/control_flow/while_loop/while_loop_ERRORIF_CondGraphOutputNotMatchingBool_11_i32_iter0/input-2.json @@ -0,0 +1,16 @@ +{ + "type": "int32", + "data": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] +}
\ No newline at end of file diff --git a/operators/control_flow/while_loop/while_loop_ERRORIF_CondGraphOutputNotMatchingBool_11_i32_iter0/test.json b/operators/control_flow/while_loop/while_loop_ERRORIF_CondGraphOutputNotMatchingBool_11_i32_iter0/test.json new file mode 100644 index 000000000..d1a4d930b --- /dev/null +++ b/operators/control_flow/while_loop/while_loop_ERRORIF_CondGraphOutputNotMatchingBool_11_i32_iter0/test.json @@ -0,0 +1,314 @@ +{ + version: { + _major: 0, + _minor: 30, + _patch: 0, + _draft: false + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "CONST", + attribute_type: "NONE", + inputs: [ + + ], + outputs: [ + "const-0" + ] + }, + { + op: "WHILE_LOOP", + attribute_type: "WhileLoopAttribute", + attribute: { + cond_branch: "COND_BLOCK", + body_branch: "BODY_BLOCK" + }, + inputs: [ + "input-1", + "const-0", + "input-2" + ], + outputs: [ + "layer-1", + "layer-2", + "layer-3" + ] + } + ], + tensors: [ + { + name: "const-0", + shape: [ + 11 + ], + type: "INT32", + data: [ + 229, + 152, + 255, + 255, + 123, + 189, + 255, + 255, + 119, + 68, + 0, + 0, + 30, + 49, + 0, + 0, + 136, + 101, + 0, + 0, + 32, + 251, + 255, + 255, + 181, + 35, + 0, + 0, + 111, + 68, + 0, + 0, + 41, + 77, + 0, + 0, + 79, + 51, + 0, + 0, + 163, + 107, + 0, + 0 + ] + }, + { + name: "input-1", + shape: [ + + ], + type: "INT32" + }, + { + name: "input-2", + shape: [ + 11 + ], + type: "INT32" + }, + { + name: "layer-1", + shape: [ + + ], + type: "INT32" + }, + { + name: "layer-2", + shape: [ + 11 + ], + type: "INT32" + }, + { + name: "layer-3", + shape: [ + 11 + ], + type: "INT32" + } + ], + inputs: [ + "input-1", + "input-2" + ], + outputs: [ + "layer-3" + ] + }, + { + name: "COND_BLOCK", + operators: [ + { + op: "CONST", + attribute_type: "NONE", + inputs: [ + + ], + outputs: [ + "const-3" + ] + }, + { + op: "GREATER", + attribute_type: "NONE", + inputs: [ + "input-1", + "const-3" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-1", + shape: [ + + ], + type: "INT32" + }, + { + name: "const-0", + shape: [ + 11 + ], + type: "INT32" + }, + { + name: "input-2", + shape: [ + 11 + ], + type: "INT32" + }, + { + name: "const-3", + shape: [ + + ], + type: "INT32", + data: [ + 0, + 0, + 0, + 0 + ] + }, + { + name: "result-0", + shape: [ + + ], + type: "INT32" + } + ], + inputs: [ + "input-1", + "const-0", + "input-2" + ], + outputs: [ + "result-0" + ] + }, + { + name: "BODY_BLOCK", + operators: [ + { + op: "CONST", + attribute_type: "NONE", + inputs: [ + + ], + outputs: [ + "const-4" + ] + }, + { + op: "ADD", + attribute_type: "NONE", + inputs: [ + "const-0", + "input-2" + ], + outputs: [ + "layer-5" + ] + }, + { + op: "SUB", + attribute_type: "NONE", + inputs: [ + "input-1", + "const-4" + ], + outputs: [ + "layer-4" + ] + } + ], + tensors: [ + { + name: "input-1", + shape: [ + + ], + type: "INT32" + }, + { + name: "const-0", + shape: [ + 11 + ], + type: "INT32" + }, + { + name: "input-2", + shape: [ + 11 + ], + type: "INT32" + }, + { + name: "const-4", + shape: [ + + ], + type: "INT32", + data: [ + 1, + 0, + 0, + 0 + ] + }, + { + name: "layer-4", + shape: [ + + ], + type: "INT32" + }, + { + name: "layer-5", + shape: [ + 11 + ], + type: "INT32" + } + ], + inputs: [ + "input-1", + "const-0", + "input-2" + ], + outputs: [ + "layer-4", + "const-0", + "layer-5" + ] + } + ] +} |