diff options
author | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-06-17 13:06:00 +0100 |
---|---|---|
committer | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-06-17 13:06:00 +0100 |
commit | e2ac2482baa202af7fe759a6b58d9bdd75168b6a (patch) | |
tree | d647a83a118e7dc12189a5983e7d7f9e8e096191 /frameworks/tflite/operators/max_pool_2d_1x4x8x19_qu8_st21_padVALID_kern22 | |
parent | 696175c6e320ea85243f8dac54ad0f5cf57d4dfe (diff) | |
download | conformance_tests-e2ac2482baa202af7fe759a6b58d9bdd75168b6a.tar.gz |
Updating framework tests for v0.30.0 release
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: I216edc7080a64aa481deb192253295a006fa4373
Diffstat (limited to 'frameworks/tflite/operators/max_pool_2d_1x4x8x19_qu8_st21_padVALID_kern22')
5 files changed, 1544 insertions, 0 deletions
diff --git a/frameworks/tflite/operators/max_pool_2d_1x4x8x19_qu8_st21_padVALID_kern22/Conformance-TosaOutput_0.json b/frameworks/tflite/operators/max_pool_2d_1x4x8x19_qu8_st21_padVALID_kern22/Conformance-TosaOutput_0.json new file mode 100644 index 000000000..27680f754 --- /dev/null +++ b/frameworks/tflite/operators/max_pool_2d_1x4x8x19_qu8_st21_padVALID_kern22/Conformance-TosaOutput_0.json @@ -0,0 +1,305 @@ +{ + "type": "int32", + "data": [ + [ + [ + [ + 161, + 181, + 198, + 235, + 231, + 171, + 194, + 241, + 233, + 160, + 174, + 184, + 249, + 230, + 219, + 181, + 249, + 244, + 243 + ], + [ + 127, + 229, + 86, + 235, + 231, + 171, + 191, + 241, + 233, + 160, + 174, + 184, + 249, + 142, + 254, + 200, + 102, + 244, + 199 + ], + [ + 90, + 229, + 147, + 195, + 221, + 80, + 208, + 232, + 235, + 158, + 174, + 158, + 169, + 155, + 254, + 200, + 172, + 235, + 219 + ], + [ + 103, + 162, + 246, + 249, + 221, + 80, + 208, + 232, + 235, + 221, + 174, + 205, + 172, + 207, + 159, + 178, + 172, + 226, + 219 + ], + [ + 228, + 53, + 246, + 249, + 215, + 195, + 206, + 230, + 243, + 235, + 174, + 205, + 234, + 207, + 194, + 223, + 188, + 162, + 175 + ], + [ + 228, + 239, + 224, + 208, + 215, + 195, + 206, + 227, + 243, + 235, + 121, + 246, + 236, + 226, + 252, + 223, + 253, + 254, + 175 + ], + [ + 156, + 239, + 224, + 178, + 188, + 104, + 198, + 239, + 149, + 248, + 121, + 246, + 236, + 226, + 252, + 137, + 253, + 254, + 159 + ] + ], + [ + [ + 202, + 206, + 152, + 244, + 247, + 210, + 220, + 197, + 205, + 193, + 203, + 194, + 234, + 200, + 235, + 191, + 238, + 206, + 138 + ], + [ + 241, + 196, + 198, + 187, + 155, + 210, + 220, + 197, + 217, + 181, + 247, + 213, + 234, + 128, + 155, + 238, + 238, + 173, + 236 + ], + [ + 252, + 254, + 198, + 208, + 133, + 210, + 233, + 179, + 217, + 217, + 247, + 213, + 192, + 171, + 178, + 238, + 230, + 238, + 236 + ], + [ + 252, + 254, + 182, + 208, + 155, + 210, + 241, + 156, + 148, + 217, + 188, + 232, + 184, + 171, + 178, + 154, + 250, + 238, + 192 + ], + [ + 223, + 230, + 182, + 178, + 216, + 192, + 241, + 244, + 103, + 250, + 213, + 232, + 159, + 207, + 246, + 145, + 250, + 232, + 165 + ], + [ + 160, + 188, + 175, + 221, + 216, + 192, + 221, + 244, + 112, + 250, + 213, + 239, + 184, + 226, + 255, + 221, + 237, + 209, + 215 + ], + [ + 166, + 189, + 131, + 230, + 156, + 236, + 221, + 249, + 142, + 252, + 205, + 239, + 219, + 226, + 255, + 233, + 188, + 229, + 215 + ] + ] + ] + ] +}
\ No newline at end of file diff --git a/frameworks/tflite/operators/max_pool_2d_1x4x8x19_qu8_st21_padVALID_kern22/desc.json b/frameworks/tflite/operators/max_pool_2d_1x4x8x19_qu8_st21_padVALID_kern22/desc.json new file mode 100644 index 000000000..d1b5e4a1c --- /dev/null +++ b/frameworks/tflite/operators/max_pool_2d_1x4x8x19_qu8_st21_padVALID_kern22/desc.json @@ -0,0 +1,19 @@ +{ + "tosa_file": "test_max_pool2d_1x4x8x19_qu8_st21_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_1x4x8x19_qu8_st21_padVALID_kern22/model-tflite.json b/frameworks/tflite/operators/max_pool_2d_1x4x8x19_qu8_st21_padVALID_kern22/model-tflite.json new file mode 100644 index 000000000..8465b9ce9 --- /dev/null +++ b/frameworks/tflite/operators/max_pool_2d_1x4x8x19_qu8_st21_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, + 8, + 19 + ], + 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, + 4, + 8, + 19 + ], + 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, + 2, + 7, + 19 + ], + 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, + 2, + 7, + 19 + ], + 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: 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_1x4x8x19_qu8_st21_padVALID_kern22/placeholder_0.json b/frameworks/tflite/operators/max_pool_2d_1x4x8x19_qu8_st21_padVALID_kern22/placeholder_0.json new file mode 100644 index 000000000..3887e20c2 --- /dev/null +++ b/frameworks/tflite/operators/max_pool_2d_1x4x8x19_qu8_st21_padVALID_kern22/placeholder_0.json @@ -0,0 +1,687 @@ +{ + "type": "int32", + "data": [ + [ + [ + [ + 161, + 161, + 127, + 40, + 214, + 41, + 1, + 187, + 53, + 135, + 81, + 74, + 228, + 0, + 182, + 45, + 249, + 29, + 243 + ], + [ + 60, + 85, + 25, + 103, + 231, + 37, + 90, + 241, + 233, + 160, + 86, + 184, + 249, + 131, + 112, + 117, + 102, + 244, + 66 + ], + [ + 90, + 105, + 37, + 12, + 202, + 0, + 48, + 109, + 178, + 93, + 83, + 11, + 142, + 142, + 254, + 200, + 68, + 235, + 188 + ], + [ + 80, + 162, + 147, + 152, + 221, + 80, + 208, + 123, + 90, + 158, + 37, + 42, + 169, + 35, + 159, + 65, + 172, + 226, + 12 + ], + [ + 103, + 45, + 246, + 249, + 132, + 30, + 178, + 75, + 139, + 18, + 44, + 196, + 148, + 207, + 64, + 143, + 157, + 83, + 36 + ], + [ + 162, + 53, + 118, + 208, + 151, + 195, + 23, + 120, + 33, + 235, + 73, + 15, + 234, + 164, + 18, + 91, + 188, + 26, + 175 + ], + [ + 153, + 239, + 224, + 105, + 165, + 63, + 198, + 227, + 90, + 154, + 121, + 184, + 236, + 90, + 126, + 12, + 253, + 213, + 49 + ], + [ + 41, + 181, + 27, + 178, + 188, + 77, + 5, + 239, + 75, + 248, + 116, + 161, + 80, + 201, + 206, + 36, + 220, + 129, + 144 + ] + ], + [ + [ + 96, + 154, + 198, + 189, + 120, + 103, + 194, + 172, + 109, + 104, + 174, + 174, + 227, + 230, + 219, + 60, + 217, + 235, + 74 + ], + [ + 127, + 181, + 86, + 235, + 126, + 171, + 156, + 189, + 111, + 27, + 36, + 160, + 175, + 84, + 122, + 181, + 14, + 14, + 3 + ], + [ + 12, + 229, + 13, + 195, + 60, + 40, + 191, + 197, + 10, + 56, + 174, + 158, + 152, + 30, + 107, + 79, + 74, + 86, + 199 + ], + [ + 40, + 143, + 36, + 122, + 110, + 80, + 107, + 232, + 235, + 119, + 54, + 23, + 110, + 155, + 116, + 87, + 45, + 67, + 219 + ], + [ + 38, + 37, + 100, + 185, + 98, + 60, + 109, + 230, + 93, + 221, + 174, + 205, + 172, + 7, + 25, + 178, + 71, + 125, + 46 + ], + [ + 228, + 45, + 200, + 29, + 215, + 185, + 206, + 113, + 243, + 130, + 6, + 193, + 214, + 9, + 194, + 223, + 47, + 162, + 92 + ], + [ + 21, + 223, + 189, + 4, + 112, + 25, + 18, + 91, + 129, + 125, + 28, + 246, + 197, + 226, + 252, + 137, + 103, + 254, + 66 + ], + [ + 156, + 96, + 139, + 18, + 149, + 104, + 128, + 116, + 149, + 237, + 115, + 5, + 235, + 208, + 226, + 72, + 231, + 121, + 159 + ] + ], + [ + [ + 92, + 50, + 66, + 244, + 160, + 176, + 42, + 145, + 172, + 93, + 189, + 194, + 216, + 88, + 34, + 191, + 5, + 206, + 10 + ], + [ + 68, + 196, + 152, + 153, + 79, + 210, + 220, + 17, + 59, + 181, + 203, + 165, + 234, + 128, + 70, + 136, + 238, + 173, + 138 + ], + [ + 156, + 66, + 53, + 175, + 76, + 113, + 188, + 179, + 46, + 154, + 247, + 213, + 192, + 6, + 84, + 104, + 230, + 38, + 165 + ], + [ + 246, + 254, + 18, + 208, + 55, + 210, + 233, + 78, + 148, + 217, + 132, + 164, + 184, + 171, + 45, + 55, + 168, + 238, + 192 + ], + [ + 154, + 230, + 70, + 69, + 155, + 119, + 241, + 133, + 103, + 138, + 121, + 95, + 0, + 144, + 173, + 145, + 250, + 34, + 15 + ], + [ + 106, + 188, + 175, + 99, + 216, + 192, + 163, + 244, + 24, + 216, + 213, + 102, + 4, + 111, + 91, + 37, + 237, + 198, + 43 + ], + [ + 75, + 134, + 25, + 221, + 30, + 33, + 221, + 217, + 87, + 49, + 205, + 239, + 184, + 223, + 255, + 200, + 37, + 48, + 215 + ], + [ + 142, + 38, + 65, + 229, + 153, + 236, + 207, + 10, + 142, + 111, + 180, + 222, + 64, + 217, + 47, + 233, + 188, + 127, + 112 + ] + ], + [ + [ + 202, + 206, + 25, + 74, + 247, + 144, + 95, + 69, + 144, + 193, + 17, + 128, + 10, + 200, + 235, + 97, + 41, + 51, + 25 + ], + [ + 70, + 45, + 60, + 0, + 155, + 37, + 35, + 197, + 205, + 48, + 146, + 94, + 230, + 76, + 155, + 158, + 202, + 166, + 51 + ], + [ + 241, + 176, + 198, + 187, + 94, + 1, + 61, + 51, + 217, + 159, + 33, + 12, + 139, + 116, + 132, + 238, + 39, + 0, + 236 + ], + [ + 252, + 186, + 54, + 197, + 133, + 166, + 107, + 112, + 22, + 149, + 188, + 176, + 86, + 131, + 178, + 154, + 100, + 126, + 55 + ], + [ + 223, + 16, + 182, + 178, + 147, + 104, + 93, + 156, + 95, + 24, + 100, + 232, + 40, + 151, + 132, + 126, + 180, + 232, + 78 + ], + [ + 160, + 6, + 145, + 163, + 118, + 25, + 131, + 192, + 78, + 250, + 53, + 137, + 159, + 207, + 246, + 75, + 77, + 186, + 165 + ], + [ + 24, + 58, + 131, + 176, + 156, + 100, + 34, + 2, + 112, + 145, + 195, + 107, + 146, + 226, + 55, + 221, + 120, + 209, + 119 + ], + [ + 166, + 189, + 0, + 230, + 30, + 178, + 102, + 249, + 117, + 252, + 178, + 93, + 219, + 4, + 135, + 57, + 104, + 229, + 93 + ] + ] + ] + ] +}
\ No newline at end of file diff --git a/frameworks/tflite/operators/max_pool_2d_1x4x8x19_qu8_st21_padVALID_kern22/test_max_pool2d_1x4x8x19_qu8_st21_padVALID_kern22.json b/frameworks/tflite/operators/max_pool_2d_1x4x8x19_qu8_st21_padVALID_kern22/test_max_pool2d_1x4x8x19_qu8_st21_padVALID_kern22.json new file mode 100644 index 000000000..e188c8479 --- /dev/null +++ b/frameworks/tflite/operators/max_pool_2d_1x4x8x19_qu8_st21_padVALID_kern22/test_max_pool2d_1x4x8x19_qu8_st21_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, + 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, + 4, + 8, + 19 + ], + type: "UINT8", + data: [ + + ] + }, + { + name: "TosaOutput_0", + shape: [ + 1, + 2, + 7, + 19 + ], + type: "UINT8", + data: [ + + ] + }, + { + name: "layer_0", + shape: [ + 1, + 4, + 8, + 19 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "layer_1", + shape: [ + 1, + 4, + 8, + 19 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "layer_2", + shape: [ + 1, + 2, + 7, + 19 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "layer_3", + shape: [ + 1, + 2, + 7, + 19 + ], + type: "INT8", + data: [ + + ] + } + ], + inputs: [ + "TosaInput_0" + ], + outputs: [ + "TosaOutput_0" + ] + } + ] +} |