From b08fb3e856b7757403ff9aafc9487f9c0ad61fe7 Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Mon, 16 Jan 2023 15:17:52 +0000 Subject: Regen tests after control flow operator support Includes removing 3 tests that are not needed anymore. Signed-off-by: Jeremy Johnson Change-Id: I2c62d95a7b053e9016000d90125e00862f94200e --- .../test.json | 1487 ++++++++++---------- 1 file changed, 746 insertions(+), 741 deletions(-) (limited to 'operators/control_flow/while_loop/while_loop_ERRORIF_InputListBodyGraphOutputMismatch_9x14x1_i32_iter0/test.json') diff --git a/operators/control_flow/while_loop/while_loop_ERRORIF_InputListBodyGraphOutputMismatch_9x14x1_i32_iter0/test.json b/operators/control_flow/while_loop/while_loop_ERRORIF_InputListBodyGraphOutputMismatch_9x14x1_i32_iter0/test.json index 76857fa55..f1007045b 100644 --- a/operators/control_flow/while_loop/while_loop_ERRORIF_InputListBodyGraphOutputMismatch_9x14x1_i32_iter0/test.json +++ b/operators/control_flow/while_loop/while_loop_ERRORIF_InputListBodyGraphOutputMismatch_9x14x1_i32_iter0/test.json @@ -5,787 +5,792 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "CONST", - attribute_type: "NONE", - inputs: [ + 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: [ + 9, + 14, + 1 + ], + type: "INT32", + data: [ + 174, + 95, + 0, + 0, + 135, + 246, + 255, + 255, + 177, + 211, + 255, + 255, + 207, + 255, + 255, + 255, + 172, + 74, + 0, + 0, + 31, + 31, + 0, + 0, + 234, + 25, + 0, + 0, + 40, + 239, + 255, + 255, + 76, + 50, + 0, + 0, + 248, + 93, + 0, + 0, + 255, + 42, + 0, + 0, + 64, + 231, + 255, + 255, + 7, + 87, + 0, + 0, + 75, + 113, + 0, + 0, + 236, + 75, + 0, + 0, + 127, + 96, + 0, + 0, + 247, + 195, + 255, + 255, + 204, + 235, + 255, + 255, + 213, + 191, + 255, + 255, + 165, + 221, + 255, + 255, + 198, + 59, + 0, + 0, + 55, + 45, + 0, + 0, + 209, + 128, + 255, + 255, + 91, + 65, + 0, + 0, + 44, + 177, + 255, + 255, + 148, + 175, + 255, + 255, + 42, + 11, + 0, + 0, + 181, + 189, + 255, + 255, + 133, + 118, + 0, + 0, + 112, + 165, + 255, + 255, + 210, + 166, + 255, + 255, + 188, + 66, + 0, + 0, + 93, + 201, + 255, + 255, + 227, + 54, + 0, + 0, + 117, + 46, + 0, + 0, + 101, + 176, + 255, + 255, + 116, + 20, + 0, + 0, + 112, + 9, + 0, + 0, + 55, + 152, + 255, + 255, + 165, + 67, + 0, + 0, + 126, + 91, + 0, + 0, + 112, + 114, + 0, + 0, + 128, + 150, + 255, + 255, + 179, + 173, + 255, + 255, + 57, + 83, + 0, + 0, + 232, + 205, + 255, + 255, + 35, + 32, + 0, + 0, + 44, + 217, + 255, + 255, + 179, + 183, + 255, + 255, + 254, + 31, + 0, + 0, + 157, + 180, + 255, + 255, + 236, + 162, + 255, + 255, + 203, + 7, + 0, + 0, + 132, + 177, + 255, + 255, + 55, + 177, + 255, + 255, + 202, + 71, + 0, + 0, + 91, + 7, + 0, + 0, + 196, + 10, + 0, + 0, + 182, + 164, + 255, + 255, + 15, + 169, + 255, + 255, + 7, + 228, + 255, + 255, + 112, + 227, + 255, + 255, + 157, + 243, + 255, + 255, + 110, + 162, + 255, + 255, + 255, + 101, + 0, + 0, + 217, + 220, + 255, + 255, + 244, + 80, + 0, + 0, + 115, + 230, + 255, + 255, + 224, + 248, + 255, + 255, + 179, + 156, + 255, + 255, + 58, + 45, + 0, + 0, + 81, + 143, + 255, + 255, + 116, + 63, + 0, + 0, + 176, + 97, + 0, + 0, + 146, + 220, + 255, + 255, + 60, + 99, + 0, + 0, + 228, + 50, + 0, + 0, + 169, + 128, + 255, + 255, + 241, + 179, + 255, + 255, + 37, + 36, + 0, + 0, + 159, + 51, + 0, + 0, + 251, + 151, + 255, + 255, + 68, + 47, + 0, + 0, + 101, + 79, + 0, + 0, + 134, + 151, + 255, + 255, + 43, + 97, + 0, + 0, + 119, + 8, + 0, + 0, + 218, + 29, + 0, + 0, + 241, + 140, + 255, + 255, + 247, + 28, + 0, + 0, + 88, + 244, + 255, + 255, + 25, + 223, + 255, + 255, + 194, + 71, + 0, + 0, + 221, + 191, + 255, + 255, + 91, + 143, + 255, + 255, + 208, + 255, + 255, + 255, + 100, + 62, + 0, + 0, + 59, + 162, + 255, + 255, + 18, + 124, + 0, + 0, + 22, + 44, + 0, + 0, + 30, + 111, + 0, + 0, + 87, + 248, + 255, + 255, + 137, + 159, + 255, + 255, + 119, + 173, + 255, + 255, + 42, + 0, + 0, + 0, + 155, + 22, + 0, + 0, + 240, + 59, + 0, + 0, + 154, + 75, + 0, + 0, + 66, + 67, + 0, + 0, + 187, + 22, + 0, + 0, + 158, + 132, + 255, + 255, + 151, + 7, + 0, + 0, + 197, + 81, + 0, + 0, + 4, + 89, + 0, + 0, + 158, + 85, + 0, + 0, + 192, + 130, + 255, + 255, + 112, + 239, + 255, + 255, + 227, + 29, + 0, + 0, + 92, + 191, + 255, + 255, + 225, + 232, + 255, + 255, + 236, + 152, + 255, + 255, + 141, + 177, + 255, + 255, + 123, + 129, + 255, + 255, + 197, + 122, + 0, + 0, + 21, + 92, + 0, + 0, + 96, + 231, + 255, + 255 + ] + }, + { + name: "input-1", + shape: [ + + ], + type: "INT32" + }, + { + name: "input-2", + shape: [ + 9, + 14, + 1 + ], + type: "INT32" + }, + { + name: "layer-1", + shape: [ + + ], + type: "INT32" + }, + { + name: "layer-2", + shape: [ + 9, + 14, + 1 + ], + type: "INT32" + }, + { + name: "layer-3", + shape: [ + 9, + 14, + 1 + ], + type: "INT32" + } ], - 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: [ - 9, - 14, - 1 - ], - type: "INT32", - data: [ - 174, - 95, - 0, - 0, - 135, - 246, - 255, - 255, - 177, - 211, - 255, - 255, - 207, - 255, - 255, - 255, - 172, - 74, - 0, - 0, - 31, - 31, - 0, - 0, - 234, - 25, - 0, - 0, - 40, - 239, - 255, - 255, - 76, - 50, - 0, - 0, - 248, - 93, - 0, - 0, - 255, - 42, - 0, - 0, - 64, - 231, - 255, - 255, - 7, - 87, - 0, - 0, - 75, - 113, - 0, - 0, - 236, - 75, - 0, - 0, - 127, - 96, - 0, - 0, - 247, - 195, - 255, - 255, - 204, - 235, - 255, - 255, - 213, - 191, - 255, - 255, - 165, - 221, - 255, - 255, - 198, - 59, - 0, - 0, - 55, - 45, - 0, - 0, - 209, - 128, - 255, - 255, - 91, - 65, - 0, - 0, - 44, - 177, - 255, - 255, - 148, - 175, - 255, - 255, - 42, - 11, - 0, - 0, - 181, - 189, - 255, - 255, - 133, - 118, - 0, - 0, - 112, - 165, - 255, - 255, - 210, - 166, - 255, - 255, - 188, - 66, - 0, - 0, - 93, - 201, - 255, - 255, - 227, - 54, - 0, - 0, - 117, - 46, - 0, - 0, - 101, - 176, - 255, - 255, - 116, - 20, - 0, - 0, - 112, - 9, - 0, - 0, - 55, - 152, - 255, - 255, - 165, - 67, - 0, - 0, - 126, - 91, - 0, - 0, - 112, - 114, - 0, - 0, - 128, - 150, - 255, - 255, - 179, - 173, - 255, - 255, - 57, - 83, - 0, - 0, - 232, - 205, - 255, - 255, - 35, - 32, - 0, - 0, - 44, - 217, - 255, - 255, - 179, - 183, - 255, - 255, - 254, - 31, - 0, - 0, - 157, - 180, - 255, - 255, - 236, - 162, - 255, - 255, - 203, - 7, - 0, - 0, - 132, - 177, - 255, - 255, - 55, - 177, - 255, - 255, - 202, - 71, - 0, - 0, - 91, - 7, - 0, - 0, - 196, - 10, - 0, - 0, - 182, - 164, - 255, - 255, - 15, - 169, - 255, - 255, - 7, - 228, - 255, - 255, - 112, - 227, - 255, - 255, - 157, - 243, - 255, - 255, - 110, - 162, - 255, - 255, - 255, - 101, - 0, - 0, - 217, - 220, - 255, - 255, - 244, - 80, - 0, - 0, - 115, - 230, - 255, - 255, - 224, - 248, - 255, - 255, - 179, - 156, - 255, - 255, - 58, - 45, - 0, - 0, - 81, - 143, - 255, - 255, - 116, - 63, - 0, - 0, - 176, - 97, - 0, - 0, - 146, - 220, - 255, - 255, - 60, - 99, - 0, - 0, - 228, - 50, - 0, - 0, - 169, - 128, - 255, - 255, - 241, - 179, - 255, - 255, - 37, - 36, - 0, - 0, - 159, - 51, - 0, - 0, - 251, - 151, - 255, - 255, - 68, - 47, - 0, - 0, - 101, - 79, - 0, - 0, - 134, - 151, - 255, - 255, - 43, - 97, - 0, - 0, - 119, - 8, - 0, - 0, - 218, - 29, - 0, - 0, - 241, - 140, - 255, - 255, - 247, - 28, - 0, - 0, - 88, - 244, - 255, - 255, - 25, - 223, - 255, - 255, - 194, - 71, - 0, - 0, - 221, - 191, - 255, - 255, - 91, - 143, - 255, - 255, - 208, - 255, - 255, - 255, - 100, - 62, - 0, - 0, - 59, - 162, - 255, - 255, - 18, - 124, - 0, - 0, - 22, - 44, - 0, - 0, - 30, - 111, - 0, - 0, - 87, - 248, - 255, - 255, - 137, - 159, - 255, - 255, - 119, - 173, - 255, - 255, - 42, - 0, - 0, - 0, - 155, - 22, - 0, - 0, - 240, - 59, - 0, - 0, - 154, - 75, - 0, - 0, - 66, - 67, - 0, - 0, - 187, - 22, - 0, - 0, - 158, - 132, - 255, - 255, - 151, - 7, - 0, - 0, - 197, - 81, - 0, - 0, - 4, - 89, - 0, - 0, - 158, - 85, - 0, - 0, - 192, - 130, - 255, - 255, - 112, - 239, - 255, - 255, - 227, - 29, - 0, - 0, - 92, - 191, - 255, - 255, - 225, - 232, - 255, - 255, - 236, - 152, - 255, - 255, - 141, - 177, - 255, - 255, - 123, - 129, - 255, - 255, - 197, - 122, - 0, - 0, - 21, - 92, - 0, - 0, - 96, - 231, - 255, - 255 - ] }, { - name: "input-1", - shape: [ + 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" + ] + } ], - type: "INT32" - }, - { - name: "input-2", - shape: [ - 9, - 14, - 1 - ], - type: "INT32" - }, - { - name: "layer-1", - shape: [ + tensors: [ + { + name: "input-1", + shape: [ - ], - type: "INT32" - }, - { - name: "layer-2", - shape: [ - 9, - 14, - 1 - ], - type: "INT32" - }, - { - name: "layer-3", - shape: [ - 9, - 14, - 1 - ], - type: "INT32" - } - ], - inputs: [ - "input-1", - "input-2" - ], - outputs: [ - "layer-3" - ] - }, - { - name: "COND_BLOCK", - operators: [ - { - op: "CONST", - attribute_type: "NONE", - inputs: [ + ], + type: "INT32" + }, + { + name: "const-0", + shape: [ + 9, + 14, + 1 + ], + type: "INT32" + }, + { + name: "input-2", + shape: [ + 9, + 14, + 1 + ], + type: "INT32" + }, + { + name: "const-3", + shape: [ + + ], + type: "INT32", + data: [ + 0, + 0, + 0, + 0 + ] + }, + { + name: "result-0", + shape: [ + ], + type: "BOOL" + } ], - outputs: [ - "const-3" - ] - }, - { - op: "GREATER", - attribute_type: "NONE", inputs: [ "input-1", - "const-3" + "const-0", + "input-2" ], outputs: [ "result-0" ] - } - ], - tensors: [ - { - name: "input-1", - shape: [ - - ], - type: "INT32" - }, - { - name: "const-0", - shape: [ - 9, - 14, - 1 - ], - type: "INT32" - }, - { - name: "input-2", - shape: [ - 9, - 14, - 1 - ], - type: "INT32" }, { - name: "const-3", - shape: [ + 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" + ] + } ], - type: "INT32", - data: [ - 0, - 0, - 0, - 0 - ] - }, - { - name: "result-0", - shape: [ + tensors: [ + { + name: "input-1", + shape: [ - ], - type: "BOOL" - } - ], - inputs: [ - "input-1", - "const-0", - "input-2" - ], - outputs: [ - "result-0" - ] - }, - { - name: "BODY_BLOCK", - operators: [ - { - op: "CONST", - attribute_type: "NONE", - inputs: [ + ], + type: "INT32" + }, + { + name: "const-0", + shape: [ + 9, + 14, + 1 + ], + type: "INT32" + }, + { + name: "input-2", + shape: [ + 9, + 14, + 1 + ], + type: "INT32" + }, + { + name: "const-4", + shape: [ + ], + type: "INT32", + data: [ + 1, + 0, + 0, + 0 + ] + }, + { + name: "layer-4", + shape: [ + -3 + ], + type: "INT32" + }, + { + name: "layer-5", + shape: [ + 7, + 12, + -2 + ], + type: "INT32" + } ], - outputs: [ - "const-4" - ] - }, - { - op: "ADD", - attribute_type: "NONE", inputs: [ + "input-1", "const-0", "input-2" ], outputs: [ + "layer-4", + "const-0", "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: [ - 9, - 14, - 1 - ], - type: "INT32" - }, - { - name: "input-2", - shape: [ - 9, - 14, - 1 - ], - type: "INT32" - }, - { - name: "const-4", - shape: [ - - ], - type: "INT32", - data: [ - 1, - 0, - 0, - 0 - ] - }, - { - name: "layer-4", - shape: [ - -3 - ], - type: "INT32" - }, - { - name: "layer-5", - shape: [ - 7, - 12, - -2 - ], - type: "INT32" } - ], - inputs: [ - "input-1", - "const-0", - "input-2" - ], - outputs: [ - "layer-4", - "const-0", - "layer-5" ] } ] -- cgit v1.2.1