diff options
Diffstat (limited to 'frameworks/tflite/operators/depthwise_conv_2d_bias_1x1_1x4x4x4_qu8_st11_padSAME_dilat11')
5 files changed, 1188 insertions, 0 deletions
diff --git a/frameworks/tflite/operators/depthwise_conv_2d_bias_1x1_1x4x4x4_qu8_st11_padSAME_dilat11/Conformance-TosaOutput_0.json b/frameworks/tflite/operators/depthwise_conv_2d_bias_1x1_1x4x4x4_qu8_st11_padSAME_dilat11/Conformance-TosaOutput_0.json new file mode 100644 index 000000000..f06ff1b37 --- /dev/null +++ b/frameworks/tflite/operators/depthwise_conv_2d_bias_1x1_1x4x4x4_qu8_st11_padSAME_dilat11/Conformance-TosaOutput_0.json @@ -0,0 +1,175 @@ +{ + "type": "int32", + "data": [ + [ + [ + [ + 232, + 172, + 139, + 34, + 66, + 156, + 79, + 116 + ], + [ + 201, + 147, + 110, + 76, + 171, + 0, + 69, + 123 + ], + [ + 164, + 117, + 101, + 89, + 134, + 54, + 87, + 112 + ], + [ + 95, + 62, + 97, + 94, + 67, + 153, + 57, + 129 + ] + ], + [ + [ + 135, + 94, + 136, + 38, + 29, + 209, + 57, + 129 + ], + [ + 245, + 182, + 117, + 66, + 168, + 3, + 126, + 89 + ], + [ + 139, + 98, + 153, + 13, + 105, + 96, + 107, + 100 + ], + [ + 183, + 133, + 117, + 66, + 165, + 8, + 110, + 98 + ] + ], + [ + [ + 65, + 38, + 124, + 56, + 59, + 165, + 72, + 120 + ], + [ + 228, + 169, + 110, + 76, + 140, + 45, + 78, + 117 + ], + [ + 65, + 38, + 111, + 74, + 169, + 2, + 122, + 92 + ], + [ + 201, + 147, + 146, + 23, + 109, + 91, + 93, + 109 + ] + ], + [ + [ + 211, + 155, + 134, + 42, + 137, + 50, + 61, + 127 + ], + [ + 115, + 78, + 132, + 44, + 30, + 208, + 118, + 94 + ], + [ + 214, + 158, + 130, + 48, + 114, + 84, + 107, + 100 + ], + [ + 221, + 163, + 128, + 51, + 38, + 197, + 124, + 91 + ] + ] + ] + ] +}
\ No newline at end of file diff --git a/frameworks/tflite/operators/depthwise_conv_2d_bias_1x1_1x4x4x4_qu8_st11_padSAME_dilat11/desc.json b/frameworks/tflite/operators/depthwise_conv_2d_bias_1x1_1x4x4x4_qu8_st11_padSAME_dilat11/desc.json new file mode 100644 index 000000000..9230ce54c --- /dev/null +++ b/frameworks/tflite/operators/depthwise_conv_2d_bias_1x1_1x4x4x4_qu8_st11_padSAME_dilat11/desc.json @@ -0,0 +1,19 @@ +{ + "tosa_file": "test_depthwise_conv2d_bias_1x1_1x4x4x4_qu8_st11_padSAME_dilat11.json", + "ifm_name": [ + "TosaInput_0" + ], + "ifm_file": [ + "placeholder_0.npy" + ], + "ofm_name": [ + "TosaOutput_0" + ], + "ofm_file": [ + "output_0.npy" + ], + "expected_failure": false, + "expected_result_file": [ + "Conformance-TosaOutput_0.npy" + ] +}
\ No newline at end of file diff --git a/frameworks/tflite/operators/depthwise_conv_2d_bias_1x1_1x4x4x4_qu8_st11_padSAME_dilat11/model-tflite.json b/frameworks/tflite/operators/depthwise_conv_2d_bias_1x1_1x4x4x4_qu8_st11_padSAME_dilat11/model-tflite.json new file mode 100644 index 000000000..b72835751 --- /dev/null +++ b/frameworks/tflite/operators/depthwise_conv_2d_bias_1x1_1x4x4x4_qu8_st11_padSAME_dilat11/model-tflite.json @@ -0,0 +1,432 @@ +{ + version: 3, + operator_codes: [ + { + deprecated_builtin_code: 114, + version: 1, + builtin_code: "QUANTIZE" + }, + { + deprecated_builtin_code: 4, + version: 3, + builtin_code: "DEPTHWISE_CONV_2D" + } + ], + subgraphs: [ + { + tensors: [ + { + shape: [ + 1, + 4, + 4, + 4 + ], + type: "UINT8", + buffer: 1, + name: "serving_default_placeholder_0:0", + quantization: { + scale: [ + 0.015686 + ], + zero_point: [ + 128 + ], + details_type: "NONE", + quantized_dimension: 0 + }, + is_variable: false + }, + { + shape: [ + 1, + 1, + 1, + 8 + ], + type: "INT8", + buffer: 2, + name: "dws_conv2d", + quantization: { + scale: [ + 0.010831, + 0.008678, + 0.00329, + 0.004746, + 0.008046, + 0.011915, + 0.004335, + 0.002521 + ], + zero_point: [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + details_type: "NONE", + quantized_dimension: 3 + }, + is_variable: false + }, + { + shape: [ + 8 + ], + type: "INT32", + buffer: 3, + name: "result;dws_conv2d;result/bias", + quantization: { + scale: [ + 0.00017, + 0.000136, + 0.000052, + 0.000074, + 0.000126, + 0.000187, + 0.000068, + 0.00004 + ], + zero_point: [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + details_type: "NONE", + quantized_dimension: 0 + }, + is_variable: false + }, + { + shape: [ + 1, + 4, + 4, + 4 + ], + type: "INT8", + buffer: 4, + name: "tfl.quantize", + quantization: { + scale: [ + 0.015686 + ], + zero_point: [ + 0 + ], + details_type: "NONE", + quantized_dimension: 0 + }, + is_variable: false + }, + { + shape: [ + 1, + 4, + 4, + 8 + ], + type: "INT8", + buffer: 5, + name: "PartitionedCall:01", + quantization: { + scale: [ + 0.028874 + ], + zero_point: [ + -15 + ], + details_type: "NONE", + quantized_dimension: 0 + }, + is_variable: false + }, + { + shape: [ + 1, + 4, + 4, + 8 + ], + type: "UINT8", + buffer: 6, + name: "PartitionedCall:0", + quantization: { + scale: [ + 0.028874 + ], + zero_point: [ + 113 + ], + details_type: "NONE", + quantized_dimension: 0 + }, + is_variable: false + } + ], + inputs: [ + 0 + ], + outputs: [ + 5 + ], + operators: [ + { + opcode_index: 0, + inputs: [ + 0 + ], + outputs: [ + 3 + ], + builtin_options_type: "NONE", + custom_options_format: "FLEXBUFFERS" + }, + { + opcode_index: 1, + inputs: [ + 3, + 1, + 2 + ], + outputs: [ + 4 + ], + builtin_options_type: "DepthwiseConv2DOptions", + builtin_options: { + padding: "SAME", + stride_w: 1, + stride_h: 1, + depth_multiplier: 2, + fused_activation_function: "NONE", + dilation_w_factor: 1, + dilation_h_factor: 1 + }, + custom_options_format: "FLEXBUFFERS" + }, + { + opcode_index: 0, + inputs: [ + 4 + ], + outputs: [ + 5 + ], + builtin_options_type: "NONE", + custom_options_format: "FLEXBUFFERS" + } + ], + name: "main" + } + ], + description: "MLIR Converted.", + buffers: [ + { + }, + { + }, + { + data: [ + 127, + 127, + 127, + 129, + 129, + 127, + 127, + 129 + ] + }, + { + data: [ + 235, + 30, + 0, + 0, + 171, + 0, + 0, + 0, + 208, + 27, + 0, + 0, + 109, + 165, + 255, + 255, + 81, + 244, + 255, + 255, + 234, + 250, + 255, + 255, + 2, + 224, + 255, + 255, + 126, + 241, + 255, + 255 + ] + }, + { + }, + { + }, + { + }, + { + data: [ + 49, + 46, + 49, + 52, + 46, + 48, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + { + data: [ + 12, + 0, + 0, + 0, + 8, + 0, + 14, + 0, + 8, + 0, + 4, + 0, + 8, + 0, + 0, + 0, + 16, + 0, + 0, + 0, + 40, + 0, + 0, + 0, + 0, + 0, + 6, + 0, + 8, + 0, + 4, + 0, + 6, + 0, + 0, + 0, + 4, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 235, + 3, + 0, + 0, + 0, + 0, + 10, + 0, + 16, + 0, + 12, + 0, + 8, + 0, + 4, + 0, + 10, + 0, + 0, + 0, + 3, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 4, + 0, + 0, + 0, + 5, + 0, + 0, + 0, + 50, + 46, + 57, + 46, + 48, + 0, + 0, + 0 + ] + } + ], + metadata: [ + { + name: "min_runtime_version", + buffer: 7 + }, + { + name: "CONVERSION_METADATA", + buffer: 8 + } + ], + signature_defs: [ + { + inputs: [ + { + name: "placeholder_0", + tensor_index: 0 + } + ], + outputs: [ + { + name: "output_0", + tensor_index: 5 + } + ], + method_name: "serving_default", + subgraph_index: 0 + } + ] +} diff --git a/frameworks/tflite/operators/depthwise_conv_2d_bias_1x1_1x4x4x4_qu8_st11_padSAME_dilat11/placeholder_0.json b/frameworks/tflite/operators/depthwise_conv_2d_bias_1x1_1x4x4x4_qu8_st11_padSAME_dilat11/placeholder_0.json new file mode 100644 index 000000000..599beda83 --- /dev/null +++ b/frameworks/tflite/operators/depthwise_conv_2d_bias_1x1_1x4x4x4_qu8_st11_padSAME_dilat11/placeholder_0.json @@ -0,0 +1,111 @@ +{ + "type": "int32", + "data": [ + [ + [ + [ + 225, + 188, + 190, + 79 + ], + [ + 184, + 58, + 0, + 44 + ], + [ + 134, + 19, + 67, + 106 + ], + [ + 42, + 2, + 187, + 6 + ] + ], + [ + [ + 95, + 173, + 255, + 5 + ], + [ + 242, + 90, + 5, + 235 + ], + [ + 101, + 250, + 118, + 172 + ], + [ + 160, + 90, + 11, + 184 + ] + ], + [ + [ + 1, + 120, + 202, + 57 + ], + [ + 220, + 59, + 56, + 74 + ], + [ + 2, + 64, + 3, + 221 + ], + [ + 184, + 219, + 112, + 124 + ] + ], + [ + [ + 197, + 163, + 62, + 19 + ], + [ + 68, + 157, + 254, + 210 + ], + [ + 201, + 145, + 103, + 173 + ], + [ + 210, + 136, + 240, + 228 + ] + ] + ] + ] +}
\ No newline at end of file diff --git a/frameworks/tflite/operators/depthwise_conv_2d_bias_1x1_1x4x4x4_qu8_st11_padSAME_dilat11/test_depthwise_conv2d_bias_1x1_1x4x4x4_qu8_st11_padSAME_dilat11.json b/frameworks/tflite/operators/depthwise_conv_2d_bias_1x1_1x4x4x4_qu8_st11_padSAME_dilat11/test_depthwise_conv2d_bias_1x1_1x4x4x4_qu8_st11_padSAME_dilat11.json new file mode 100644 index 000000000..e1332abcd --- /dev/null +++ b/frameworks/tflite/operators/depthwise_conv_2d_bias_1x1_1x4x4x4_qu8_st11_padSAME_dilat11/test_depthwise_conv2d_bias_1x1_1x4x4x4_qu8_st11_padSAME_dilat11.json @@ -0,0 +1,451 @@ +{ + 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: "CONST", + attribute_type: "NONE", + inputs: [ + + ], + outputs: [ + "layer_2" + ] + }, + { + op: "RESCALE", + attribute_type: "RescaleAttribute", + attribute: { + input_zp: 128, + output_zp: 0, + multiplier: [ + 1073741824 + ], + shift: [ + 30 + ], + scale32: true, + double_round: false, + per_channel: false + }, + inputs: [ + "TosaInput_0" + ], + outputs: [ + "layer_3" + ] + }, + { + op: "RESCALE", + attribute_type: "RescaleAttribute", + attribute: { + input_zp: 0, + output_zp: 0, + multiplier: [ + 1073741824 + ], + shift: [ + 30 + ], + scale32: true, + double_round: true, + per_channel: false + }, + inputs: [ + "layer_3" + ], + outputs: [ + "layer_4" + ] + }, + { + op: "TRANSPOSE", + attribute_type: "TransposeAttribute", + attribute: { + perms: [ + 1, + 2, + 3, + 0 + ] + }, + inputs: [ + "layer_0" + ], + outputs: [ + "layer_5" + ] + }, + { + op: "RESHAPE", + attribute_type: "ReshapeAttribute", + attribute: { + new_shape: [ + 1, + 1, + 4, + 2 + ] + }, + inputs: [ + "layer_5" + ], + outputs: [ + "layer_6" + ] + }, + { + op: "DEPTHWISE_CONV2D", + attribute_type: "ConvAttribute", + attribute: { + pad: [ + 0, + 0, + 0, + 0 + ], + stride: [ + 1, + 1 + ], + dilation: [ + 1, + 1 + ], + input_zp: 0, + weight_zp: 0 + }, + inputs: [ + "layer_4", + "layer_6", + "layer_1" + ], + outputs: [ + "layer_7" + ] + }, + { + op: "RESCALE", + attribute_type: "RescaleAttribute", + attribute: { + input_zp: 0, + output_zp: -15, + multiplier: [ + 1617397034, + 1295934021, + 1965439847, + 1417314708, + 1201505155, + 1779323804, + 1294602813, + 1505974402 + ], + shift: [ + 38, + 38, + 40, + 39, + 38, + 38, + 39, + 40 + ], + scale32: true, + double_round: true, + per_channel: true + }, + inputs: [ + "layer_7" + ], + outputs: [ + "layer_8" + ] + }, + { + op: "RESCALE", + attribute_type: "RescaleAttribute", + attribute: { + input_zp: -15, + output_zp: -15, + multiplier: [ + 1073741824 + ], + shift: [ + 30 + ], + scale32: true, + double_round: true, + per_channel: false + }, + inputs: [ + "layer_8" + ], + outputs: [ + "layer_9" + ] + }, + { + op: "RESCALE", + attribute_type: "RescaleAttribute", + attribute: { + input_zp: -15, + output_zp: 113, + multiplier: [ + 1073741824 + ], + shift: [ + 30 + ], + scale32: true, + double_round: false, + per_channel: false + }, + inputs: [ + "layer_9" + ], + outputs: [ + "TosaOutput_0" + ] + } + ], + tensors: [ + { + name: "TosaInput_0", + shape: [ + 1, + 4, + 4, + 4 + ], + type: "UINT8", + data: [ + + ] + }, + { + name: "TosaOutput_0", + shape: [ + 1, + 4, + 4, + 8 + ], + type: "UINT8", + data: [ + + ] + }, + { + name: "layer_0", + shape: [ + 1, + 1, + 1, + 8 + ], + type: "INT8", + data: [ + 127, + 127, + 127, + 129, + 129, + 127, + 127, + 129 + ] + }, + { + name: "layer_1", + shape: [ + 8 + ], + type: "INT32", + data: [ + 235, + 30, + 0, + 0, + 171, + 0, + 0, + 0, + 208, + 27, + 0, + 0, + 109, + 165, + 255, + 255, + 81, + 244, + 255, + 255, + 234, + 250, + 255, + 255, + 2, + 224, + 255, + 255, + 126, + 241, + 255, + 255 + ] + }, + { + name: "layer_2", + shape: [ + 4 + ], + type: "INT32", + data: [ + 1, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 3, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + { + name: "layer_3", + shape: [ + 1, + 4, + 4, + 4 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "layer_4", + shape: [ + 1, + 4, + 4, + 4 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "layer_5", + shape: [ + 1, + 1, + 8, + 1 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "layer_6", + shape: [ + 1, + 1, + 4, + 2 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "layer_7", + shape: [ + 1, + 4, + 4, + 8 + ], + type: "INT32", + data: [ + + ] + }, + { + name: "layer_8", + shape: [ + 1, + 4, + 4, + 8 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "layer_9", + shape: [ + 1, + 4, + 4, + 8 + ], + type: "INT8", + data: [ + + ] + } + ], + inputs: [ + "TosaInput_0" + ], + outputs: [ + "TosaOutput_0" + ] + } + ] +} |