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 | 295 +++++++++++---------- 1 file changed, 150 insertions(+), 145 deletions(-) (limited to 'operators/control_flow/cond_if_binary/cond_if_binary_ERRORIF_CondIfInputListElseGraphMismatch_10x3x12_i8_cond0/test.json') 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 index aaeadd994..bbb511e6f 100644 --- 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 @@ -5,90 +5,131 @@ _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-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" + } ], - 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 + name: "THEN_BLOCK", + operators: [ + { + op: "LOGICAL_RIGHT_SHIFT", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-1" + ] + } ], - type: "INT8" - }, - { - name: "const-2", - shape: [ - - ], - type: "BOOL", - data: [ - 0 - ] - }, - { - name: "result-0", - shape: [ - 10, - 3, - 12 + 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" + } ], - 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" @@ -96,51 +137,51 @@ outputs: [ "result-1" ] - } - ], - tensors: [ - { - name: "input-0", - shape: [ - 10, - 3, - 12 - ], - type: "INT8" }, { - name: "input-1", - shape: [ - 10, - 3, - 12 + name: "ELSE_BLOCK", + operators: [ + { + op: "LOGICAL_LEFT_SHIFT", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-2" + ] + } ], - type: "INT8" - }, - { - name: "result-1", - shape: [ - 10, - 3, - 12 + tensors: [ + { + name: "input-0", + shape: [ + 7, + 6, + 14 + ], + type: "INT8" + }, + { + name: "input-1", + shape: [ + 10, + 3, + 12 + ], + type: "INT8" + }, + { + name: "result-2", + shape: [ + 10, + 3, + 12 + ], + type: "INT8" + } ], - 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" @@ -149,42 +190,6 @@ "result-2" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 7, - 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" ] } ] -- cgit v1.2.1