diff options
Diffstat (limited to 'operators/control_flow/cond_if_binary/cond_if_binary_55x6_i16_cond1')
5 files changed, 1539 insertions, 0 deletions
diff --git a/operators/control_flow/cond_if_binary/cond_if_binary_55x6_i16_cond1/Conformance-result-0.json b/operators/control_flow/cond_if_binary/cond_if_binary_55x6_i16_cond1/Conformance-result-0.json new file mode 100644 index 000000000..07703655f --- /dev/null +++ b/operators/control_flow/cond_if_binary/cond_if_binary_55x6_i16_cond1/Conformance-result-0.json @@ -0,0 +1,445 @@ +{ + "type": "int32", + "data": [ + [ + 0, + 0, + 0, + 27, + 0, + 0 + ], + [ + 0, + 0, + 1, + 0, + 0, + 0 + ], + [ + 0, + 0, + 2, + 0, + 1, + 0 + ], + [ + 1, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 3, + 1, + 0 + ], + [ + 0, + 11, + 0, + 0, + 7, + 0 + ], + [ + 2, + 0, + 0, + 3, + 0, + 0 + ], + [ + 31, + 0, + 0, + 0, + 0, + 1 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 6, + 0, + 6, + 0, + 0 + ], + [ + 0, + 0, + 19, + 0, + 0, + 1 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 1 + ], + [ + 0, + 1, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 14, + 0, + 28, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 15, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 29, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 5, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 9, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 14, + 0, + 0, + 0 + ], + [ + 27, + 0, + 16, + 0, + 2, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 1, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 1, + 0, + 0, + 0 + ], + [ + 1, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 7, + 0, + 20 + ], + [ + 0, + 0, + 0, + 0, + 0, + 5 + ], + [ + 0, + 0, + 3, + 3, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 31, + 0, + 0, + 0, + 0 + ], + [ + 0, + 7, + 0, + 0, + 0, + 0 + ], + [ + 7, + 12, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 22, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 4 + ], + [ + 0, + 0, + 8, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 3, + 0, + 0 + ], + [ + 0, + 0, + 1, + 0, + 0, + 0 + ], + [ + 0, + 0, + 1, + 0, + 0, + 0 + ], + [ + 0, + 0, + 2, + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 1, + 0, + 0 + ] + ] +}
\ No newline at end of file diff --git a/operators/control_flow/cond_if_binary/cond_if_binary_55x6_i16_cond1/desc.json b/operators/control_flow/cond_if_binary/cond_if_binary_55x6_i16_cond1/desc.json new file mode 100644 index 000000000..be172ba86 --- /dev/null +++ b/operators/control_flow/cond_if_binary/cond_if_binary_55x6_i16_cond1/desc.json @@ -0,0 +1,22 @@ +{ + "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": 0, + "expected_failure": false, + "expected_result_file": [ + "Conformance-result-0.npy" + ] +}
\ No newline at end of file diff --git a/operators/control_flow/cond_if_binary/cond_if_binary_55x6_i16_cond1/input-0.json b/operators/control_flow/cond_if_binary/cond_if_binary_55x6_i16_cond1/input-0.json new file mode 100644 index 000000000..cc0dde68f --- /dev/null +++ b/operators/control_flow/cond_if_binary/cond_if_binary_55x6_i16_cond1/input-0.json @@ -0,0 +1,445 @@ +{ + "type": "int32", + "data": [ + [ + 11, + 4, + 12, + 27, + 4, + 17 + ], + [ + 4, + 30, + 6, + 9, + 31, + 26 + ], + [ + 30, + 24, + 2, + 15, + 4, + 19 + ], + [ + 4, + 10, + 17, + 14, + 0, + 9 + ], + [ + 15, + 6, + 3, + 12, + 20, + 7 + ], + [ + 18, + 22, + 10, + 24, + 28, + 16 + ], + [ + 20, + 20, + 27, + 6, + 23, + 1 + ], + [ + 31, + 23, + 14, + 6, + 19, + 25 + ], + [ + 26, + 1, + 1, + 12, + 22, + 20 + ], + [ + 10, + 26, + 23, + 22, + 26, + 2 + ], + [ + 12, + 25, + 16, + 12, + 8, + 28 + ], + [ + 16, + 9, + 19, + 9, + 19, + 8 + ], + [ + 17, + 2, + 24, + 17, + 7, + 10 + ], + [ + 21, + 30, + 20, + 24, + 20, + 8 + ], + [ + 21, + 23, + 2, + 26, + 29, + 11 + ], + [ + 1, + 29, + 29, + 3, + 28, + 28 + ], + [ + 3, + 29, + 20, + 2, + 1, + 27 + ], + [ + 31, + 6, + 1, + 23, + 19, + 29 + ], + [ + 25, + 13, + 30, + 5, + 14, + 0 + ], + [ + 0, + 10, + 14, + 12, + 11, + 5 + ], + [ + 11, + 24, + 9, + 2, + 31, + 4 + ], + [ + 29, + 22, + 24, + 0, + 12, + 3 + ], + [ + 20, + 27, + 12, + 26, + 30, + 16 + ], + [ + 14, + 22, + 15, + 21, + 2, + 13 + ], + [ + 11, + 23, + 2, + 5, + 10, + 17 + ], + [ + 18, + 29, + 2, + 10, + 8, + 3 + ], + [ + 14, + 18, + 19, + 17, + 19, + 20 + ], + [ + 29, + 20, + 20, + 11, + 16, + 19 + ], + [ + 2, + 22, + 28, + 10, + 1, + 21 + ], + [ + 27, + 11, + 16, + 26, + 17, + 22 + ], + [ + 24, + 0, + 7, + 19, + 30, + 13 + ], + [ + 28, + 24, + 14, + 14, + 18, + 19 + ], + [ + 13, + 9, + 21, + 28, + 20, + 12 + ], + [ + 3, + 13, + 10, + 13, + 19, + 13 + ], + [ + 23, + 27, + 13, + 7, + 18, + 20 + ], + [ + 7, + 14, + 12, + 0, + 29, + 5 + ], + [ + 31, + 0, + 30, + 25, + 1, + 6 + ], + [ + 30, + 31, + 30, + 29, + 30, + 24 + ], + [ + 5, + 2, + 20, + 29, + 24, + 7 + ], + [ + 18, + 29, + 23, + 12, + 19, + 27 + ], + [ + 6, + 31, + 30, + 18, + 12, + 8 + ], + [ + 3, + 30, + 15, + 27, + 11, + 1 + ], + [ + 28, + 12, + 19, + 17, + 15, + 22 + ], + [ + 28, + 6, + 16, + 1, + 26, + 15 + ], + [ + 22, + 1, + 0, + 14, + 9, + 10 + ], + [ + 28, + 12, + 24, + 30, + 28, + 9 + ], + [ + 1, + 16, + 4, + 14, + 20, + 17 + ], + [ + 11, + 7, + 17, + 0, + 5, + 12 + ], + [ + 10, + 1, + 31, + 28, + 4, + 9 + ], + [ + 17, + 11, + 16, + 18, + 22, + 28 + ], + [ + 16, + 26, + 19, + 14, + 28, + 12 + ], + [ + 11, + 12, + 5, + 24, + 31, + 8 + ], + [ + 8, + 20, + 6, + 27, + 23, + 28 + ], + [ + 0, + 10, + 19, + 10, + 16, + 10 + ], + [ + 14, + 27, + 17, + 2, + 6, + 1 + ] + ] +}
\ No newline at end of file diff --git a/operators/control_flow/cond_if_binary/cond_if_binary_55x6_i16_cond1/input-1.json b/operators/control_flow/cond_if_binary/cond_if_binary_55x6_i16_cond1/input-1.json new file mode 100644 index 000000000..a367fe9a3 --- /dev/null +++ b/operators/control_flow/cond_if_binary/cond_if_binary_55x6_i16_cond1/input-1.json @@ -0,0 +1,445 @@ +{ + "type": "int32", + "data": [ + [ + 27, + 10, + 28, + 0, + 8, + 9 + ], + [ + 21, + 5, + 2, + 6, + 29, + 22 + ], + [ + 23, + 23, + 0, + 20, + 2, + 12 + ], + [ + 2, + 18, + 17, + 8, + 6, + 27 + ], + [ + 5, + 25, + 16, + 2, + 4, + 18 + ], + [ + 25, + 1, + 14, + 25, + 2, + 14 + ], + [ + 3, + 26, + 17, + 1, + 7, + 17 + ], + [ + 0, + 5, + 22, + 29, + 24, + 4 + ], + [ + 15, + 16, + 15, + 14, + 31, + 9 + ], + [ + 20, + 17, + 28, + 22, + 9, + 29 + ], + [ + 25, + 2, + 11, + 1, + 23, + 25 + ], + [ + 23, + 30, + 0, + 22, + 17, + 3 + ], + [ + 8, + 10, + 21, + 28, + 28, + 6 + ], + [ + 6, + 10, + 29, + 31, + 18, + 3 + ], + [ + 7, + 4, + 9, + 21, + 24, + 17 + ], + [ + 26, + 21, + 1, + 31, + 0, + 17 + ], + [ + 27, + 12, + 31, + 7, + 15, + 10 + ], + [ + 12, + 15, + 2, + 26, + 20, + 12 + ], + [ + 16, + 10, + 1, + 18, + 13, + 25 + ], + [ + 12, + 30, + 18, + 24, + 25, + 4 + ], + [ + 18, + 21, + 20, + 30, + 26, + 23 + ], + [ + 0, + 15, + 5, + 2, + 15, + 21 + ], + [ + 23, + 13, + 10, + 26, + 12, + 24 + ], + [ + 27, + 2, + 30, + 17, + 12, + 4 + ], + [ + 23, + 21, + 10, + 8, + 25, + 25 + ], + [ + 1, + 11, + 5, + 29, + 17, + 25 + ], + [ + 29, + 28, + 14, + 11, + 27, + 29 + ], + [ + 31, + 31, + 21, + 9, + 30, + 24 + ], + [ + 23, + 13, + 1, + 13, + 16, + 17 + ], + [ + 0, + 21, + 0, + 13, + 3, + 19 + ], + [ + 7, + 23, + 10, + 31, + 30, + 29 + ], + [ + 13, + 4, + 5, + 27, + 16, + 27 + ], + [ + 29, + 11, + 4, + 11, + 5, + 19 + ], + [ + 1, + 16, + 23, + 11, + 19, + 30 + ], + [ + 9, + 14, + 5, + 0, + 12, + 0 + ], + [ + 15, + 16, + 30, + 30, + 23, + 0 + ], + [ + 30, + 9, + 3, + 3, + 8, + 8 + ], + [ + 13, + 29, + 26, + 8, + 18, + 7 + ], + [ + 22, + 4, + 15, + 19, + 9, + 9 + ], + [ + 28, + 13, + 15, + 24, + 10, + 11 + ], + [ + 6, + 0, + 16, + 21, + 8, + 8 + ], + [ + 10, + 2, + 6, + 17, + 6, + 10 + ], + [ + 2, + 0, + 24, + 15, + 31, + 31 + ], + [ + 18, + 21, + 11, + 18, + 12, + 20 + ], + [ + 0, + 26, + 26, + 22, + 26, + 9 + ], + [ + 7, + 8, + 17, + 29, + 24, + 20 + ], + [ + 18, + 6, + 27, + 7, + 21, + 25 + ], + [ + 10, + 8, + 28, + 13, + 18, + 27 + ], + [ + 14, + 23, + 26, + 14, + 20, + 1 + ], + [ + 30, + 13, + 1, + 23, + 14, + 28 + ], + [ + 10, + 26, + 9, + 2, + 7, + 24 + ], + [ + 24, + 15, + 2, + 19, + 18, + 18 + ], + [ + 22, + 18, + 2, + 5, + 26, + 17 + ], + [ + 7, + 29, + 3, + 16, + 15, + 26 + ], + [ + 20, + 10, + 21, + 1, + 21, + 24 + ] + ] +}
\ No newline at end of file diff --git a/operators/control_flow/cond_if_binary/cond_if_binary_55x6_i16_cond1/test.json b/operators/control_flow/cond_if_binary/cond_if_binary_55x6_i16_cond1/test.json new file mode 100644 index 000000000..88384c1be --- /dev/null +++ b/operators/control_flow/cond_if_binary/cond_if_binary_55x6_i16_cond1/test.json @@ -0,0 +1,182 @@ +{ + 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: [ + 55, + 6 + ], + type: "INT16" + }, + { + name: "input-1", + shape: [ + 55, + 6 + ], + type: "INT16" + }, + { + name: "const-2", + shape: [ + + ], + type: "BOOL", + data: [ + 1 + ] + }, + { + name: "result-0", + shape: [ + 55, + 6 + ], + type: "INT16" + } + ], + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + }, + { + name: "THEN_BLOCK", + operators: [ + { + op: "LOGICAL_RIGHT_SHIFT", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-1" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 55, + 6 + ], + type: "INT16" + }, + { + name: "input-1", + shape: [ + 55, + 6 + ], + type: "INT16" + }, + { + name: "result-1", + shape: [ + 55, + 6 + ], + type: "INT16" + } + ], + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-1" + ] + }, + { + name: "ELSE_BLOCK", + operators: [ + { + op: "LOGICAL_LEFT_SHIFT", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-2" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 55, + 6 + ], + type: "INT16" + }, + { + name: "input-1", + shape: [ + 55, + 6 + ], + type: "INT16" + }, + { + name: "result-2", + shape: [ + 55, + 6 + ], + type: "INT16" + } + ], + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-2" + ] + } + ] +} |