diff options
Diffstat (limited to 'operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListElseGraphMismatch_11x10_i32_cond0')
4 files changed, 480 insertions, 0 deletions
diff --git a/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListElseGraphMismatch_11x10_i32_cond0/desc.json b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListElseGraphMismatch_11x10_i32_cond0/desc.json new file mode 100644 index 000000000..5ab65d7e3 --- /dev/null +++ b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListElseGraphMismatch_11x10_i32_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": "Output 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_CondIfOutputListElseGraphMismatch_11x10_i32_cond0/input-0.json b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListElseGraphMismatch_11x10_i32_cond0/input-0.json new file mode 100644 index 000000000..bbf60b36d --- /dev/null +++ b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListElseGraphMismatch_11x10_i32_cond0/input-0.json @@ -0,0 +1,137 @@ +{ + "type": "int32", + "data": [ + [ + 21243, + -25568, + -18996, + -18679, + -26704, + 4379, + 21254, + 20146, + 12019, + 1459 + ], + [ + 28645, + 26500, + 18864, + 18068, + 1274, + -10102, + 11013, + 24265, + 21061, + -22523 + ], + [ + 30139, + 22119, + -9861, + 6556, + 21498, + 30559, + -13657, + -13521, + 5534, + 22388 + ], + [ + 7886, + 12343, + -32633, + 5070, + 10474, + -7594, + 178, + 10998, + -9358, + -16120 + ], + [ + 14425, + 5647, + 11054, + 15926, + 9260, + 22588, + -4111, + -12440, + -21852, + -12154 + ], + [ + 12895, + -25922, + 30296, + -6144, + 17985, + -22201, + -14136, + 22557, + -8056, + -766 + ], + [ + 2383, + 11609, + 27339, + 30672, + 22922, + 3823, + -16126, + -12035, + -14407, + -28165 + ], + [ + 23520, + 26967, + 12858, + 3222, + 20075, + 10034, + -29418, + 8643, + 12013, + 6457 + ], + [ + 25732, + -18946, + 2841, + -19429, + 16846, + 27721, + -25450, + -17591, + 20930, + -14604 + ], + [ + -29301, + 11910, + 1376, + -13211, + -19697, + 9709, + 32691, + -9443, + 8680, + 32546 + ], + [ + 32558, + -24591, + 16394, + -18193, + -878, + 21513, + 26899, + 2285, + -15690, + -24784 + ] + ] +}
\ No newline at end of file diff --git a/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListElseGraphMismatch_11x10_i32_cond0/input-1.json b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListElseGraphMismatch_11x10_i32_cond0/input-1.json new file mode 100644 index 000000000..00571edca --- /dev/null +++ b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListElseGraphMismatch_11x10_i32_cond0/input-1.json @@ -0,0 +1,137 @@ +{ + "type": "int32", + "data": [ + [ + 31182, + 1301, + -22960, + -8657, + 657, + -7860, + 24474, + 18018, + 7757, + 5 + ], + [ + 20267, + -20287, + 5759, + 28965, + -993, + -18067, + 19698, + 16279, + -8376, + 11843 + ], + [ + 12848, + -1676, + -28937, + 16287, + -14557, + 8556, + 29228, + -9086, + -4026, + -12318 + ], + [ + 9435, + 14532, + -23942, + 8689, + -30935, + -17039, + -6852, + 3251, + -20616, + -7417 + ], + [ + -5195, + 21456, + -7845, + 6118, + 6011, + -26696, + 15985, + -1810, + -7623, + 11798 + ], + [ + 7481, + 14762, + -27126, + -40, + -17223, + -25279, + 21051, + -6570, + 19870, + 24841 + ], + [ + -15285, + 17340, + 29795, + 19273, + 27725, + -28304, + 20192, + 29841, + -14047, + 6489 + ], + [ + -13346, + -3243, + 3208, + 2054, + -16571, + -21820, + 6982, + 15610, + -4432, + -19422 + ], + [ + -7526, + 18514, + 14743, + -23705, + 3310, + 6895, + -19831, + 22275, + -14469, + -2051 + ], + [ + 10063, + 30248, + -31434, + -29176, + 31164, + 21934, + -3125, + 24747, + 24135, + -19959 + ], + [ + 22412, + 5560, + 12760, + -12713, + 23086, + 982, + -20639, + -25794, + 15586, + 23109 + ] + ] +}
\ No newline at end of file diff --git a/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListElseGraphMismatch_11x10_i32_cond0/test.json b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListElseGraphMismatch_11x10_i32_cond0/test.json new file mode 100644 index 000000000..2acaed238 --- /dev/null +++ b/operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfOutputListElseGraphMismatch_11x10_i32_cond0/test.json @@ -0,0 +1,182 @@ +{ + 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: [ + 11, + 10 + ], + type: "INT32" + }, + { + name: "input-1", + shape: [ + 11, + 10 + ], + type: "INT32" + }, + { + name: "const-2", + shape: [ + + ], + type: "BOOL", + data: [ + 0 + ] + }, + { + name: "result-0", + shape: [ + 11, + 10 + ], + type: "INT32" + } + ], + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + }, + { + name: "THEN_BLOCK", + operators: [ + { + op: "ADD", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-1" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 11, + 10 + ], + type: "INT32" + }, + { + name: "input-1", + shape: [ + 11, + 10 + ], + type: "INT32" + }, + { + name: "result-1", + shape: [ + 11, + 10 + ], + type: "INT32" + } + ], + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-1" + ] + }, + { + name: "ELSE_BLOCK", + operators: [ + { + op: "SUB", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-2" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 11, + 10 + ], + type: "INT32" + }, + { + name: "input-1", + shape: [ + 11, + 10 + ], + type: "INT32" + }, + { + name: "result-2", + shape: [ + 9, + 7 + ], + type: "INT32" + } + ], + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-2" + ] + } + ] +} |