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_split_1x4x8x19_i32_splitv_axis3.json | 849 +++++++++++---------- 1 file changed, 427 insertions(+), 422 deletions(-) (limited to 'frameworks/tflite/operators/split_1x4x8x19_i32_splitv_axis3/test_split_1x4x8x19_i32_splitv_axis3.json') diff --git a/frameworks/tflite/operators/split_1x4x8x19_i32_splitv_axis3/test_split_1x4x8x19_i32_splitv_axis3.json b/frameworks/tflite/operators/split_1x4x8x19_i32_splitv_axis3/test_split_1x4x8x19_i32_splitv_axis3.json index 4adee7674..a6f7aec99 100644 --- a/frameworks/tflite/operators/split_1x4x8x19_i32_splitv_axis3/test_split_1x4x8x19_i32_splitv_axis3.json +++ b/frameworks/tflite/operators/split_1x4x8x19_i32_splitv_axis3/test_split_1x4x8x19_i32_splitv_axis3.json @@ -5,450 +5,455 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "SLICE", - attribute_type: "SliceAttribute", - attribute: { - start: [ - 0, - 0, - 0, - 0 - ], - size: [ - 1, - 4, - 8, - 16 - ] - }, - inputs: [ - "TosaInput_0" - ], - outputs: [ - "layer_0" - ] - }, - { - op: "SLICE", - attribute_type: "SliceAttribute", - attribute: { - start: [ - 0, - 0, - 0, - 16 - ], - size: [ - 1, - 4, - 8, - 2 - ] - }, - inputs: [ - "TosaInput_0" - ], - outputs: [ - "layer_1" - ] - }, - { - op: "SLICE", - attribute_type: "SliceAttribute", - attribute: { - start: [ - 0, - 0, - 0, - 18 - ], - size: [ - 1, - 4, - 8, - 1 - ] - }, - inputs: [ - "TosaInput_0" - ], - outputs: [ - "layer_2" - ] - }, - { - op: "REDUCE_SUM", - attribute_type: "AxisAttribute", - attribute: { - axis: 1 - }, - inputs: [ - "layer_0" - ], - outputs: [ - "layer_3" - ] - }, - { - op: "REDUCE_SUM", - attribute_type: "AxisAttribute", - attribute: { - axis: 2 - }, - inputs: [ - "layer_3" - ], - outputs: [ - "layer_4" - ] - }, - { - op: "REDUCE_SUM", - attribute_type: "AxisAttribute", - attribute: { - axis: 3 - }, - inputs: [ - "layer_4" - ], - outputs: [ - "layer_5" - ] - }, - { - op: "REDUCE_SUM", - attribute_type: "AxisAttribute", - attribute: { - axis: 1 - }, - inputs: [ - "layer_1" + name: "main", + operators: [ + { + op: "SLICE", + attribute_type: "SliceAttribute", + attribute: { + start: [ + 0, + 0, + 0, + 0 + ], + size: [ + 1, + 4, + 8, + 16 + ] + }, + inputs: [ + "TosaInput_0" + ], + outputs: [ + "layer_0" + ] + }, + { + op: "SLICE", + attribute_type: "SliceAttribute", + attribute: { + start: [ + 0, + 0, + 0, + 16 + ], + size: [ + 1, + 4, + 8, + 2 + ] + }, + inputs: [ + "TosaInput_0" + ], + outputs: [ + "layer_1" + ] + }, + { + op: "SLICE", + attribute_type: "SliceAttribute", + attribute: { + start: [ + 0, + 0, + 0, + 18 + ], + size: [ + 1, + 4, + 8, + 1 + ] + }, + inputs: [ + "TosaInput_0" + ], + outputs: [ + "layer_2" + ] + }, + { + op: "REDUCE_SUM", + attribute_type: "AxisAttribute", + attribute: { + axis: 1 + }, + inputs: [ + "layer_0" + ], + outputs: [ + "layer_3" + ] + }, + { + op: "REDUCE_SUM", + attribute_type: "AxisAttribute", + attribute: { + axis: 2 + }, + inputs: [ + "layer_3" + ], + outputs: [ + "layer_4" + ] + }, + { + op: "REDUCE_SUM", + attribute_type: "AxisAttribute", + attribute: { + axis: 3 + }, + inputs: [ + "layer_4" + ], + outputs: [ + "layer_5" + ] + }, + { + op: "REDUCE_SUM", + attribute_type: "AxisAttribute", + attribute: { + axis: 1 + }, + inputs: [ + "layer_1" + ], + outputs: [ + "layer_6" + ] + }, + { + op: "REDUCE_SUM", + attribute_type: "AxisAttribute", + attribute: { + axis: 2 + }, + inputs: [ + "layer_6" + ], + outputs: [ + "layer_7" + ] + }, + { + op: "REDUCE_SUM", + attribute_type: "AxisAttribute", + attribute: { + axis: 3 + }, + inputs: [ + "layer_7" + ], + outputs: [ + "layer_8" + ] + }, + { + op: "REDUCE_SUM", + attribute_type: "AxisAttribute", + attribute: { + axis: 1 + }, + inputs: [ + "layer_2" + ], + outputs: [ + "layer_9" + ] + }, + { + op: "REDUCE_SUM", + attribute_type: "AxisAttribute", + attribute: { + axis: 2 + }, + inputs: [ + "layer_9" + ], + outputs: [ + "layer_10" + ] + }, + { + op: "RESHAPE", + attribute_type: "ReshapeAttribute", + attribute: { + new_shape: [ + 1 + ] + }, + inputs: [ + "layer_5" + ], + outputs: [ + "layer_11" + ] + }, + { + op: "RESHAPE", + attribute_type: "ReshapeAttribute", + attribute: { + new_shape: [ + 1 + ] + }, + inputs: [ + "layer_8" + ], + outputs: [ + "layer_12" + ] + }, + { + op: "RESHAPE", + attribute_type: "ReshapeAttribute", + attribute: { + new_shape: [ + 1 + ] + }, + inputs: [ + "layer_10" + ], + outputs: [ + "layer_13" + ] + }, + { + op: "CONCAT", + attribute_type: "AxisAttribute", + attribute: { + axis: 0 + }, + inputs: [ + "layer_11", + "layer_12", + "layer_13" + ], + outputs: [ + "TosaOutput_0" + ] + } ], - outputs: [ - "layer_6" - ] - }, - { - op: "REDUCE_SUM", - attribute_type: "AxisAttribute", - attribute: { - axis: 2 - }, - inputs: [ - "layer_6" - ], - outputs: [ - "layer_7" - ] - }, - { - op: "REDUCE_SUM", - attribute_type: "AxisAttribute", - attribute: { - axis: 3 - }, - inputs: [ - "layer_7" - ], - outputs: [ - "layer_8" - ] - }, - { - op: "REDUCE_SUM", - attribute_type: "AxisAttribute", - attribute: { - axis: 1 - }, - inputs: [ - "layer_2" - ], - outputs: [ - "layer_9" - ] - }, - { - op: "REDUCE_SUM", - attribute_type: "AxisAttribute", - attribute: { - axis: 2 - }, - inputs: [ - "layer_9" - ], - outputs: [ - "layer_10" - ] - }, - { - op: "RESHAPE", - attribute_type: "ReshapeAttribute", - attribute: { - new_shape: [ - 1 - ] - }, - inputs: [ - "layer_5" - ], - outputs: [ - "layer_11" - ] - }, - { - op: "RESHAPE", - attribute_type: "ReshapeAttribute", - attribute: { - new_shape: [ - 1 - ] - }, - inputs: [ - "layer_8" - ], - outputs: [ - "layer_12" - ] - }, - { - op: "RESHAPE", - attribute_type: "ReshapeAttribute", - attribute: { - new_shape: [ - 1 - ] - }, - inputs: [ - "layer_10" - ], - outputs: [ - "layer_13" - ] - }, - { - op: "CONCAT", - attribute_type: "AxisAttribute", - attribute: { - axis: 0 - }, - inputs: [ - "layer_11", - "layer_12", - "layer_13" - ], - outputs: [ - "TosaOutput_0" - ] - } - ], - tensors: [ - { - name: "TosaInput_0", - shape: [ - 1, - 4, - 8, - 19 - ], - type: "INT32", - data: [ + tensors: [ + { + name: "TosaInput_0", + shape: [ + 1, + 4, + 8, + 19 + ], + type: "INT32", + data: [ - ] - }, - { - name: "TosaOutput_0", - shape: [ - 3 - ], - type: "INT32", - data: [ + ] + }, + { + name: "TosaOutput_0", + shape: [ + 3 + ], + type: "INT32", + data: [ - ] - }, - { - name: "layer_0", - shape: [ - 1, - 4, - 8, - 16 - ], - type: "INT32", - data: [ + ] + }, + { + name: "layer_0", + shape: [ + 1, + 4, + 8, + 16 + ], + type: "INT32", + data: [ - ] - }, - { - name: "layer_1", - shape: [ - 1, - 4, - 8, - 2 - ], - type: "INT32", - data: [ + ] + }, + { + name: "layer_1", + shape: [ + 1, + 4, + 8, + 2 + ], + type: "INT32", + data: [ - ] - }, - { - name: "layer_10", - shape: [ - 1, - 1, - 1, - 1 - ], - type: "INT32", - data: [ + ] + }, + { + name: "layer_10", + shape: [ + 1, + 1, + 1, + 1 + ], + type: "INT32", + data: [ - ] - }, - { - name: "layer_11", - shape: [ - 1 - ], - type: "INT32", - data: [ + ] + }, + { + name: "layer_11", + shape: [ + 1 + ], + type: "INT32", + data: [ - ] - }, - { - name: "layer_12", - shape: [ - 1 - ], - type: "INT32", - data: [ + ] + }, + { + name: "layer_12", + shape: [ + 1 + ], + type: "INT32", + data: [ - ] - }, - { - name: "layer_13", - shape: [ - 1 - ], - type: "INT32", - data: [ + ] + }, + { + name: "layer_13", + shape: [ + 1 + ], + type: "INT32", + data: [ - ] - }, - { - name: "layer_2", - shape: [ - 1, - 4, - 8, - 1 - ], - type: "INT32", - data: [ + ] + }, + { + name: "layer_2", + shape: [ + 1, + 4, + 8, + 1 + ], + type: "INT32", + data: [ - ] - }, - { - name: "layer_3", - shape: [ - 1, - 1, - 8, - 16 - ], - type: "INT32", - data: [ + ] + }, + { + name: "layer_3", + shape: [ + 1, + 1, + 8, + 16 + ], + type: "INT32", + data: [ - ] - }, - { - name: "layer_4", - shape: [ - 1, - 1, - 1, - 16 - ], - type: "INT32", - data: [ + ] + }, + { + name: "layer_4", + shape: [ + 1, + 1, + 1, + 16 + ], + type: "INT32", + data: [ - ] - }, - { - name: "layer_5", - shape: [ - 1, - 1, - 1, - 1 - ], - type: "INT32", - data: [ + ] + }, + { + name: "layer_5", + shape: [ + 1, + 1, + 1, + 1 + ], + type: "INT32", + data: [ - ] - }, - { - name: "layer_6", - shape: [ - 1, - 1, - 8, - 2 - ], - type: "INT32", - data: [ + ] + }, + { + name: "layer_6", + shape: [ + 1, + 1, + 8, + 2 + ], + type: "INT32", + data: [ - ] - }, - { - name: "layer_7", - shape: [ - 1, - 1, - 1, - 2 - ], - type: "INT32", - data: [ + ] + }, + { + name: "layer_7", + shape: [ + 1, + 1, + 1, + 2 + ], + type: "INT32", + data: [ - ] - }, - { - name: "layer_8", - shape: [ - 1, - 1, - 1, - 1 - ], - type: "INT32", - data: [ + ] + }, + { + name: "layer_8", + shape: [ + 1, + 1, + 1, + 1 + ], + type: "INT32", + data: [ - ] - }, - { - name: "layer_9", - shape: [ - 1, - 1, - 8, - 1 - ], - type: "INT32", - data: [ + ] + }, + { + name: "layer_9", + shape: [ + 1, + 1, + 8, + 1 + ], + type: "INT32", + data: [ + ] + } + ], + inputs: [ + "TosaInput_0" + ], + outputs: [ + "TosaOutput_0" ] } - ], - inputs: [ - "TosaInput_0" - ], - outputs: [ - "TosaOutput_0" ] } ] -- cgit v1.2.1