diff options
Diffstat (limited to 'frameworks/tflite/operators/average_pool_2d_1x8x4x17_qu8_st21_padVALID_kern21')
5 files changed, 1502 insertions, 0 deletions
diff --git a/frameworks/tflite/operators/average_pool_2d_1x8x4x17_qu8_st21_padVALID_kern21/Conformance-TosaOutput_0.json b/frameworks/tflite/operators/average_pool_2d_1x8x4x17_qu8_st21_padVALID_kern21/Conformance-TosaOutput_0.json new file mode 100644 index 000000000..1a1b832c9 --- /dev/null +++ b/frameworks/tflite/operators/average_pool_2d_1x8x4x17_qu8_st21_padVALID_kern21/Conformance-TosaOutput_0.json @@ -0,0 +1,319 @@ +{ + "type": "int32", + "data": [ + [ + [ + [ + 134, + 99, + 74, + 135, + 168, + 122, + 220, + 152, + 156, + 127, + 141, + 131, + 67, + 58, + 109, + 193, + 130 + ], + [ + 28, + 176, + 14, + 112, + 210, + 117, + 61, + 211, + 136, + 148, + 94, + 208, + 102, + 155, + 32, + 21, + 58 + ], + [ + 202, + 33, + 169, + 27, + 165, + 68, + 79, + 220, + 109, + 90, + 215, + 126, + 130, + 92, + 58, + 80, + 220 + ], + [ + 121, + 116, + 57, + 227, + 219, + 162, + 48, + 109, + 89, + 187, + 28, + 181, + 107, + 143, + 146, + 175, + 97 + ] + ], + [ + [ + 200, + 140, + 64, + 186, + 103, + 175, + 211, + 77, + 85, + 163, + 139, + 123, + 150, + 182, + 66, + 149, + 80 + ], + [ + 204, + 57, + 106, + 104, + 141, + 120, + 97, + 154, + 79, + 155, + 82, + 164, + 92, + 137, + 188, + 158, + 17 + ], + [ + 175, + 126, + 63, + 159, + 115, + 178, + 186, + 173, + 42, + 115, + 236, + 187, + 94, + 86, + 108, + 38, + 24 + ], + [ + 82, + 151, + 55, + 70, + 150, + 207, + 128, + 162, + 175, + 203, + 138, + 113, + 209, + 201, + 195, + 152, + 151 + ] + ], + [ + [ + 160, + 137, + 144, + 101, + 50, + 152, + 105, + 113, + 185, + 89, + 153, + 73, + 91, + 76, + 245, + 124, + 115 + ], + [ + 90, + 100, + 93, + 184, + 174, + 164, + 211, + 183, + 148, + 97, + 38, + 56, + 109, + 69, + 155, + 180, + 140 + ], + [ + 103, + 174, + 144, + 160, + 166, + 178, + 126, + 43, + 229, + 113, + 148, + 119, + 120, + 200, + 118, + 37, + 155 + ], + [ + 169, + 232, + 122, + 38, + 162, + 204, + 118, + 106, + 163, + 95, + 136, + 237, + 149, + 27, + 89, + 225, + 155 + ] + ], + [ + [ + 130, + 73, + 50, + 174, + 104, + 33, + 63, + 48, + 121, + 189, + 45, + 153, + 108, + 64, + 158, + 75, + 109 + ], + [ + 114, + 87, + 6, + 221, + 149, + 209, + 110, + 60, + 143, + 169, + 106, + 154, + 82, + 150, + 116, + 210, + 124 + ], + [ + 122, + 157, + 183, + 73, + 47, + 131, + 79, + 121, + 145, + 63, + 195, + 147, + 59, + 138, + 113, + 110, + 132 + ], + [ + 105, + 51, + 139, + 142, + 135, + 72, + 197, + 60, + 133, + 195, + 66, + 175, + 113, + 174, + 176, + 119, + 46 + ] + ] + ] + ] +}
\ No newline at end of file diff --git a/frameworks/tflite/operators/average_pool_2d_1x8x4x17_qu8_st21_padVALID_kern21/desc.json b/frameworks/tflite/operators/average_pool_2d_1x8x4x17_qu8_st21_padVALID_kern21/desc.json new file mode 100644 index 000000000..88aa28c92 --- /dev/null +++ b/frameworks/tflite/operators/average_pool_2d_1x8x4x17_qu8_st21_padVALID_kern21/desc.json @@ -0,0 +1,19 @@ +{ + "tosa_file": "test_avg_pool2d_1x8x4x17_qu8_st21_padVALID_kern21.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/average_pool_2d_1x8x4x17_qu8_st21_padVALID_kern21/model-tflite.json b/frameworks/tflite/operators/average_pool_2d_1x8x4x17_qu8_st21_padVALID_kern21/model-tflite.json new file mode 100644 index 000000000..8571c3620 --- /dev/null +++ b/frameworks/tflite/operators/average_pool_2d_1x8x4x17_qu8_st21_padVALID_kern21/model-tflite.json @@ -0,0 +1,312 @@ +{ + version: 3, + operator_codes: [ + { + deprecated_builtin_code: 114, + version: 1, + builtin_code: "QUANTIZE" + }, + { + deprecated_builtin_code: 1, + version: 2, + builtin_code: "AVERAGE_POOL_2D" + } + ], + subgraphs: [ + { + tensors: [ + { + shape: [ + 1, + 8, + 4, + 17 + ], + type: "UINT8", + buffer: 1, + name: "serving_default_placeholder_0:0", + quantization: { + scale: [ + 0.015686 + ], + zero_point: [ + 127 + ], + details_type: "NONE", + quantized_dimension: 0 + }, + is_variable: false + }, + { + shape: [ + 1, + 8, + 4, + 17 + ], + type: "INT8", + buffer: 2, + name: "tfl.quantize", + quantization: { + scale: [ + 0.015686 + ], + zero_point: [ + -1 + ], + details_type: "NONE", + quantized_dimension: 0 + }, + is_variable: false + }, + { + shape: [ + 1, + 4, + 4, + 17 + ], + type: "INT8", + buffer: 3, + name: "PartitionedCall:01", + quantization: { + scale: [ + 0.015686 + ], + zero_point: [ + -1 + ], + details_type: "NONE", + quantized_dimension: 0 + }, + is_variable: false + }, + { + shape: [ + 1, + 4, + 4, + 17 + ], + type: "UINT8", + buffer: 4, + name: "PartitionedCall:0", + quantization: { + scale: [ + 0.015686 + ], + 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: 1, + stride_h: 2, + filter_width: 1, + 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/average_pool_2d_1x8x4x17_qu8_st21_padVALID_kern21/placeholder_0.json b/frameworks/tflite/operators/average_pool_2d_1x8x4x17_qu8_st21_padVALID_kern21/placeholder_0.json new file mode 100644 index 000000000..5887ae705 --- /dev/null +++ b/frameworks/tflite/operators/average_pool_2d_1x8x4x17_qu8_st21_padVALID_kern21/placeholder_0.json @@ -0,0 +1,631 @@ +{ + "type": "int32", + "data": [ + [ + [ + [ + 22, + 128, + 41, + 65, + 221, + 124, + 188, + 105, + 153, + 86, + 240, + 232, + 38, + 2, + 95, + 162, + 22 + ], + [ + 23, + 163, + 19, + 85, + 181, + 82, + 94, + 212, + 218, + 155, + 118, + 216, + 142, + 186, + 59, + 6, + 46 + ], + [ + 233, + 37, + 202, + 20, + 187, + 32, + 33, + 240, + 210, + 170, + 182, + 172, + 6, + 13, + 50, + 131, + 229 + ], + [ + 211, + 214, + 47, + 241, + 187, + 158, + 24, + 10, + 61, + 202, + 48, + 220, + 163, + 85, + 48, + 169, + 114 + ] + ], + [ + [ + 246, + 70, + 107, + 205, + 115, + 120, + 252, + 199, + 158, + 168, + 41, + 29, + 96, + 114, + 123, + 224, + 237 + ], + [ + 33, + 188, + 10, + 139, + 238, + 153, + 29, + 210, + 54, + 140, + 70, + 199, + 63, + 123, + 5, + 37, + 70 + ], + [ + 170, + 29, + 136, + 35, + 143, + 104, + 125, + 200, + 9, + 11, + 247, + 81, + 254, + 172, + 67, + 30, + 211 + ], + [ + 31, + 18, + 68, + 212, + 250, + 165, + 73, + 208, + 117, + 171, + 9, + 142, + 52, + 201, + 244, + 181, + 80 + ] + ], + [ + [ + 162, + 198, + 117, + 228, + 113, + 120, + 178, + 34, + 35, + 251, + 73, + 182, + 167, + 212, + 38, + 252, + 154 + ], + [ + 223, + 0, + 188, + 189, + 199, + 209, + 41, + 162, + 61, + 125, + 74, + 227, + 49, + 218, + 239, + 224, + 31 + ], + [ + 199, + 104, + 9, + 173, + 70, + 152, + 123, + 175, + 9, + 68, + 237, + 209, + 55, + 123, + 151, + 43, + 45 + ], + [ + 156, + 211, + 105, + 81, + 175, + 250, + 146, + 132, + 181, + 216, + 103, + 80, + 227, + 249, + 172, + 49, + 113 + ] + ], + [ + [ + 238, + 81, + 11, + 143, + 94, + 229, + 243, + 120, + 136, + 75, + 204, + 65, + 133, + 152, + 94, + 45, + 6 + ], + [ + 185, + 114, + 24, + 19, + 82, + 31, + 154, + 146, + 98, + 185, + 90, + 100, + 136, + 55, + 136, + 92, + 3 + ], + [ + 150, + 149, + 117, + 145, + 160, + 204, + 248, + 171, + 75, + 163, + 235, + 164, + 133, + 49, + 65, + 34, + 3 + ], + [ + 9, + 90, + 6, + 59, + 124, + 164, + 110, + 192, + 168, + 189, + 172, + 147, + 191, + 153, + 218, + 255, + 188 + ] + ], + [ + [ + 125, + 149, + 48, + 99, + 67, + 160, + 66, + 146, + 172, + 111, + 203, + 140, + 43, + 126, + 237, + 159, + 102 + ], + [ + 33, + 12, + 144, + 227, + 228, + 137, + 233, + 206, + 128, + 4, + 14, + 36, + 140, + 25, + 139, + 238, + 219 + ], + [ + 51, + 165, + 153, + 249, + 84, + 108, + 215, + 4, + 224, + 20, + 72, + 166, + 158, + 201, + 3, + 54, + 244 + ], + [ + 244, + 239, + 24, + 18, + 182, + 249, + 114, + 196, + 222, + 169, + 247, + 238, + 151, + 7, + 43, + 195, + 239 + ] + ], + [ + [ + 194, + 124, + 240, + 104, + 34, + 143, + 144, + 81, + 197, + 67, + 103, + 7, + 140, + 27, + 253, + 89, + 129 + ], + [ + 148, + 189, + 43, + 141, + 119, + 190, + 188, + 160, + 168, + 190, + 62, + 76, + 78, + 114, + 171, + 121, + 60 + ], + [ + 156, + 182, + 134, + 70, + 248, + 248, + 38, + 82, + 233, + 206, + 223, + 72, + 83, + 198, + 233, + 20, + 65 + ], + [ + 93, + 225, + 221, + 58, + 141, + 158, + 123, + 16, + 103, + 21, + 24, + 236, + 146, + 47, + 136, + 255, + 70 + ] + ], + [ + [ + 209, + 90, + 12, + 155, + 3, + 53, + 21, + 43, + 67, + 220, + 61, + 155, + 120, + 42, + 84, + 80, + 157 + ], + [ + 104, + 45, + 1, + 250, + 230, + 174, + 22, + 88, + 165, + 228, + 21, + 128, + 70, + 102, + 208, + 202, + 86 + ], + [ + 167, + 241, + 124, + 145, + 52, + 130, + 7, + 62, + 224, + 122, + 161, + 174, + 16, + 74, + 37, + 19, + 242 + ], + [ + 208, + 85, + 238, + 193, + 92, + 139, + 244, + 31, + 247, + 164, + 75, + 187, + 176, + 157, + 170, + 187, + 47 + ] + ], + [ + [ + 51, + 57, + 89, + 192, + 206, + 14, + 105, + 53, + 176, + 157, + 29, + 150, + 97, + 87, + 231, + 71, + 61 + ], + [ + 124, + 130, + 11, + 192, + 67, + 244, + 198, + 32, + 121, + 110, + 192, + 180, + 94, + 197, + 24, + 218, + 163 + ], + [ + 77, + 72, + 241, + 1, + 42, + 132, + 152, + 181, + 65, + 5, + 229, + 119, + 102, + 201, + 189, + 201, + 21 + ], + [ + 2, + 18, + 40, + 91, + 178, + 6, + 149, + 90, + 19, + 225, + 57, + 162, + 50, + 190, + 182, + 51, + 46 + ] + ] + ] + ] +}
\ No newline at end of file diff --git a/frameworks/tflite/operators/average_pool_2d_1x8x4x17_qu8_st21_padVALID_kern21/test_avg_pool2d_1x8x4x17_qu8_st21_padVALID_kern21.json b/frameworks/tflite/operators/average_pool_2d_1x8x4x17_qu8_st21_padVALID_kern21/test_avg_pool2d_1x8x4x17_qu8_st21_padVALID_kern21.json new file mode 100644 index 000000000..9ec8dd22c --- /dev/null +++ b/frameworks/tflite/operators/average_pool_2d_1x8x4x17_qu8_st21_padVALID_kern21/test_avg_pool2d_1x8x4x17_qu8_st21_padVALID_kern21.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: "AVG_POOL2D", + attribute_type: "PoolAttribute", + attribute: { + pad: [ + 0, + 0, + 0, + 0 + ], + kernel: [ + 2, + 1 + ], + stride: [ + 2, + 1 + ], + 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, + 8, + 4, + 17 + ], + type: "UINT8", + data: [ + + ] + }, + { + name: "TosaOutput_0", + shape: [ + 1, + 4, + 4, + 17 + ], + type: "UINT8", + data: [ + + ] + }, + { + name: "layer_0", + shape: [ + 1, + 8, + 4, + 17 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "layer_1", + shape: [ + 1, + 8, + 4, + 17 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "layer_2", + shape: [ + 1, + 4, + 4, + 17 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "layer_3", + shape: [ + 1, + 4, + 4, + 17 + ], + type: "INT8", + data: [ + + ] + } + ], + inputs: [ + "TosaInput_0" + ], + outputs: [ + "TosaOutput_0" + ] + } + ] +} |