diff options
Diffstat (limited to 'operators/control_flow/cond_if_binary/cond_if_binary_6_i8_cond1')
5 files changed, 228 insertions, 0 deletions
diff --git a/operators/control_flow/cond_if_binary/cond_if_binary_6_i8_cond1/Conformance-result-0.json b/operators/control_flow/cond_if_binary/cond_if_binary_6_i8_cond1/Conformance-result-0.json new file mode 100644 index 000000000..0643b9e72 --- /dev/null +++ b/operators/control_flow/cond_if_binary/cond_if_binary_6_i8_cond1/Conformance-result-0.json @@ -0,0 +1,11 @@ +{ + "type": "int32", + "data": [ + 27, + 0, + 0, + 0, + 0, + 30 + ] +}
\ No newline at end of file diff --git a/operators/control_flow/cond_if_binary/cond_if_binary_6_i8_cond1/desc.json b/operators/control_flow/cond_if_binary/cond_if_binary_6_i8_cond1/desc.json new file mode 100644 index 000000000..be172ba86 --- /dev/null +++ b/operators/control_flow/cond_if_binary/cond_if_binary_6_i8_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_6_i8_cond1/input-0.json b/operators/control_flow/cond_if_binary/cond_if_binary_6_i8_cond1/input-0.json new file mode 100644 index 000000000..eef78642f --- /dev/null +++ b/operators/control_flow/cond_if_binary/cond_if_binary_6_i8_cond1/input-0.json @@ -0,0 +1,11 @@ +{ + "type": "int32", + "data": [ + 27, + 27, + 12, + 21, + 11, + 30 + ] +}
\ No newline at end of file diff --git a/operators/control_flow/cond_if_binary/cond_if_binary_6_i8_cond1/input-1.json b/operators/control_flow/cond_if_binary/cond_if_binary_6_i8_cond1/input-1.json new file mode 100644 index 000000000..4854081c1 --- /dev/null +++ b/operators/control_flow/cond_if_binary/cond_if_binary_6_i8_cond1/input-1.json @@ -0,0 +1,11 @@ +{ + "type": "int32", + "data": [ + 0, + 21, + 13, + 29, + 24, + 0 + ] +}
\ No newline at end of file diff --git a/operators/control_flow/cond_if_binary/cond_if_binary_6_i8_cond1/test.json b/operators/control_flow/cond_if_binary/cond_if_binary_6_i8_cond1/test.json new file mode 100644 index 000000000..f200cdccc --- /dev/null +++ b/operators/control_flow/cond_if_binary/cond_if_binary_6_i8_cond1/test.json @@ -0,0 +1,173 @@ +{ + 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: [ + 6 + ], + type: "INT8" + }, + { + name: "input-1", + shape: [ + 6 + ], + type: "INT8" + }, + { + name: "const-2", + shape: [ + + ], + type: "BOOL", + data: [ + 1 + ] + }, + { + name: "result-0", + shape: [ + 6 + ], + 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: [ + 6 + ], + type: "INT8" + }, + { + name: "input-1", + shape: [ + 6 + ], + type: "INT8" + }, + { + name: "result-1", + shape: [ + 6 + ], + 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: [ + 6 + ], + type: "INT8" + }, + { + name: "input-1", + shape: [ + 6 + ], + type: "INT8" + }, + { + name: "result-2", + shape: [ + 6 + ], + type: "INT8" + } + ], + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-2" + ] + } + ] +} |