From e2ac2482baa202af7fe759a6b58d9bdd75168b6a Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Fri, 17 Jun 2022 13:06:00 +0100 Subject: Updating framework tests for v0.30.0 release Signed-off-by: Jeremy Johnson Change-Id: I216edc7080a64aa481deb192253295a006fa4373 --- .../test_matmul_1x4x4x4_qi8.json | 1084 ++++++++++++++++++++ 1 file changed, 1084 insertions(+) create mode 100644 frameworks/tflite/operators/fully_connected_1x4x4x4_qi8/test_matmul_1x4x4x4_qi8.json (limited to 'frameworks/tflite/operators/fully_connected_1x4x4x4_qi8/test_matmul_1x4x4x4_qi8.json') diff --git a/frameworks/tflite/operators/fully_connected_1x4x4x4_qi8/test_matmul_1x4x4x4_qi8.json b/frameworks/tflite/operators/fully_connected_1x4x4x4_qi8/test_matmul_1x4x4x4_qi8.json new file mode 100644 index 000000000..3ec30fd7e --- /dev/null +++ b/frameworks/tflite/operators/fully_connected_1x4x4x4_qi8/test_matmul_1x4x4x4_qi8.json @@ -0,0 +1,1084 @@ +{ + version: { + _major: 0, + _minor: 30, + _patch: 0, + _draft: false + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "CONST", + attribute_type: "NONE", + inputs: [ + + ], + outputs: [ + "layer_0" + ] + }, + { + op: "CONST", + attribute_type: "NONE", + inputs: [ + + ], + outputs: [ + "layer_1" + ] + }, + { + op: "RESHAPE", + attribute_type: "ReshapeAttribute", + attribute: { + new_shape: [ + 4, + 4, + 4 + ] + }, + inputs: [ + "TosaInput_0" + ], + outputs: [ + "layer_2" + ] + }, + { + op: "SLICE", + attribute_type: "SliceAttribute", + attribute: { + start: [ + 0, + 0, + 0 + ], + size: [ + 1, + 4, + 4 + ] + }, + inputs: [ + "layer_2" + ], + outputs: [ + "layer_3" + ] + }, + { + op: "SLICE", + attribute_type: "SliceAttribute", + attribute: { + start: [ + 1, + 0, + 0 + ], + size: [ + 1, + 4, + 4 + ] + }, + inputs: [ + "layer_2" + ], + outputs: [ + "layer_4" + ] + }, + { + op: "SLICE", + attribute_type: "SliceAttribute", + attribute: { + start: [ + 2, + 0, + 0 + ], + size: [ + 1, + 4, + 4 + ] + }, + inputs: [ + "layer_2" + ], + outputs: [ + "layer_5" + ] + }, + { + op: "SLICE", + attribute_type: "SliceAttribute", + attribute: { + start: [ + 3, + 0, + 0 + ], + size: [ + 1, + 4, + 4 + ] + }, + inputs: [ + "layer_2" + ], + outputs: [ + "layer_6" + ] + }, + { + op: "RESHAPE", + attribute_type: "ReshapeAttribute", + attribute: { + new_shape: [ + 4, + 4, + 8 + ] + }, + inputs: [ + "TosaInput_1" + ], + outputs: [ + "layer_7" + ] + }, + { + op: "SLICE", + attribute_type: "SliceAttribute", + attribute: { + start: [ + 0, + 0, + 0 + ], + size: [ + 1, + 4, + 8 + ] + }, + inputs: [ + "layer_7" + ], + outputs: [ + "layer_8" + ] + }, + { + op: "SLICE", + attribute_type: "SliceAttribute", + attribute: { + start: [ + 1, + 0, + 0 + ], + size: [ + 1, + 4, + 8 + ] + }, + inputs: [ + "layer_7" + ], + outputs: [ + "layer_9" + ] + }, + { + op: "SLICE", + attribute_type: "SliceAttribute", + attribute: { + start: [ + 2, + 0, + 0 + ], + size: [ + 1, + 4, + 8 + ] + }, + inputs: [ + "layer_7" + ], + outputs: [ + "layer_10" + ] + }, + { + op: "SLICE", + attribute_type: "SliceAttribute", + attribute: { + start: [ + 3, + 0, + 0 + ], + size: [ + 1, + 4, + 8 + ] + }, + inputs: [ + "layer_7" + ], + outputs: [ + "layer_11" + ] + }, + { + op: "RESHAPE", + attribute_type: "ReshapeAttribute", + attribute: { + new_shape: [ + 4, + 8 + ] + }, + inputs: [ + "layer_8" + ], + outputs: [ + "layer_12" + ] + }, + { + op: "RESHAPE", + attribute_type: "ReshapeAttribute", + attribute: { + new_shape: [ + 4, + 8 + ] + }, + inputs: [ + "layer_9" + ], + outputs: [ + "layer_13" + ] + }, + { + op: "RESHAPE", + attribute_type: "ReshapeAttribute", + attribute: { + new_shape: [ + 4, + 8 + ] + }, + inputs: [ + "layer_10" + ], + outputs: [ + "layer_14" + ] + }, + { + op: "RESHAPE", + attribute_type: "ReshapeAttribute", + attribute: { + new_shape: [ + 4, + 8 + ] + }, + inputs: [ + "layer_11" + ], + outputs: [ + "layer_15" + ] + }, + { + op: "TRANSPOSE", + attribute_type: "TransposeAttribute", + attribute: { + perms: [ + 1, + 0 + ] + }, + inputs: [ + "layer_12" + ], + outputs: [ + "layer_16" + ] + }, + { + op: "RESHAPE", + attribute_type: "ReshapeAttribute", + attribute: { + new_shape: [ + 4, + 4 + ] + }, + inputs: [ + "layer_3" + ], + outputs: [ + "layer_17" + ] + }, + { + op: "FULLY_CONNECTED", + attribute_type: "FullyConnectedAttribute", + attribute: { + input_zp: -1, + weight_zp: -1 + }, + inputs: [ + "layer_17", + "layer_16", + "layer_1" + ], + outputs: [ + "layer_18" + ] + }, + { + op: "RESCALE", + attribute_type: "RescaleAttribute", + attribute: { + input_zp: 0, + output_zp: 9, + multiplier: [ + 1706807265 + ], + shift: [ + 39 + ], + scale32: true, + double_round: true, + per_channel: false + }, + inputs: [ + "layer_18" + ], + outputs: [ + "layer_19" + ] + }, + { + op: "TRANSPOSE", + attribute_type: "TransposeAttribute", + attribute: { + perms: [ + 1, + 0 + ] + }, + inputs: [ + "layer_13" + ], + outputs: [ + "layer_20" + ] + }, + { + op: "RESHAPE", + attribute_type: "ReshapeAttribute", + attribute: { + new_shape: [ + 4, + 4 + ] + }, + inputs: [ + "layer_4" + ], + outputs: [ + "layer_21" + ] + }, + { + op: "FULLY_CONNECTED", + attribute_type: "FullyConnectedAttribute", + attribute: { + input_zp: -1, + weight_zp: -1 + }, + inputs: [ + "layer_21", + "layer_20", + "layer_1" + ], + outputs: [ + "layer_22" + ] + }, + { + op: "RESCALE", + attribute_type: "RescaleAttribute", + attribute: { + input_zp: 0, + output_zp: 9, + multiplier: [ + 1706807265 + ], + shift: [ + 39 + ], + scale32: true, + double_round: true, + per_channel: false + }, + inputs: [ + "layer_22" + ], + outputs: [ + "layer_23" + ] + }, + { + op: "TRANSPOSE", + attribute_type: "TransposeAttribute", + attribute: { + perms: [ + 1, + 0 + ] + }, + inputs: [ + "layer_14" + ], + outputs: [ + "layer_24" + ] + }, + { + op: "RESHAPE", + attribute_type: "ReshapeAttribute", + attribute: { + new_shape: [ + 4, + 4 + ] + }, + inputs: [ + "layer_5" + ], + outputs: [ + "layer_25" + ] + }, + { + op: "FULLY_CONNECTED", + attribute_type: "FullyConnectedAttribute", + attribute: { + input_zp: -1, + weight_zp: -1 + }, + inputs: [ + "layer_25", + "layer_24", + "layer_1" + ], + outputs: [ + "layer_26" + ] + }, + { + op: "RESCALE", + attribute_type: "RescaleAttribute", + attribute: { + input_zp: 0, + output_zp: 9, + multiplier: [ + 1706807265 + ], + shift: [ + 39 + ], + scale32: true, + double_round: true, + per_channel: false + }, + inputs: [ + "layer_26" + ], + outputs: [ + "layer_27" + ] + }, + { + op: "TRANSPOSE", + attribute_type: "TransposeAttribute", + attribute: { + perms: [ + 1, + 0 + ] + }, + inputs: [ + "layer_15" + ], + outputs: [ + "layer_28" + ] + }, + { + op: "RESHAPE", + attribute_type: "ReshapeAttribute", + attribute: { + new_shape: [ + 4, + 4 + ] + }, + inputs: [ + "layer_6" + ], + outputs: [ + "layer_29" + ] + }, + { + op: "FULLY_CONNECTED", + attribute_type: "FullyConnectedAttribute", + attribute: { + input_zp: -1, + weight_zp: -1 + }, + inputs: [ + "layer_29", + "layer_28", + "layer_1" + ], + outputs: [ + "layer_30" + ] + }, + { + op: "RESCALE", + attribute_type: "RescaleAttribute", + attribute: { + input_zp: 0, + output_zp: 9, + multiplier: [ + 1706807265 + ], + shift: [ + 39 + ], + scale32: true, + double_round: true, + per_channel: false + }, + inputs: [ + "layer_30" + ], + outputs: [ + "layer_31" + ] + }, + { + op: "CONCAT", + attribute_type: "AxisAttribute", + attribute: { + axis: 0 + }, + inputs: [ + "layer_19", + "layer_23", + "layer_27", + "layer_31" + ], + outputs: [ + "layer_32" + ] + }, + { + op: "RESHAPE", + attribute_type: "ReshapeAttribute", + attribute: { + new_shape: [ + 1, + 4, + 4, + 8 + ] + }, + inputs: [ + "layer_32" + ], + outputs: [ + "TosaOutput_0" + ] + } + ], + tensors: [ + { + name: "TosaInput_0", + shape: [ + 1, + 4, + 4, + 4 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "TosaInput_1", + shape: [ + 1, + 4, + 4, + 8 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "TosaOutput_0", + shape: [ + 1, + 4, + 4, + 8 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "layer_0", + shape: [ + 2 + ], + type: "INT32", + data: [ + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + { + name: "layer_1", + shape: [ + 8 + ], + 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 + ] + }, + { + name: "layer_10", + shape: [ + 1, + 4, + 8 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "layer_11", + shape: [ + 1, + 4, + 8 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "layer_12", + shape: [ + 4, + 8 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "layer_13", + shape: [ + 4, + 8 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "layer_14", + shape: [ + 4, + 8 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "layer_15", + shape: [ + 4, + 8 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "layer_16", + shape: [ + 8, + 4 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "layer_17", + shape: [ + 4, + 4 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "layer_18", + shape: [ + 4, + 8 + ], + type: "INT32", + data: [ + + ] + }, + { + name: "layer_19", + shape: [ + 4, + 8 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "layer_2", + shape: [ + 4, + 4, + 4 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "layer_20", + shape: [ + 8, + 4 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "layer_21", + shape: [ + 4, + 4 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "layer_22", + shape: [ + 4, + 8 + ], + type: "INT32", + data: [ + + ] + }, + { + name: "layer_23", + shape: [ + 4, + 8 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "layer_24", + shape: [ + 8, + 4 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "layer_25", + shape: [ + 4, + 4 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "layer_26", + shape: [ + 4, + 8 + ], + type: "INT32", + data: [ + + ] + }, + { + name: "layer_27", + shape: [ + 4, + 8 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "layer_28", + shape: [ + 8, + 4 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "layer_29", + shape: [ + 4, + 4 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "layer_3", + shape: [ + 1, + 4, + 4 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "layer_30", + shape: [ + 4, + 8 + ], + type: "INT32", + data: [ + + ] + }, + { + name: "layer_31", + shape: [ + 4, + 8 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "layer_32", + shape: [ + 16, + 8 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "layer_4", + shape: [ + 1, + 4, + 4 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "layer_5", + shape: [ + 1, + 4, + 4 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "layer_6", + shape: [ + 1, + 4, + 4 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "layer_7", + shape: [ + 4, + 4, + 8 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "layer_8", + shape: [ + 1, + 4, + 8 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "layer_9", + shape: [ + 1, + 4, + 8 + ], + type: "INT8", + data: [ + + ] + } + ], + inputs: [ + "TosaInput_0", + "TosaInput_1" + ], + outputs: [ + "TosaOutput_0" + ] + } + ] +} -- cgit v1.2.1