From bc4573b5ca335cce14156e1b5b03499ea92d406e Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Mon, 13 Mar 2023 10:56:24 +0000 Subject: Update conformance to v0.60 release Including new SPLIT and RESIZE framework tests. Signed-off-by: Jeremy Johnson Change-Id: I065fb09701897242f4ddfefde3fc1763909d2d52 --- .../Conformance-TosaOutput_0.json | 111 +++++++++ .../desc.json | 23 ++ .../model-tflite.json | 259 +++++++++++++++++++++ .../placeholder_0.json | 111 +++++++++ ...e_1x4x4x4_qi8_bilinear_align1_half0_scale1.json | 117 ++++++++++ 5 files changed, 621 insertions(+) create mode 100644 frameworks/tflite/operators/resize_bilinear_1x4x4x4_qi8_bilinear_align1_half0_scale1/Conformance-TosaOutput_0.json create mode 100644 frameworks/tflite/operators/resize_bilinear_1x4x4x4_qi8_bilinear_align1_half0_scale1/desc.json create mode 100644 frameworks/tflite/operators/resize_bilinear_1x4x4x4_qi8_bilinear_align1_half0_scale1/model-tflite.json create mode 100644 frameworks/tflite/operators/resize_bilinear_1x4x4x4_qi8_bilinear_align1_half0_scale1/placeholder_0.json create mode 100644 frameworks/tflite/operators/resize_bilinear_1x4x4x4_qi8_bilinear_align1_half0_scale1/test_resize_1x4x4x4_qi8_bilinear_align1_half0_scale1.json (limited to 'frameworks/tflite/operators/resize_bilinear_1x4x4x4_qi8_bilinear_align1_half0_scale1') diff --git a/frameworks/tflite/operators/resize_bilinear_1x4x4x4_qi8_bilinear_align1_half0_scale1/Conformance-TosaOutput_0.json b/frameworks/tflite/operators/resize_bilinear_1x4x4x4_qi8_bilinear_align1_half0_scale1/Conformance-TosaOutput_0.json new file mode 100644 index 000000000..e8861e502 --- /dev/null +++ b/frameworks/tflite/operators/resize_bilinear_1x4x4x4_qi8_bilinear_align1_half0_scale1/Conformance-TosaOutput_0.json @@ -0,0 +1,111 @@ +{ + "type": "int32", + "data": [ + [ + [ + [ + 52, + 122, + -22, + 10 + ], + [ + 93, + 43, + 53, + 31 + ], + [ + -4, + 88, + 92, + -39 + ], + [ + 37, + 13, + 53, + 127 + ] + ], + [ + [ + -112, + -124, + -11, + 41 + ], + [ + 20, + -13, + 121, + -63 + ], + [ + 40, + -25, + 81, + -128 + ], + [ + 106, + -59, + -9, + -64 + ] + ], + [ + [ + -99, + 82, + -107, + 36 + ], + [ + -88, + 20, + 20, + -108 + ], + [ + 95, + -93, + 45, + 114 + ], + [ + 9, + -96, + -25, + -95 + ] + ], + [ + [ + -117, + 75, + -109, + -72 + ], + [ + 124, + -96, + -4, + -34 + ], + [ + 11, + 116, + -55, + -37 + ], + [ + -102, + 84, + 41, + 61 + ] + ] + ] + ] +} \ No newline at end of file diff --git a/frameworks/tflite/operators/resize_bilinear_1x4x4x4_qi8_bilinear_align1_half0_scale1/desc.json b/frameworks/tflite/operators/resize_bilinear_1x4x4x4_qi8_bilinear_align1_half0_scale1/desc.json new file mode 100644 index 000000000..d4de08abc --- /dev/null +++ b/frameworks/tflite/operators/resize_bilinear_1x4x4x4_qi8_bilinear_align1_half0_scale1/desc.json @@ -0,0 +1,23 @@ +{ + "tosa_file": "test_resize_1x4x4x4_qi8_bilinear_align1_half0_scale1.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" + ], + "profile": [ + "tosa-bi", + "tosa-mi" + ] +} \ No newline at end of file diff --git a/frameworks/tflite/operators/resize_bilinear_1x4x4x4_qi8_bilinear_align1_half0_scale1/model-tflite.json b/frameworks/tflite/operators/resize_bilinear_1x4x4x4_qi8_bilinear_align1_half0_scale1/model-tflite.json new file mode 100644 index 000000000..e44bd5676 --- /dev/null +++ b/frameworks/tflite/operators/resize_bilinear_1x4x4x4_qi8_bilinear_align1_half0_scale1/model-tflite.json @@ -0,0 +1,259 @@ +{ + version: 3, + operator_codes: [ + { + deprecated_builtin_code: 23, + version: 2, + builtin_code: "RESIZE_BILINEAR" + } + ], + subgraphs: [ + { + tensors: [ + { + shape: [ + 1, + 4, + 4, + 4 + ], + type: "INT8", + buffer: 1, + name: "serving_default_placeholder_0:0", + quantization: { + scale: [ + 0.015686 + ], + zero_point: [ + 0 + ], + details_type: "NONE", + quantized_dimension: 0 + }, + is_variable: false + }, + { + shape: [ + 2 + ], + type: "INT32", + buffer: 2, + name: "resize/size", + quantization: { + details_type: "NONE", + quantized_dimension: 0 + }, + is_variable: false + }, + { + shape: [ + 1, + 4, + 4, + 4 + ], + type: "INT8", + buffer: 3, + name: "PartitionedCall:0", + quantization: { + scale: [ + 0.015686 + ], + zero_point: [ + 0 + ], + details_type: "NONE", + quantized_dimension: 0 + }, + is_variable: false + } + ], + inputs: [ + 0 + ], + outputs: [ + 2 + ], + operators: [ + { + opcode_index: 0, + inputs: [ + 0, + 1 + ], + outputs: [ + 2 + ], + builtin_options_type: "ResizeBilinearOptions", + builtin_options: { + align_corners: true, + half_pixel_centers: false + }, + custom_options_format: "FLEXBUFFERS" + } + ], + name: "main" + } + ], + description: "MLIR Converted.", + buffers: [ + { + }, + { + }, + { + data: [ + 4, + 0, + 0, + 0, + 4, + 0, + 0, + 0 + ] + }, + { + }, + { + 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, + 6, + 0, + 0, + 0, + 50, + 46, + 49, + 50, + 46, + 48, + 0, + 0 + ] + } + ], + metadata: [ + { + name: "min_runtime_version", + buffer: 4 + }, + { + name: "CONVERSION_METADATA", + buffer: 5 + } + ], + signature_defs: [ + { + inputs: [ + { + name: "placeholder_0", + tensor_index: 0 + } + ], + outputs: [ + { + name: "output_0", + tensor_index: 2 + } + ], + method_name: "serving_default", + subgraph_index: 0 + } + ] +} diff --git a/frameworks/tflite/operators/resize_bilinear_1x4x4x4_qi8_bilinear_align1_half0_scale1/placeholder_0.json b/frameworks/tflite/operators/resize_bilinear_1x4x4x4_qi8_bilinear_align1_half0_scale1/placeholder_0.json new file mode 100644 index 000000000..e8861e502 --- /dev/null +++ b/frameworks/tflite/operators/resize_bilinear_1x4x4x4_qi8_bilinear_align1_half0_scale1/placeholder_0.json @@ -0,0 +1,111 @@ +{ + "type": "int32", + "data": [ + [ + [ + [ + 52, + 122, + -22, + 10 + ], + [ + 93, + 43, + 53, + 31 + ], + [ + -4, + 88, + 92, + -39 + ], + [ + 37, + 13, + 53, + 127 + ] + ], + [ + [ + -112, + -124, + -11, + 41 + ], + [ + 20, + -13, + 121, + -63 + ], + [ + 40, + -25, + 81, + -128 + ], + [ + 106, + -59, + -9, + -64 + ] + ], + [ + [ + -99, + 82, + -107, + 36 + ], + [ + -88, + 20, + 20, + -108 + ], + [ + 95, + -93, + 45, + 114 + ], + [ + 9, + -96, + -25, + -95 + ] + ], + [ + [ + -117, + 75, + -109, + -72 + ], + [ + 124, + -96, + -4, + -34 + ], + [ + 11, + 116, + -55, + -37 + ], + [ + -102, + 84, + 41, + 61 + ] + ] + ] + ] +} \ No newline at end of file diff --git a/frameworks/tflite/operators/resize_bilinear_1x4x4x4_qi8_bilinear_align1_half0_scale1/test_resize_1x4x4x4_qi8_bilinear_align1_half0_scale1.json b/frameworks/tflite/operators/resize_bilinear_1x4x4x4_qi8_bilinear_align1_half0_scale1/test_resize_1x4x4x4_qi8_bilinear_align1_half0_scale1.json new file mode 100644 index 000000000..39dee0335 --- /dev/null +++ b/frameworks/tflite/operators/resize_bilinear_1x4x4x4_qi8_bilinear_align1_half0_scale1/test_resize_1x4x4x4_qi8_bilinear_align1_half0_scale1.json @@ -0,0 +1,117 @@ +{ + version: { + _major: 0, + _minor: 60, + _patch: 0, + _draft: false + }, + regions: [ + { + name: "main", + blocks: [ + { + name: "main", + operators: [ + { + op: "RESIZE", + attribute_type: "ResizeAttribute", + attribute: { + scale: [ + 2, + 2, + 2, + 2 + ], + offset: [ + 0, + 0 + ], + border: [ + 0, + 0 + ], + mode: "BILINEAR" + }, + inputs: [ + "TosaInput_0" + ], + outputs: [ + "layer_0" + ] + }, + { + op: "RESCALE", + attribute_type: "RescaleAttribute", + attribute: { + input_zp: 0, + output_zp: 0, + multiplier: [ + 1073741824 + ], + shift: [ + 32 + ], + scale32: true, + double_round: false, + per_channel: false + }, + inputs: [ + "layer_0" + ], + outputs: [ + "TosaOutput_0" + ] + } + ], + tensors: [ + { + name: "TosaInput_0", + shape: [ + 1, + 4, + 4, + 4 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "TosaOutput_0", + shape: [ + 1, + 4, + 4, + 4 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "layer_0", + shape: [ + 1, + 4, + 4, + 4 + ], + type: "INT32", + data: [ + + ] + } + ], + inputs: [ + "TosaInput_0" + ], + outputs: [ + "TosaOutput_0" + ] + } + ] + } + ] +} -- cgit v1.2.1