diff options
Diffstat (limited to 'operators/control_flow/while_loop/while_loop_6_i32_iter1')
5 files changed, 344 insertions, 0 deletions
diff --git a/operators/control_flow/while_loop/while_loop_6_i32_iter1/Conformance-layer-3.json b/operators/control_flow/while_loop/while_loop_6_i32_iter1/Conformance-layer-3.json new file mode 100644 index 000000000..4dd96fefa --- /dev/null +++ b/operators/control_flow/while_loop/while_loop_6_i32_iter1/Conformance-layer-3.json @@ -0,0 +1,11 @@ +{ + "type": "int32", + "data": [ + 866, + -24372, + 22265, + -3252, + 23, + -8468 + ] +}
\ No newline at end of file diff --git a/operators/control_flow/while_loop/while_loop_6_i32_iter1/desc.json b/operators/control_flow/while_loop/while_loop_6_i32_iter1/desc.json new file mode 100644 index 000000000..a25d0fe5d --- /dev/null +++ b/operators/control_flow/while_loop/while_loop_6_i32_iter1/desc.json @@ -0,0 +1,22 @@ +{ + "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": 0, + "expected_failure": false, + "expected_result_file": [ + "Conformance-layer-3.npy" + ] +}
\ No newline at end of file diff --git a/operators/control_flow/while_loop/while_loop_6_i32_iter1/input-1.json b/operators/control_flow/while_loop/while_loop_6_i32_iter1/input-1.json new file mode 100644 index 000000000..58fa56ab2 --- /dev/null +++ b/operators/control_flow/while_loop/while_loop_6_i32_iter1/input-1.json @@ -0,0 +1,6 @@ +{ + "type": "int32", + "data": [ + 1 + ] +}
\ No newline at end of file diff --git a/operators/control_flow/while_loop/while_loop_6_i32_iter1/input-2.json b/operators/control_flow/while_loop/while_loop_6_i32_iter1/input-2.json new file mode 100644 index 000000000..da2782897 --- /dev/null +++ b/operators/control_flow/while_loop/while_loop_6_i32_iter1/input-2.json @@ -0,0 +1,11 @@ +{ + "type": "int32", + "data": [ + 0, + 0, + 0, + 0, + 0, + 0 + ] +}
\ No newline at end of file diff --git a/operators/control_flow/while_loop/while_loop_6_i32_iter1/test.json b/operators/control_flow/while_loop/while_loop_6_i32_iter1/test.json new file mode 100644 index 000000000..af22b3db5 --- /dev/null +++ b/operators/control_flow/while_loop/while_loop_6_i32_iter1/test.json @@ -0,0 +1,294 @@ +{ + 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: [ + 6 + ], + type: "INT32", + data: [ + 98, + 3, + 0, + 0, + 204, + 160, + 255, + 255, + 249, + 86, + 0, + 0, + 76, + 243, + 255, + 255, + 23, + 0, + 0, + 0, + 236, + 222, + 255, + 255 + ] + }, + { + name: "input-1", + shape: [ + + ], + type: "INT32" + }, + { + name: "input-2", + shape: [ + 6 + ], + type: "INT32" + }, + { + name: "layer-1", + shape: [ + + ], + type: "INT32" + }, + { + name: "layer-2", + shape: [ + 6 + ], + type: "INT32" + }, + { + name: "layer-3", + shape: [ + 6 + ], + 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: [ + 6 + ], + type: "INT32" + }, + { + name: "input-2", + shape: [ + 6 + ], + type: "INT32" + }, + { + name: "const-3", + shape: [ + + ], + type: "INT32", + data: [ + 0, + 0, + 0, + 0 + ] + }, + { + name: "result-0", + shape: [ + + ], + type: "BOOL" + } + ], + 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: [ + 6 + ], + type: "INT32" + }, + { + name: "input-2", + shape: [ + 6 + ], + type: "INT32" + }, + { + name: "const-4", + shape: [ + + ], + type: "INT32", + data: [ + 1, + 0, + 0, + 0 + ] + }, + { + name: "layer-4", + shape: [ + + ], + type: "INT32" + }, + { + name: "layer-5", + shape: [ + 6 + ], + type: "INT32" + } + ], + inputs: [ + "input-1", + "const-0", + "input-2" + ], + outputs: [ + "layer-4", + "const-0", + "layer-5" + ] + } + ] +} |