diff options
Diffstat (limited to 'operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfInputListElseGraphMismatch_10x3x12_i8_cond0')
4 files changed, 1105 insertions, 0 deletions
diff --git a/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfInputListElseGraphMismatch_10x3x12_i8_cond0/desc.json b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfInputListElseGraphMismatch_10x3x12_i8_cond0/desc.json new file mode 100644 index 000000000..8826ba003 --- /dev/null +++ b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfInputListElseGraphMismatch_10x3x12_i8_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": "Input list shape does not match else-graph shape", + "profile": [ + "tosa-bi", + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfInputListElseGraphMismatch_10x3x12_i8_cond0/input-0.json b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfInputListElseGraphMismatch_10x3x12_i8_cond0/input-0.json new file mode 100644 index 000000000..bf496a48e --- /dev/null +++ b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfInputListElseGraphMismatch_10x3x12_i8_cond0/input-0.json @@ -0,0 +1,445 @@ +{ + "type": "int32", + "data": [ + [ + [ + 0, + 20, + 9, + 25, + 6, + 22, + 24, + 13, + 14, + 12, + 25, + 13 + ], + [ + 31, + 4, + 12, + 17, + 17, + 14, + 31, + 15, + 5, + 12, + 1, + 9 + ], + [ + 15, + 2, + 15, + 7, + 29, + 4, + 14, + 5, + 14, + 15, + 15, + 15 + ] + ], + [ + [ + 14, + 9, + 28, + 20, + 19, + 13, + 25, + 21, + 4, + 13, + 28, + 28 + ], + [ + 31, + 24, + 30, + 8, + 31, + 30, + 22, + 21, + 21, + 3, + 2, + 7 + ], + [ + 9, + 1, + 25, + 1, + 11, + 3, + 19, + 30, + 18, + 17, + 18, + 8 + ] + ], + [ + [ + 11, + 10, + 28, + 11, + 7, + 16, + 24, + 12, + 0, + 13, + 26, + 27 + ], + [ + 24, + 16, + 31, + 3, + 3, + 22, + 25, + 6, + 9, + 7, + 7, + 0 + ], + [ + 6, + 22, + 22, + 28, + 30, + 6, + 20, + 12, + 8, + 21, + 12, + 19 + ] + ], + [ + [ + 7, + 13, + 2, + 1, + 24, + 28, + 3, + 21, + 20, + 8, + 13, + 9 + ], + [ + 2, + 26, + 9, + 16, + 2, + 1, + 20, + 13, + 21, + 28, + 28, + 2 + ], + [ + 9, + 6, + 5, + 14, + 15, + 30, + 26, + 1, + 18, + 7, + 30, + 8 + ] + ], + [ + [ + 2, + 30, + 23, + 22, + 21, + 23, + 7, + 21, + 6, + 28, + 12, + 29 + ], + [ + 10, + 5, + 10, + 17, + 23, + 0, + 2, + 8, + 23, + 9, + 15, + 31 + ], + [ + 5, + 6, + 21, + 24, + 11, + 6, + 4, + 31, + 18, + 12, + 10, + 5 + ] + ], + [ + [ + 9, + 24, + 15, + 29, + 16, + 19, + 22, + 5, + 15, + 27, + 17, + 8 + ], + [ + 18, + 21, + 29, + 24, + 3, + 18, + 21, + 23, + 1, + 9, + 8, + 6 + ], + [ + 25, + 14, + 11, + 17, + 0, + 7, + 16, + 6, + 14, + 10, + 29, + 28 + ] + ], + [ + [ + 30, + 12, + 8, + 16, + 26, + 25, + 16, + 18, + 17, + 14, + 3, + 10 + ], + [ + 26, + 27, + 19, + 31, + 30, + 16, + 25, + 6, + 14, + 13, + 27, + 13 + ], + [ + 10, + 12, + 27, + 19, + 3, + 0, + 10, + 26, + 27, + 4, + 0, + 8 + ] + ], + [ + [ + 27, + 13, + 1, + 16, + 21, + 3, + 20, + 25, + 1, + 1, + 26, + 14 + ], + [ + 2, + 4, + 27, + 27, + 31, + 22, + 21, + 28, + 29, + 0, + 20, + 24 + ], + [ + 31, + 1, + 25, + 17, + 21, + 31, + 31, + 5, + 15, + 13, + 15, + 13 + ] + ], + [ + [ + 27, + 28, + 21, + 20, + 4, + 11, + 9, + 3, + 18, + 20, + 0, + 14 + ], + [ + 16, + 14, + 7, + 0, + 7, + 31, + 28, + 22, + 9, + 0, + 28, + 13 + ], + [ + 17, + 30, + 29, + 17, + 23, + 17, + 13, + 7, + 1, + 30, + 28, + 12 + ] + ], + [ + [ + 22, + 3, + 4, + 27, + 29, + 19, + 15, + 20, + 0, + 10, + 9, + 16 + ], + [ + 27, + 2, + 13, + 24, + 25, + 27, + 12, + 30, + 4, + 26, + 6, + 21 + ], + [ + 28, + 22, + 5, + 28, + 29, + 15, + 9, + 20, + 31, + 30, + 3, + 4 + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfInputListElseGraphMismatch_10x3x12_i8_cond0/input-1.json b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfInputListElseGraphMismatch_10x3x12_i8_cond0/input-1.json new file mode 100644 index 000000000..c9cffe09f --- /dev/null +++ b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfInputListElseGraphMismatch_10x3x12_i8_cond0/input-1.json @@ -0,0 +1,445 @@ +{ + "type": "int32", + "data": [ + [ + [ + 17, + 27, + 1, + 21, + 8, + 9, + 27, + 9, + 5, + 30, + 28, + 29 + ], + [ + 18, + 8, + 23, + 24, + 11, + 18, + 31, + 18, + 26, + 0, + 29, + 30 + ], + [ + 4, + 13, + 8, + 17, + 26, + 5, + 21, + 4, + 12, + 17, + 14, + 3 + ] + ], + [ + [ + 14, + 10, + 17, + 10, + 15, + 30, + 14, + 23, + 10, + 21, + 14, + 19 + ], + [ + 5, + 26, + 6, + 5, + 22, + 9, + 30, + 21, + 6, + 31, + 29, + 9 + ], + [ + 20, + 14, + 30, + 30, + 12, + 29, + 22, + 2, + 17, + 12, + 31, + 6 + ] + ], + [ + [ + 1, + 4, + 1, + 15, + 27, + 15, + 1, + 27, + 29, + 24, + 3, + 7 + ], + [ + 3, + 21, + 10, + 1, + 23, + 23, + 18, + 5, + 29, + 12, + 20, + 0 + ], + [ + 19, + 28, + 18, + 8, + 12, + 8, + 20, + 17, + 31, + 0, + 31, + 8 + ] + ], + [ + [ + 3, + 8, + 14, + 23, + 18, + 7, + 22, + 1, + 9, + 30, + 31, + 10 + ], + [ + 13, + 11, + 9, + 6, + 24, + 20, + 18, + 24, + 28, + 27, + 3, + 24 + ], + [ + 1, + 22, + 30, + 29, + 14, + 31, + 6, + 29, + 23, + 25, + 31, + 24 + ] + ], + [ + [ + 31, + 13, + 30, + 26, + 5, + 11, + 27, + 19, + 3, + 19, + 11, + 3 + ], + [ + 5, + 6, + 11, + 28, + 7, + 5, + 28, + 15, + 31, + 9, + 5, + 27 + ], + [ + 4, + 23, + 5, + 27, + 18, + 4, + 28, + 8, + 23, + 5, + 13, + 8 + ] + ], + [ + [ + 30, + 3, + 17, + 8, + 25, + 17, + 15, + 25, + 21, + 21, + 12, + 7 + ], + [ + 1, + 17, + 19, + 7, + 9, + 1, + 17, + 30, + 20, + 2, + 14, + 29 + ], + [ + 5, + 8, + 25, + 21, + 5, + 0, + 4, + 17, + 10, + 5, + 1, + 2 + ] + ], + [ + [ + 11, + 7, + 24, + 24, + 25, + 22, + 14, + 5, + 5, + 19, + 31, + 23 + ], + [ + 26, + 26, + 0, + 29, + 19, + 27, + 30, + 4, + 29, + 17, + 12, + 30 + ], + [ + 19, + 20, + 19, + 20, + 23, + 11, + 30, + 21, + 14, + 17, + 1, + 2 + ] + ], + [ + [ + 23, + 12, + 30, + 13, + 27, + 23, + 0, + 10, + 28, + 25, + 4, + 7 + ], + [ + 31, + 14, + 23, + 15, + 4, + 18, + 3, + 29, + 8, + 26, + 7, + 2 + ], + [ + 0, + 3, + 28, + 3, + 4, + 6, + 31, + 25, + 8, + 13, + 18, + 8 + ] + ], + [ + [ + 22, + 8, + 9, + 29, + 14, + 29, + 24, + 10, + 2, + 4, + 11, + 24 + ], + [ + 25, + 12, + 10, + 22, + 1, + 12, + 6, + 21, + 21, + 27, + 30, + 6 + ], + [ + 7, + 13, + 16, + 23, + 7, + 18, + 29, + 2, + 28, + 5, + 12, + 4 + ] + ], + [ + [ + 1, + 8, + 19, + 12, + 20, + 23, + 19, + 21, + 9, + 25, + 0, + 27 + ], + [ + 1, + 20, + 24, + 28, + 16, + 25, + 8, + 9, + 29, + 17, + 28, + 16 + ], + [ + 26, + 5, + 19, + 6, + 19, + 10, + 16, + 29, + 5, + 23, + 23, + 10 + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfInputListElseGraphMismatch_10x3x12_i8_cond0/test.json b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfInputListElseGraphMismatch_10x3x12_i8_cond0/test.json new file mode 100644 index 000000000..e31b2ed70 --- /dev/null +++ b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfInputListElseGraphMismatch_10x3x12_i8_cond0/test.json @@ -0,0 +1,191 @@ +{ + version: { + _major: 0, + _minor: 41, + _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: [ + 10, + 3, + 12 + ], + type: "INT8" + }, + { + name: "input-1", + shape: [ + 10, + 3, + 12 + ], + type: "INT8" + }, + { + name: "const-2", + shape: [ + + ], + type: "BOOL", + data: [ + 0 + ] + }, + { + name: "result-0", + shape: [ + 10, + 3, + 12 + ], + type: "INT8" + } + ], + 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: [ + 10, + 3, + 12 + ], + type: "INT8" + }, + { + name: "input-1", + shape: [ + 10, + 3, + 12 + ], + type: "INT8" + }, + { + name: "result-1", + shape: [ + 10, + 3, + 12 + ], + type: "INT8" + } + ], + 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: [ + 12, + 6, + 14 + ], + type: "INT8" + }, + { + name: "input-1", + shape: [ + 10, + 3, + 12 + ], + type: "INT8" + }, + { + name: "result-2", + shape: [ + 10, + 3, + 12 + ], + type: "INT8" + } + ], + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-2" + ] + } + ] +} |