diff options
Diffstat (limited to 'frameworks/tflite/operators/max_pool_2d_1x4x4x4_qu8_st22_padVALID_kern22')
5 files changed, 698 insertions, 0 deletions
diff --git a/frameworks/tflite/operators/max_pool_2d_1x4x4x4_qu8_st22_padVALID_kern22/Conformance-TosaOutput_0.json b/frameworks/tflite/operators/max_pool_2d_1x4x4x4_qu8_st22_padVALID_kern22/Conformance-TosaOutput_0.json new file mode 100644 index 000000000..757dd7984 --- /dev/null +++ b/frameworks/tflite/operators/max_pool_2d_1x4x4x4_qu8_st22_padVALID_kern22/Conformance-TosaOutput_0.json @@ -0,0 +1,35 @@ +{ + "type": "int32", + "data": [ + [ + [ + [ + 249, + 161, + 244, + 231 + ], + [ + 229, + 135, + 242, + 250 + ] + ], + [ + [ + 255, + 200, + 142, + 235 + ], + [ + 188, + 221, + 203, + 208 + ] + ] + ] + ] +}
\ No newline at end of file diff --git a/frameworks/tflite/operators/max_pool_2d_1x4x4x4_qu8_st22_padVALID_kern22/desc.json b/frameworks/tflite/operators/max_pool_2d_1x4x4x4_qu8_st22_padVALID_kern22/desc.json new file mode 100644 index 000000000..62b80de31 --- /dev/null +++ b/frameworks/tflite/operators/max_pool_2d_1x4x4x4_qu8_st22_padVALID_kern22/desc.json @@ -0,0 +1,19 @@ +{ + "tosa_file": "test_max_pool2d_1x4x4x4_qu8_st22_padVALID_kern22.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/max_pool_2d_1x4x4x4_qu8_st22_padVALID_kern22/model-tflite.json b/frameworks/tflite/operators/max_pool_2d_1x4x4x4_qu8_st22_padVALID_kern22/model-tflite.json new file mode 100644 index 000000000..7d73e3b38 --- /dev/null +++ b/frameworks/tflite/operators/max_pool_2d_1x4x4x4_qu8_st22_padVALID_kern22/model-tflite.json @@ -0,0 +1,312 @@ +{ + version: 3, + operator_codes: [ + { + deprecated_builtin_code: 114, + version: 1, + builtin_code: "QUANTIZE" + }, + { + deprecated_builtin_code: 17, + version: 2, + builtin_code: "MAX_POOL_2D" + } + ], + subgraphs: [ + { + tensors: [ + { + shape: [ + 1, + 4, + 4, + 4 + ], + type: "UINT8", + buffer: 1, + name: "serving_default_placeholder_0:0", + quantization: { + scale: [ + 0.015682 + ], + zero_point: [ + 127 + ], + details_type: "NONE", + quantized_dimension: 0 + }, + is_variable: false + }, + { + shape: [ + 1, + 4, + 4, + 4 + ], + type: "INT8", + buffer: 2, + name: "tfl.quantize", + quantization: { + scale: [ + 0.015682 + ], + zero_point: [ + -1 + ], + details_type: "NONE", + quantized_dimension: 0 + }, + is_variable: false + }, + { + shape: [ + 1, + 2, + 2, + 4 + ], + type: "INT8", + buffer: 3, + name: "PartitionedCall:01", + quantization: { + scale: [ + 0.015682 + ], + zero_point: [ + -1 + ], + details_type: "NONE", + quantized_dimension: 0 + }, + is_variable: false + }, + { + shape: [ + 1, + 2, + 2, + 4 + ], + type: "UINT8", + buffer: 4, + name: "PartitionedCall:0", + quantization: { + scale: [ + 0.015682 + ], + zero_point: [ + 127 + ], + details_type: "NONE", + quantized_dimension: 0 + }, + is_variable: false + } + ], + inputs: [ + 0 + ], + outputs: [ + 3 + ], + operators: [ + { + opcode_index: 0, + inputs: [ + 0 + ], + outputs: [ + 1 + ], + builtin_options_type: "NONE", + custom_options_format: "FLEXBUFFERS" + }, + { + opcode_index: 1, + inputs: [ + 1 + ], + outputs: [ + 2 + ], + builtin_options_type: "Pool2DOptions", + builtin_options: { + padding: "VALID", + stride_w: 2, + stride_h: 2, + filter_width: 2, + filter_height: 2, + fused_activation_function: "NONE" + }, + custom_options_format: "FLEXBUFFERS" + }, + { + opcode_index: 0, + inputs: [ + 2 + ], + outputs: [ + 3 + ], + builtin_options_type: "NONE", + custom_options_format: "FLEXBUFFERS" + } + ], + name: "main" + } + ], + description: "MLIR Converted.", + buffers: [ + { + }, + { + }, + { + }, + { + }, + { + }, + { + 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: 5 + }, + { + name: "CONVERSION_METADATA", + buffer: 6 + } + ], + signature_defs: [ + { + inputs: [ + { + name: "placeholder_0", + tensor_index: 0 + } + ], + outputs: [ + { + name: "output_0", + tensor_index: 3 + } + ], + method_name: "serving_default", + subgraph_index: 0 + } + ] +} diff --git a/frameworks/tflite/operators/max_pool_2d_1x4x4x4_qu8_st22_padVALID_kern22/placeholder_0.json b/frameworks/tflite/operators/max_pool_2d_1x4x4x4_qu8_st22_padVALID_kern22/placeholder_0.json new file mode 100644 index 000000000..a2fba463b --- /dev/null +++ b/frameworks/tflite/operators/max_pool_2d_1x4x4x4_qu8_st22_padVALID_kern22/placeholder_0.json @@ -0,0 +1,111 @@ +{ + "type": "int32", + "data": [ + [ + [ + [ + 161, + 161, + 127, + 39 + ], + [ + 214, + 41, + 0, + 187 + ], + [ + 53, + 135, + 80, + 74 + ], + [ + 229, + 0, + 182, + 45 + ] + ], + [ + [ + 249, + 29, + 244, + 59 + ], + [ + 84, + 25, + 103, + 231 + ], + [ + 37, + 90, + 242, + 234 + ], + [ + 161, + 85, + 184, + 250 + ] + ], + [ + [ + 131, + 112, + 117, + 101 + ], + [ + 245, + 66, + 90, + 105 + ], + [ + 37, + 12, + 203, + 0 + ], + [ + 48, + 109, + 178, + 93 + ] + ], + [ + [ + 83, + 10, + 142, + 142 + ], + [ + 255, + 200, + 67, + 235 + ], + [ + 188, + 80, + 163, + 147 + ], + [ + 153, + 221, + 80, + 208 + ] + ] + ] + ] +}
\ No newline at end of file diff --git a/frameworks/tflite/operators/max_pool_2d_1x4x4x4_qu8_st22_padVALID_kern22/test_max_pool2d_1x4x4x4_qu8_st22_padVALID_kern22.json b/frameworks/tflite/operators/max_pool_2d_1x4x4x4_qu8_st22_padVALID_kern22/test_max_pool2d_1x4x4x4_qu8_st22_padVALID_kern22.json new file mode 100644 index 000000000..6e73865a1 --- /dev/null +++ b/frameworks/tflite/operators/max_pool_2d_1x4x4x4_qu8_st22_padVALID_kern22/test_max_pool2d_1x4x4x4_qu8_st22_padVALID_kern22.json @@ -0,0 +1,221 @@ +{ + version: { + _major: 0, + _minor: 30, + _patch: 0, + _draft: false + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "RESCALE", + attribute_type: "RescaleAttribute", + attribute: { + input_zp: 127, + output_zp: -1, + multiplier: [ + 1073741824 + ], + shift: [ + 30 + ], + scale32: true, + double_round: false, + per_channel: false + }, + inputs: [ + "TosaInput_0" + ], + outputs: [ + "layer_0" + ] + }, + { + op: "RESCALE", + attribute_type: "RescaleAttribute", + attribute: { + input_zp: -1, + output_zp: -1, + multiplier: [ + 1073741824 + ], + shift: [ + 30 + ], + scale32: true, + double_round: true, + per_channel: false + }, + inputs: [ + "layer_0" + ], + outputs: [ + "layer_1" + ] + }, + { + op: "MAX_POOL2D", + attribute_type: "PoolAttribute", + attribute: { + pad: [ + 0, + 0, + 0, + 0 + ], + kernel: [ + 2, + 2 + ], + stride: [ + 2, + 2 + ], + input_zp: 0, + output_zp: 0 + }, + inputs: [ + "layer_1" + ], + outputs: [ + "layer_2" + ] + }, + { + op: "RESCALE", + attribute_type: "RescaleAttribute", + attribute: { + input_zp: -1, + output_zp: -1, + multiplier: [ + 1073741824 + ], + shift: [ + 30 + ], + scale32: true, + double_round: true, + per_channel: false + }, + inputs: [ + "layer_2" + ], + outputs: [ + "layer_3" + ] + }, + { + op: "RESCALE", + attribute_type: "RescaleAttribute", + attribute: { + input_zp: -1, + output_zp: 127, + multiplier: [ + 1073741824 + ], + shift: [ + 30 + ], + scale32: true, + double_round: false, + per_channel: false + }, + inputs: [ + "layer_3" + ], + outputs: [ + "TosaOutput_0" + ] + } + ], + tensors: [ + { + name: "TosaInput_0", + shape: [ + 1, + 4, + 4, + 4 + ], + type: "UINT8", + data: [ + + ] + }, + { + name: "TosaOutput_0", + shape: [ + 1, + 2, + 2, + 4 + ], + type: "UINT8", + data: [ + + ] + }, + { + name: "layer_0", + shape: [ + 1, + 4, + 4, + 4 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "layer_1", + shape: [ + 1, + 4, + 4, + 4 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "layer_2", + shape: [ + 1, + 2, + 2, + 4 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "layer_3", + shape: [ + 1, + 2, + 2, + 4 + ], + type: "INT8", + data: [ + + ] + } + ], + inputs: [ + "TosaInput_0" + ], + outputs: [ + "TosaOutput_0" + ] + } + ] +} |