diff options
Diffstat (limited to 'frameworks/tflite/operators/fully_connected_14x19_qi8')
-rw-r--r-- | frameworks/tflite/operators/fully_connected_14x19_qi8/test_matmul_14x19_qi8.json | 541 |
1 files changed, 273 insertions, 268 deletions
diff --git a/frameworks/tflite/operators/fully_connected_14x19_qi8/test_matmul_14x19_qi8.json b/frameworks/tflite/operators/fully_connected_14x19_qi8/test_matmul_14x19_qi8.json index ecae1f628..fa8d7d200 100644 --- a/frameworks/tflite/operators/fully_connected_14x19_qi8/test_matmul_14x19_qi8.json +++ b/frameworks/tflite/operators/fully_connected_14x19_qi8/test_matmul_14x19_qi8.json @@ -5,288 +5,293 @@ _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: [ - "layer_0" - ] - }, - { - op: "CONST", - attribute_type: "NONE", - inputs: [ + ], + outputs: [ + "layer_0" + ] + }, + { + op: "CONST", + attribute_type: "NONE", + inputs: [ + ], + outputs: [ + "layer_1" + ] + }, + { + op: "TRANSPOSE", + attribute_type: "TransposeAttribute", + attribute: { + perms: [ + 1, + 0 + ] + }, + inputs: [ + "TosaInput_1" + ], + outputs: [ + "layer_2" + ] + }, + { + op: "FULLY_CONNECTED", + attribute_type: "FullyConnectedAttribute", + attribute: { + input_zp: -1, + weight_zp: -1, + accum_dtype: "INT32" + }, + inputs: [ + "TosaInput_0", + "layer_2", + "layer_0" + ], + outputs: [ + "layer_3" + ] + }, + { + op: "RESCALE", + attribute_type: "RescaleAttribute", + attribute: { + input_zp: 0, + output_zp: 3, + multiplier: [ + 1353377973 + ], + shift: [ + 40 + ], + scale32: true, + double_round: true, + per_channel: false + }, + inputs: [ + "layer_3" + ], + outputs: [ + "TosaOutput_0" + ] + } ], - outputs: [ - "layer_1" - ] - }, - { - op: "TRANSPOSE", - attribute_type: "TransposeAttribute", - attribute: { - perms: [ - 1, - 0 - ] - }, - inputs: [ - "TosaInput_1" + tensors: [ + { + name: "TosaInput_0", + shape: [ + 14, + 19 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "TosaInput_1", + shape: [ + 19, + 28 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "TosaOutput_0", + shape: [ + 14, + 28 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "layer_0", + shape: [ + 28 + ], + type: "INT32", + data: [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + { + name: "layer_1", + shape: [ + 2 + ], + type: "INT32", + data: [ + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + { + name: "layer_2", + shape: [ + 28, + 19 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "layer_3", + shape: [ + 14, + 28 + ], + type: "INT32", + data: [ + + ] + } ], - outputs: [ - "layer_2" - ] - }, - { - op: "FULLY_CONNECTED", - attribute_type: "FullyConnectedAttribute", - attribute: { - input_zp: -1, - weight_zp: -1, - accum_dtype: "INT32" - }, inputs: [ "TosaInput_0", - "layer_2", - "layer_0" - ], - outputs: [ - "layer_3" - ] - }, - { - op: "RESCALE", - attribute_type: "RescaleAttribute", - attribute: { - input_zp: 0, - output_zp: 3, - multiplier: [ - 1353377973 - ], - shift: [ - 40 - ], - scale32: true, - double_round: true, - per_channel: false - }, - inputs: [ - "layer_3" + "TosaInput_1" ], outputs: [ "TosaOutput_0" ] } - ], - tensors: [ - { - name: "TosaInput_0", - shape: [ - 14, - 19 - ], - type: "INT8", - data: [ - - ] - }, - { - name: "TosaInput_1", - shape: [ - 19, - 28 - ], - type: "INT8", - data: [ - - ] - }, - { - name: "TosaOutput_0", - shape: [ - 14, - 28 - ], - type: "INT8", - data: [ - - ] - }, - { - name: "layer_0", - shape: [ - 28 - ], - type: "INT32", - data: [ - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0 - ] - }, - { - name: "layer_1", - shape: [ - 2 - ], - type: "INT32", - data: [ - 1, - 0, - 0, - 0, - 0, - 0, - 0, - 0 - ] - }, - { - name: "layer_2", - shape: [ - 28, - 19 - ], - type: "INT8", - data: [ - - ] - }, - { - name: "layer_3", - shape: [ - 14, - 28 - ], - type: "INT32", - data: [ - - ] - } - ], - inputs: [ - "TosaInput_0", - "TosaInput_1" - ], - outputs: [ - "TosaOutput_0" ] } ] |