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 | 237 ++++++------- .../test.json | 369 +++++++++++---------- .../test.json | 201 +++++------ .../test.json | 203 ++++++------ .../test.json | 201 +++++------ .../test.json | 201 +++++------ .../test.json | 203 ++++++------ .../test.json | 203 ++++++------ .../test.json | 203 ++++++------ 9 files changed, 1033 insertions(+), 988 deletions(-) (limited to 'operators/tensor/conv2d_1x3') diff --git a/operators/tensor/conv2d_1x3/conv2d_1x3_1x11x44x13_i8xi4_acci32_st11_pad0000_dilat11/test.json b/operators/tensor/conv2d_1x3/conv2d_1x3_1x11x44x13_i8xi4_acci32_st11_pad0000_dilat11/test.json index b277c57a3..f230388b3 100644 --- a/operators/tensor/conv2d_1x3/conv2d_1x3_1x11x44x13_i8xi4_acci32_st11_pad0000_dilat11/test.json +++ b/operators/tensor/conv2d_1x3/conv2d_1x3_1x11x44x13_i8xi4_acci32_st11_pad0000_dilat11/test.json @@ -5,134 +5,139 @@ _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-1" - ] - }, - { - op: "CONST", - attribute_type: "NONE", - inputs: [ + ], + outputs: [ + "const-1" + ] + }, + { + op: "CONST", + attribute_type: "NONE", + inputs: [ + ], + outputs: [ + "const-2" + ] + }, + { + op: "CONV2D", + attribute_type: "ConvAttribute", + attribute: { + pad: [ + 0, + 0, + 0, + 0 + ], + stride: [ + 1, + 1 + ], + dilation: [ + 1, + 1 + ], + input_zp: 80, + weight_zp: 0, + accum_dtype: "INT32" + }, + inputs: [ + "input-0", + "const-1", + "const-2" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 11, + 44, + 13 + ], + type: "INT8" + }, + { + name: "const-1", + shape: [ + 1, + 1, + 3, + 13 + ], + type: "INT4", + data: [ + 176, + 122, + 12, + 10, + 66, + 193, + 87, + 222, + 159, + 110, + 186, + 160, + 189, + 221, + 73, + 199, + 18, + 221, + 212, + 14 + ] + }, + { + name: "const-2", + shape: [ + 1 + ], + type: "INT32", + data: [ + 95, + 29, + 236, + 61 + ] + }, + { + name: "result-0", + shape: [ + 1, + 11, + 42, + 1 + ], + type: "INT32" + } ], - outputs: [ - "const-2" - ] - }, - { - op: "CONV2D", - attribute_type: "ConvAttribute", - attribute: { - pad: [ - 0, - 0, - 0, - 0 - ], - stride: [ - 1, - 1 - ], - dilation: [ - 1, - 1 - ], - input_zp: 80, - weight_zp: 0, - accum_dtype: "INT32" - }, inputs: [ - "input-0", - "const-1", - "const-2" + "input-0" ], outputs: [ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 1, - 11, - 44, - 13 - ], - type: "INT8" - }, - { - name: "const-1", - shape: [ - 1, - 1, - 3, - 13 - ], - type: "INT4", - data: [ - 176, - 122, - 12, - 10, - 66, - 193, - 87, - 222, - 159, - 110, - 186, - 160, - 189, - 221, - 73, - 199, - 18, - 221, - 212, - 14 - ] - }, - { - name: "const-2", - shape: [ - 1 - ], - type: "INT32", - data: [ - 95, - 29, - 236, - 61 - ] - }, - { - name: "result-0", - shape: [ - 1, - 11, - 42, - 1 - ], - type: "INT32" - } - ], - inputs: [ - "input-0" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/tensor/conv2d_1x3/conv2d_1x3_1x49x42x28_i16xi8_acci48_st88_pad0010_dilat21/test.json b/operators/tensor/conv2d_1x3/conv2d_1x3_1x49x42x28_i16xi8_acci48_st88_pad0010_dilat21/test.json index b87103c18..3d8fc1b1a 100644 --- a/operators/tensor/conv2d_1x3/conv2d_1x3_1x49x42x28_i16xi8_acci48_st88_pad0010_dilat21/test.json +++ b/operators/tensor/conv2d_1x3/conv2d_1x3_1x49x42x28_i16xi8_acci48_st88_pad0010_dilat21/test.json @@ -5,200 +5,205 @@ _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-1" - ] - }, - { - op: "CONST", - attribute_type: "NONE", - inputs: [ + ], + outputs: [ + "const-1" + ] + }, + { + op: "CONST", + attribute_type: "NONE", + inputs: [ + ], + outputs: [ + "const-2" + ] + }, + { + op: "CONV2D", + attribute_type: "ConvAttribute", + attribute: { + pad: [ + 0, + 0, + 1, + 0 + ], + stride: [ + 8, + 8 + ], + dilation: [ + 2, + 1 + ], + input_zp: 0, + weight_zp: 44, + accum_dtype: "INT48" + }, + inputs: [ + "input-0", + "const-1", + "const-2" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 49, + 42, + 28 + ], + type: "INT16" + }, + { + name: "const-1", + shape: [ + 1, + 1, + 3, + 28 + ], + type: "INT8", + data: [ + 71, + 180, + 22, + 209, + 141, + 240, + 8, + 218, + 13, + 154, + 26, + 93, + 13, + 37, + 124, + 51, + 85, + 64, + 67, + 148, + 129, + 232, + 228, + 249, + 118, + 8, + 71, + 22, + 237, + 112, + 228, + 191, + 41, + 253, + 72, + 9, + 97, + 208, + 205, + 89, + 118, + 18, + 190, + 21, + 20, + 192, + 254, + 195, + 45, + 47, + 237, + 181, + 151, + 255, + 113, + 191, + 25, + 96, + 44, + 75, + 44, + 73, + 92, + 194, + 51, + 13, + 187, + 95, + 225, + 22, + 193, + 221, + 219, + 115, + 121, + 160, + 64, + 65, + 146, + 124, + 80, + 30, + 138, + 134 + ] + }, + { + name: "const-2", + shape: [ + 1 + ], + type: "INT48", + data: [ + 238, + 45, + 230, + 36, + 144, + 193 + ] + }, + { + name: "result-0", + shape: [ + 1, + 7, + 6, + 1 + ], + type: "INT48" + } ], - outputs: [ - "const-2" - ] - }, - { - op: "CONV2D", - attribute_type: "ConvAttribute", - attribute: { - pad: [ - 0, - 0, - 1, - 0 - ], - stride: [ - 8, - 8 - ], - dilation: [ - 2, - 1 - ], - input_zp: 0, - weight_zp: 44, - accum_dtype: "INT48" - }, inputs: [ - "input-0", - "const-1", - "const-2" + "input-0" ], outputs: [ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 1, - 49, - 42, - 28 - ], - type: "INT16" - }, - { - name: "const-1", - shape: [ - 1, - 1, - 3, - 28 - ], - type: "INT8", - data: [ - 71, - 180, - 22, - 209, - 141, - 240, - 8, - 218, - 13, - 154, - 26, - 93, - 13, - 37, - 124, - 51, - 85, - 64, - 67, - 148, - 129, - 232, - 228, - 249, - 118, - 8, - 71, - 22, - 237, - 112, - 228, - 191, - 41, - 253, - 72, - 9, - 97, - 208, - 205, - 89, - 118, - 18, - 190, - 21, - 20, - 192, - 254, - 195, - 45, - 47, - 237, - 181, - 151, - 255, - 113, - 191, - 25, - 96, - 44, - 75, - 44, - 73, - 92, - 194, - 51, - 13, - 187, - 95, - 225, - 22, - 193, - 221, - 219, - 115, - 121, - 160, - 64, - 65, - 146, - 124, - 80, - 30, - 138, - 134 - ] - }, - { - name: "const-2", - shape: [ - 1 - ], - type: "INT48", - data: [ - 238, - 45, - 230, - 36, - 144, - 193 - ] - }, - { - name: "result-0", - shape: [ - 1, - 7, - 6, - 1 - ], - type: "INT48" - } - ], - inputs: [ - "input-0" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/tensor/conv2d_1x3/conv2d_1x3_1x5x65536x1_i8xi4_acci32_st11_pad0111_dilat11/test.json b/operators/tensor/conv2d_1x3/conv2d_1x3_1x5x65536x1_i8xi4_acci32_st11_pad0111_dilat11/test.json index b4d48b455..b211b18b3 100644 --- a/operators/tensor/conv2d_1x3/conv2d_1x3_1x5x65536x1_i8xi4_acci32_st11_pad0111_dilat11/test.json +++ b/operators/tensor/conv2d_1x3/conv2d_1x3_1x5x65536x1_i8xi4_acci32_st11_pad0111_dilat11/test.json @@ -5,116 +5,121 @@ _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-1" - ] - }, - { - op: "CONST", - attribute_type: "NONE", - inputs: [ + ], + outputs: [ + "const-1" + ] + }, + { + op: "CONST", + attribute_type: "NONE", + inputs: [ + ], + outputs: [ + "const-2" + ] + }, + { + op: "CONV2D", + attribute_type: "ConvAttribute", + attribute: { + pad: [ + 0, + 1, + 1, + 1 + ], + stride: [ + 1, + 1 + ], + dilation: [ + 1, + 1 + ], + input_zp: 30, + weight_zp: 0, + accum_dtype: "INT32" + }, + inputs: [ + "input-0", + "const-1", + "const-2" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 5, + 65536, + 1 + ], + type: "INT8" + }, + { + name: "const-1", + shape: [ + 1, + 1, + 3, + 1 + ], + type: "INT4", + data: [ + 147, + 12 + ] + }, + { + name: "const-2", + shape: [ + 1 + ], + type: "INT32", + data: [ + 174, + 49, + 213, + 180 + ] + }, + { + name: "result-0", + shape: [ + 1, + 6, + 65536, + 1 + ], + type: "INT32" + } ], - outputs: [ - "const-2" - ] - }, - { - op: "CONV2D", - attribute_type: "ConvAttribute", - attribute: { - pad: [ - 0, - 1, - 1, - 1 - ], - stride: [ - 1, - 1 - ], - dilation: [ - 1, - 1 - ], - input_zp: 30, - weight_zp: 0, - accum_dtype: "INT32" - }, inputs: [ - "input-0", - "const-1", - "const-2" + "input-0" ], outputs: [ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 1, - 5, - 65536, - 1 - ], - type: "INT8" - }, - { - name: "const-1", - shape: [ - 1, - 1, - 3, - 1 - ], - type: "INT4", - data: [ - 147, - 12 - ] - }, - { - name: "const-2", - shape: [ - 1 - ], - type: "INT32", - data: [ - 174, - 49, - 213, - 180 - ] - }, - { - name: "result-0", - shape: [ - 1, - 6, - 65536, - 1 - ], - type: "INT32" - } - ], - inputs: [ - "input-0" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/tensor/conv2d_1x3/conv2d_1x3_1x5x65536x1_i8xi8_acci32_st11_pad1001_dilat11/test.json b/operators/tensor/conv2d_1x3/conv2d_1x3_1x5x65536x1_i8xi8_acci32_st11_pad1001_dilat11/test.json index e8a8336fc..49a13039c 100644 --- a/operators/tensor/conv2d_1x3/conv2d_1x3_1x5x65536x1_i8xi8_acci32_st11_pad1001_dilat11/test.json +++ b/operators/tensor/conv2d_1x3/conv2d_1x3_1x5x65536x1_i8xi8_acci32_st11_pad1001_dilat11/test.json @@ -5,117 +5,122 @@ _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-1" - ] - }, - { - op: "CONST", - attribute_type: "NONE", - inputs: [ + ], + outputs: [ + "const-1" + ] + }, + { + op: "CONST", + attribute_type: "NONE", + inputs: [ + ], + outputs: [ + "const-2" + ] + }, + { + op: "CONV2D", + attribute_type: "ConvAttribute", + attribute: { + pad: [ + 1, + 0, + 0, + 1 + ], + stride: [ + 1, + 1 + ], + dilation: [ + 1, + 1 + ], + input_zp: 36, + weight_zp: -125, + accum_dtype: "INT32" + }, + inputs: [ + "input-0", + "const-1", + "const-2" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 5, + 65536, + 1 + ], + type: "INT8" + }, + { + name: "const-1", + shape: [ + 1, + 1, + 3, + 1 + ], + type: "INT8", + data: [ + 134, + 243, + 182 + ] + }, + { + name: "const-2", + shape: [ + 1 + ], + type: "INT32", + data: [ + 217, + 53, + 174, + 86 + ] + }, + { + name: "result-0", + shape: [ + 1, + 6, + 65535, + 1 + ], + type: "INT32" + } ], - outputs: [ - "const-2" - ] - }, - { - op: "CONV2D", - attribute_type: "ConvAttribute", - attribute: { - pad: [ - 1, - 0, - 0, - 1 - ], - stride: [ - 1, - 1 - ], - dilation: [ - 1, - 1 - ], - input_zp: 36, - weight_zp: -125, - accum_dtype: "INT32" - }, inputs: [ - "input-0", - "const-1", - "const-2" + "input-0" ], outputs: [ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 1, - 5, - 65536, - 1 - ], - type: "INT8" - }, - { - name: "const-1", - shape: [ - 1, - 1, - 3, - 1 - ], - type: "INT8", - data: [ - 134, - 243, - 182 - ] - }, - { - name: "const-2", - shape: [ - 1 - ], - type: "INT32", - data: [ - 217, - 53, - 174, - 86 - ] - }, - { - name: "result-0", - shape: [ - 1, - 6, - 65535, - 1 - ], - type: "INT32" - } - ], - inputs: [ - "input-0" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/tensor/conv2d_1x3/conv2d_1x3_1x65535x4x1_i8xi4_acci32_st11_pad0001_dilat11/test.json b/operators/tensor/conv2d_1x3/conv2d_1x3_1x65535x4x1_i8xi4_acci32_st11_pad0001_dilat11/test.json index 8ad9b73bb..17a587b85 100644 --- a/operators/tensor/conv2d_1x3/conv2d_1x3_1x65535x4x1_i8xi4_acci32_st11_pad0001_dilat11/test.json +++ b/operators/tensor/conv2d_1x3/conv2d_1x3_1x65535x4x1_i8xi4_acci32_st11_pad0001_dilat11/test.json @@ -5,116 +5,121 @@ _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-1" - ] - }, - { - op: "CONST", - attribute_type: "NONE", - inputs: [ + ], + outputs: [ + "const-1" + ] + }, + { + op: "CONST", + attribute_type: "NONE", + inputs: [ + ], + outputs: [ + "const-2" + ] + }, + { + op: "CONV2D", + attribute_type: "ConvAttribute", + attribute: { + pad: [ + 0, + 0, + 0, + 1 + ], + stride: [ + 1, + 1 + ], + dilation: [ + 1, + 1 + ], + input_zp: -64, + weight_zp: 0, + accum_dtype: "INT32" + }, + inputs: [ + "input-0", + "const-1", + "const-2" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 65535, + 4, + 1 + ], + type: "INT8" + }, + { + name: "const-1", + shape: [ + 1, + 1, + 3, + 1 + ], + type: "INT4", + data: [ + 118, + 10 + ] + }, + { + name: "const-2", + shape: [ + 1 + ], + type: "INT32", + data: [ + 15, + 168, + 30, + 101 + ] + }, + { + name: "result-0", + shape: [ + 1, + 65535, + 3, + 1 + ], + type: "INT32" + } ], - outputs: [ - "const-2" - ] - }, - { - op: "CONV2D", - attribute_type: "ConvAttribute", - attribute: { - pad: [ - 0, - 0, - 0, - 1 - ], - stride: [ - 1, - 1 - ], - dilation: [ - 1, - 1 - ], - input_zp: -64, - weight_zp: 0, - accum_dtype: "INT32" - }, inputs: [ - "input-0", - "const-1", - "const-2" + "input-0" ], outputs: [ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 1, - 65535, - 4, - 1 - ], - type: "INT8" - }, - { - name: "const-1", - shape: [ - 1, - 1, - 3, - 1 - ], - type: "INT4", - data: [ - 118, - 10 - ] - }, - { - name: "const-2", - shape: [ - 1 - ], - type: "INT32", - data: [ - 15, - 168, - 30, - 101 - ] - }, - { - name: "result-0", - shape: [ - 1, - 65535, - 3, - 1 - ], - type: "INT32" - } - ], - inputs: [ - "input-0" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/tensor/conv2d_1x3/conv2d_1x3_1x65535x4x1_i8xi4_acci32_st11_pad1000_dilat11/test.json b/operators/tensor/conv2d_1x3/conv2d_1x3_1x65535x4x1_i8xi4_acci32_st11_pad1000_dilat11/test.json index b694d6c31..cd9f2161f 100644 --- a/operators/tensor/conv2d_1x3/conv2d_1x3_1x65535x4x1_i8xi4_acci32_st11_pad1000_dilat11/test.json +++ b/operators/tensor/conv2d_1x3/conv2d_1x3_1x65535x4x1_i8xi4_acci32_st11_pad1000_dilat11/test.json @@ -5,116 +5,121 @@ _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-1" - ] - }, - { - op: "CONST", - attribute_type: "NONE", - inputs: [ + ], + outputs: [ + "const-1" + ] + }, + { + op: "CONST", + attribute_type: "NONE", + inputs: [ + ], + outputs: [ + "const-2" + ] + }, + { + op: "CONV2D", + attribute_type: "ConvAttribute", + attribute: { + pad: [ + 1, + 0, + 0, + 0 + ], + stride: [ + 1, + 1 + ], + dilation: [ + 1, + 1 + ], + input_zp: 64, + weight_zp: 0, + accum_dtype: "INT32" + }, + inputs: [ + "input-0", + "const-1", + "const-2" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 65535, + 4, + 1 + ], + type: "INT8" + }, + { + name: "const-1", + shape: [ + 1, + 1, + 3, + 1 + ], + type: "INT4", + data: [ + 118, + 0 + ] + }, + { + name: "const-2", + shape: [ + 1 + ], + type: "INT32", + data: [ + 252, + 138, + 235, + 62 + ] + }, + { + name: "result-0", + shape: [ + 1, + 65536, + 2, + 1 + ], + type: "INT32" + } ], - outputs: [ - "const-2" - ] - }, - { - op: "CONV2D", - attribute_type: "ConvAttribute", - attribute: { - pad: [ - 1, - 0, - 0, - 0 - ], - stride: [ - 1, - 1 - ], - dilation: [ - 1, - 1 - ], - input_zp: 64, - weight_zp: 0, - accum_dtype: "INT32" - }, inputs: [ - "input-0", - "const-1", - "const-2" + "input-0" ], outputs: [ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 1, - 65535, - 4, - 1 - ], - type: "INT8" - }, - { - name: "const-1", - shape: [ - 1, - 1, - 3, - 1 - ], - type: "INT4", - data: [ - 118, - 0 - ] - }, - { - name: "const-2", - shape: [ - 1 - ], - type: "INT32", - data: [ - 252, - 138, - 235, - 62 - ] - }, - { - name: "result-0", - shape: [ - 1, - 65536, - 2, - 1 - ], - type: "INT32" - } - ], - inputs: [ - "input-0" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/tensor/conv2d_1x3/conv2d_1x3_1x65535x4x1_i8xi8_acci32_st11_pad0100_dilat11/test.json b/operators/tensor/conv2d_1x3/conv2d_1x3_1x65535x4x1_i8xi8_acci32_st11_pad0100_dilat11/test.json index 5fc1b81f6..733cbadeb 100644 --- a/operators/tensor/conv2d_1x3/conv2d_1x3_1x65535x4x1_i8xi8_acci32_st11_pad0100_dilat11/test.json +++ b/operators/tensor/conv2d_1x3/conv2d_1x3_1x65535x4x1_i8xi8_acci32_st11_pad0100_dilat11/test.json @@ -5,117 +5,122 @@ _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-1" - ] - }, - { - op: "CONST", - attribute_type: "NONE", - inputs: [ + ], + outputs: [ + "const-1" + ] + }, + { + op: "CONST", + attribute_type: "NONE", + inputs: [ + ], + outputs: [ + "const-2" + ] + }, + { + op: "CONV2D", + attribute_type: "ConvAttribute", + attribute: { + pad: [ + 0, + 1, + 0, + 0 + ], + stride: [ + 1, + 1 + ], + dilation: [ + 1, + 1 + ], + input_zp: 114, + weight_zp: -10, + accum_dtype: "INT32" + }, + inputs: [ + "input-0", + "const-1", + "const-2" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 65535, + 4, + 1 + ], + type: "INT8" + }, + { + name: "const-1", + shape: [ + 1, + 1, + 3, + 1 + ], + type: "INT8", + data: [ + 35, + 24, + 154 + ] + }, + { + name: "const-2", + shape: [ + 1 + ], + type: "INT32", + data: [ + 151, + 64, + 83, + 231 + ] + }, + { + name: "result-0", + shape: [ + 1, + 65536, + 2, + 1 + ], + type: "INT32" + } ], - outputs: [ - "const-2" - ] - }, - { - op: "CONV2D", - attribute_type: "ConvAttribute", - attribute: { - pad: [ - 0, - 1, - 0, - 0 - ], - stride: [ - 1, - 1 - ], - dilation: [ - 1, - 1 - ], - input_zp: 114, - weight_zp: -10, - accum_dtype: "INT32" - }, inputs: [ - "input-0", - "const-1", - "const-2" + "input-0" ], outputs: [ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 1, - 65535, - 4, - 1 - ], - type: "INT8" - }, - { - name: "const-1", - shape: [ - 1, - 1, - 3, - 1 - ], - type: "INT8", - data: [ - 35, - 24, - 154 - ] - }, - { - name: "const-2", - shape: [ - 1 - ], - type: "INT32", - data: [ - 151, - 64, - 83, - 231 - ] - }, - { - name: "result-0", - shape: [ - 1, - 65536, - 2, - 1 - ], - type: "INT32" - } - ], - inputs: [ - "input-0" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/tensor/conv2d_1x3/conv2d_1x3_1x65535x4x1_i8xi8_acci32_st11_pad1110_dilat11/test.json b/operators/tensor/conv2d_1x3/conv2d_1x3_1x65535x4x1_i8xi8_acci32_st11_pad1110_dilat11/test.json index 5ad9b9da7..5615124bd 100644 --- a/operators/tensor/conv2d_1x3/conv2d_1x3_1x65535x4x1_i8xi8_acci32_st11_pad1110_dilat11/test.json +++ b/operators/tensor/conv2d_1x3/conv2d_1x3_1x65535x4x1_i8xi8_acci32_st11_pad1110_dilat11/test.json @@ -5,117 +5,122 @@ _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-1" - ] - }, - { - op: "CONST", - attribute_type: "NONE", - inputs: [ + ], + outputs: [ + "const-1" + ] + }, + { + op: "CONST", + attribute_type: "NONE", + inputs: [ + ], + outputs: [ + "const-2" + ] + }, + { + op: "CONV2D", + attribute_type: "ConvAttribute", + attribute: { + pad: [ + 1, + 1, + 1, + 0 + ], + stride: [ + 1, + 1 + ], + dilation: [ + 1, + 1 + ], + input_zp: -69, + weight_zp: -5, + accum_dtype: "INT32" + }, + inputs: [ + "input-0", + "const-1", + "const-2" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 65535, + 4, + 1 + ], + type: "INT8" + }, + { + name: "const-1", + shape: [ + 1, + 1, + 3, + 1 + ], + type: "INT8", + data: [ + 0, + 137, + 181 + ] + }, + { + name: "const-2", + shape: [ + 1 + ], + type: "INT32", + data: [ + 233, + 176, + 178, + 238 + ] + }, + { + name: "result-0", + shape: [ + 1, + 65537, + 3, + 1 + ], + type: "INT32" + } ], - outputs: [ - "const-2" - ] - }, - { - op: "CONV2D", - attribute_type: "ConvAttribute", - attribute: { - pad: [ - 1, - 1, - 1, - 0 - ], - stride: [ - 1, - 1 - ], - dilation: [ - 1, - 1 - ], - input_zp: -69, - weight_zp: -5, - accum_dtype: "INT32" - }, inputs: [ - "input-0", - "const-1", - "const-2" + "input-0" ], outputs: [ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 1, - 65535, - 4, - 1 - ], - type: "INT8" - }, - { - name: "const-1", - shape: [ - 1, - 1, - 3, - 1 - ], - type: "INT8", - data: [ - 0, - 137, - 181 - ] - }, - { - name: "const-2", - shape: [ - 1 - ], - type: "INT32", - data: [ - 233, - 176, - 178, - 238 - ] - }, - { - name: "result-0", - shape: [ - 1, - 65537, - 3, - 1 - ], - type: "INT32" - } - ], - inputs: [ - "input-0" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/tensor/conv2d_1x3/conv2d_1x3_1x65535x4x1_i8xi8_acci32_st81_pad1100_dilat71/test.json b/operators/tensor/conv2d_1x3/conv2d_1x3_1x65535x4x1_i8xi8_acci32_st81_pad1100_dilat71/test.json index b412defc0..d7624ba73 100644 --- a/operators/tensor/conv2d_1x3/conv2d_1x3_1x65535x4x1_i8xi8_acci32_st81_pad1100_dilat71/test.json +++ b/operators/tensor/conv2d_1x3/conv2d_1x3_1x65535x4x1_i8xi8_acci32_st81_pad1100_dilat71/test.json @@ -5,117 +5,122 @@ _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-1" - ] - }, - { - op: "CONST", - attribute_type: "NONE", - inputs: [ + ], + outputs: [ + "const-1" + ] + }, + { + op: "CONST", + attribute_type: "NONE", + inputs: [ + ], + outputs: [ + "const-2" + ] + }, + { + op: "CONV2D", + attribute_type: "ConvAttribute", + attribute: { + pad: [ + 1, + 1, + 0, + 0 + ], + stride: [ + 8, + 1 + ], + dilation: [ + 7, + 1 + ], + input_zp: 53, + weight_zp: 120, + accum_dtype: "INT32" + }, + inputs: [ + "input-0", + "const-1", + "const-2" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 65535, + 4, + 1 + ], + type: "INT8" + }, + { + name: "const-1", + shape: [ + 1, + 1, + 3, + 1 + ], + type: "INT8", + data: [ + 122, + 33, + 46 + ] + }, + { + name: "const-2", + shape: [ + 1 + ], + type: "INT32", + data: [ + 166, + 96, + 8, + 61 + ] + }, + { + name: "result-0", + shape: [ + 1, + 8193, + 2, + 1 + ], + type: "INT32" + } ], - outputs: [ - "const-2" - ] - }, - { - op: "CONV2D", - attribute_type: "ConvAttribute", - attribute: { - pad: [ - 1, - 1, - 0, - 0 - ], - stride: [ - 8, - 1 - ], - dilation: [ - 7, - 1 - ], - input_zp: 53, - weight_zp: 120, - accum_dtype: "INT32" - }, inputs: [ - "input-0", - "const-1", - "const-2" + "input-0" ], outputs: [ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 1, - 65535, - 4, - 1 - ], - type: "INT8" - }, - { - name: "const-1", - shape: [ - 1, - 1, - 3, - 1 - ], - type: "INT8", - data: [ - 122, - 33, - 46 - ] - }, - { - name: "const-2", - shape: [ - 1 - ], - type: "INT32", - data: [ - 166, - 96, - 8, - 61 - ] - }, - { - name: "result-0", - shape: [ - 1, - 8193, - 2, - 1 - ], - type: "INT32" - } - ], - inputs: [ - "input-0" - ], - outputs: [ - "result-0" ] } ] -- cgit v1.2.1