From e2ac2482baa202af7fe759a6b58d9bdd75168b6a Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Fri, 17 Jun 2022 13:06:00 +0100 Subject: Updating framework tests for v0.30.0 release Signed-off-by: Jeremy Johnson Change-Id: I216edc7080a64aa481deb192253295a006fa4373 --- .../Conformance-TosaOutput_0.json | 213 +++ .../strided_slice_13x21x3_i32_perm0/desc.json | 19 + .../model-tflite.json | 308 +++++ .../placeholder_0.json | 1396 ++++++++++++++++++++ .../test_strided_slice_13x21x3_i32_perm0.json | 69 + 5 files changed, 2005 insertions(+) create mode 100644 frameworks/tflite/operators/strided_slice_13x21x3_i32_perm0/Conformance-TosaOutput_0.json create mode 100644 frameworks/tflite/operators/strided_slice_13x21x3_i32_perm0/desc.json create mode 100644 frameworks/tflite/operators/strided_slice_13x21x3_i32_perm0/model-tflite.json create mode 100644 frameworks/tflite/operators/strided_slice_13x21x3_i32_perm0/placeholder_0.json create mode 100644 frameworks/tflite/operators/strided_slice_13x21x3_i32_perm0/test_strided_slice_13x21x3_i32_perm0.json (limited to 'frameworks/tflite/operators/strided_slice_13x21x3_i32_perm0') diff --git a/frameworks/tflite/operators/strided_slice_13x21x3_i32_perm0/Conformance-TosaOutput_0.json b/frameworks/tflite/operators/strided_slice_13x21x3_i32_perm0/Conformance-TosaOutput_0.json new file mode 100644 index 000000000..492274de1 --- /dev/null +++ b/frameworks/tflite/operators/strided_slice_13x21x3_i32_perm0/Conformance-TosaOutput_0.json @@ -0,0 +1,213 @@ +{ + "type": "int32", + "data": [ + [ + [ + 30, + 60 + ], + [ + -16, + 26 + ], + [ + -71, + 58 + ], + [ + -111, + 101 + ], + [ + 51, + 106 + ], + [ + 109, + -99 + ] + ], + [ + [ + -16, + -57 + ], + [ + 57, + -46 + ], + [ + -92, + -101 + ], + [ + -119, + -43 + ], + [ + 13, + 69 + ], + [ + 6, + 23 + ] + ], + [ + [ + -32, + -3 + ], + [ + 48, + -88 + ], + [ + 92, + -68 + ], + [ + -71, + 31 + ], + [ + 115, + 30 + ], + [ + -111, + 40 + ] + ], + [ + [ + -100, + 126 + ], + [ + -54, + 92 + ], + [ + -16, + -72 + ], + [ + 115, + 63 + ], + [ + 119, + 78 + ], + [ + 86, + 110 + ] + ], + [ + [ + -126, + -42 + ], + [ + 112, + -19 + ], + [ + -23, + -1 + ], + [ + -19, + 59 + ], + [ + 62, + 74 + ], + [ + -2, + 103 + ] + ], + [ + [ + -36, + 26 + ], + [ + 6, + -34 + ], + [ + -115, + -112 + ], + [ + -26, + 18 + ], + [ + -125, + 27 + ], + [ + -84, + -54 + ] + ], + [ + [ + 122, + 65 + ], + [ + -123, + -59 + ], + [ + 118, + -116 + ], + [ + 66, + 100 + ], + [ + -76, + -46 + ], + [ + -118, + -65 + ] + ], + [ + [ + 125, + -127 + ], + [ + -61, + 49 + ], + [ + 115, + -14 + ], + [ + 112, + 74 + ], + [ + 5, + 23 + ], + [ + -10, + 23 + ] + ] + ] +} \ No newline at end of file diff --git a/frameworks/tflite/operators/strided_slice_13x21x3_i32_perm0/desc.json b/frameworks/tflite/operators/strided_slice_13x21x3_i32_perm0/desc.json new file mode 100644 index 000000000..7ee841342 --- /dev/null +++ b/frameworks/tflite/operators/strided_slice_13x21x3_i32_perm0/desc.json @@ -0,0 +1,19 @@ +{ + "tosa_file": "test_strided_slice_13x21x3_i32_perm0.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/strided_slice_13x21x3_i32_perm0/model-tflite.json b/frameworks/tflite/operators/strided_slice_13x21x3_i32_perm0/model-tflite.json new file mode 100644 index 000000000..e76e4fec7 --- /dev/null +++ b/frameworks/tflite/operators/strided_slice_13x21x3_i32_perm0/model-tflite.json @@ -0,0 +1,308 @@ +{ + version: 3, + operator_codes: [ + { + deprecated_builtin_code: 45, + version: 1, + builtin_code: "STRIDED_SLICE" + } + ], + subgraphs: [ + { + tensors: [ + { + shape: [ + 13, + 21, + 3 + ], + type: "INT32", + buffer: 1, + name: "serving_default_placeholder_0:0", + quantization: { + details_type: "NONE", + quantized_dimension: 0 + }, + is_variable: false + }, + { + shape: [ + 3 + ], + type: "INT32", + buffer: 2, + name: "result", + quantization: { + details_type: "NONE", + quantized_dimension: 0 + }, + is_variable: false + }, + { + shape: [ + 3 + ], + type: "INT32", + buffer: 3, + name: "result1", + quantization: { + details_type: "NONE", + quantized_dimension: 0 + }, + is_variable: false + }, + { + shape: [ + 3 + ], + type: "INT32", + buffer: 4, + name: "result2", + quantization: { + details_type: "NONE", + quantized_dimension: 0 + }, + is_variable: false + }, + { + shape: [ + 8, + 6, + 2 + ], + type: "INT32", + buffer: 5, + name: "PartitionedCall:0", + quantization: { + details_type: "NONE", + quantized_dimension: 0 + }, + is_variable: false + } + ], + inputs: [ + 0 + ], + outputs: [ + 4 + ], + operators: [ + { + opcode_index: 0, + inputs: [ + 0, + 1, + 2, + 3 + ], + outputs: [ + 4 + ], + builtin_options_type: "StridedSliceOptions", + builtin_options: { + begin_mask: 0, + end_mask: 1, + ellipsis_mask: 0, + new_axis_mask: 0, + shrink_axis_mask: 0 + }, + custom_options_format: "FLEXBUFFERS" + } + ], + name: "main" + } + ], + description: "MLIR Converted.", + buffers: [ + { + }, + { + }, + { + data: [ + 5, + 0, + 0, + 0, + 12, + 0, + 0, + 0, + 1, + 0, + 0, + 0 + ] + }, + { + data: [ + 13, + 0, + 0, + 0, + 18, + 0, + 0, + 0, + 3, + 0, + 0, + 0 + ] + }, + { + data: [ + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0 + ] + }, + { + }, + { + data: [ + 49, + 46, + 54, + 46, + 48, + 0, + 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, + 36, + 0, + 0, + 0, + 0, + 0, + 6, + 0, + 8, + 0, + 4, + 0, + 6, + 0, + 0, + 0, + 4, + 0, + 0, + 0, + 0, + 0, + 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: 6 + }, + { + name: "CONVERSION_METADATA", + buffer: 7 + } + ], + signature_defs: [ + { + inputs: [ + { + name: "placeholder_0", + tensor_index: 0 + } + ], + outputs: [ + { + name: "output_0", + tensor_index: 4 + } + ], + method_name: "serving_default", + subgraph_index: 0 + } + ] +} diff --git a/frameworks/tflite/operators/strided_slice_13x21x3_i32_perm0/placeholder_0.json b/frameworks/tflite/operators/strided_slice_13x21x3_i32_perm0/placeholder_0.json new file mode 100644 index 000000000..0a9641f91 --- /dev/null +++ b/frameworks/tflite/operators/strided_slice_13x21x3_i32_perm0/placeholder_0.json @@ -0,0 +1,1396 @@ +{ + "type": "int32", + "data": [ + [ + [ + 19, + -32, + -70 + ], + [ + -16, + 127, + -119 + ], + [ + 18, + -112, + 20 + ], + [ + -78, + -39, + 93 + ], + [ + 125, + -73, + 123 + ], + [ + -19, + -27, + -35 + ], + [ + 12, + 95, + 84 + ], + [ + 12, + 44, + -13 + ], + [ + 42, + 112, + 112 + ], + [ + -20, + 110, + -44 + ], + [ + -20, + 91, + -111 + ], + [ + 32, + 17, + 92 + ], + [ + -29, + 24, + -35 + ], + [ + 26, + -34, + 29 + ], + [ + -127, + 34, + -128 + ], + [ + -69, + -7, + -67 + ], + [ + 54, + -44, + 118 + ], + [ + -42, + 114, + 33 + ], + [ + 64, + -8, + 33 + ], + [ + 72, + -76, + 124 + ], + [ + -79, + 53, + -78 + ] + ], + [ + [ + 87, + -44, + -13 + ], + [ + 89, + 31, + -122 + ], + [ + 109, + 83, + -20 + ], + [ + 82, + 36, + 5 + ], + [ + -123, + -3, + 70 + ], + [ + 56, + -70, + -12 + ], + [ + 71, + -13, + 19 + ], + [ + -116, + 109, + 11 + ], + [ + 19, + 27, + 98 + ], + [ + 32, + 87, + -88 + ], + [ + -55, + -1, + 34 + ], + [ + 84, + 62, + -18 + ], + [ + -44, + -86, + -25 + ], + [ + -51, + 36, + 81 + ], + [ + -1, + 120, + 57 + ], + [ + -24, + 77, + 6 + ], + [ + -117, + 34, + 23 + ], + [ + -35, + 9, + -99 + ], + [ + 54, + 8, + -76 + ], + [ + -102, + -20, + -28 + ], + [ + 55, + 16, + -100 + ] + ], + [ + [ + 0, + -81, + 14 + ], + [ + -12, + 111, + -114 + ], + [ + -38, + -34, + -63 + ], + [ + -104, + -100, + -108 + ], + [ + 27, + 56, + 50 + ], + [ + 32, + -2, + -8 + ], + [ + -64, + -50, + -1 + ], + [ + 6, + -110, + 37 + ], + [ + -108, + -64, + 88 + ], + [ + 93, + 53, + -58 + ], + [ + -1, + 8, + 37 + ], + [ + -95, + -44, + 89 + ], + [ + 120, + -23, + -110 + ], + [ + -34, + -1, + 32 + ], + [ + -62, + 79, + -25 + ], + [ + -98, + -102, + 63 + ], + [ + -25, + -25, + 87 + ], + [ + 77, + 123, + 110 + ], + [ + 37, + 83, + -107 + ], + [ + 116, + 27, + -122 + ], + [ + 41, + -65, + 4 + ] + ], + [ + [ + -13, + 43, + -62 + ], + [ + 15, + -55, + 88 + ], + [ + -20, + -116, + -117 + ], + [ + -31, + 119, + 3 + ], + [ + -37, + 33, + -59 + ], + [ + 103, + 39, + 16 + ], + [ + -78, + -8, + 12 + ], + [ + -128, + 117, + 14 + ], + [ + -3, + -93, + 48 + ], + [ + -19, + 38, + 19 + ], + [ + -121, + 113, + 77 + ], + [ + 91, + 99, + 100 + ], + [ + -21, + -82, + -9 + ], + [ + -13, + -102, + -122 + ], + [ + 106, + -56, + -1 + ], + [ + 88, + 90, + 10 + ], + [ + 95, + 65, + 107 + ], + [ + -39, + -21, + -108 + ], + [ + 121, + -5, + -74 + ], + [ + 80, + -81, + -61 + ], + [ + 27, + -31, + -110 + ] + ], + [ + [ + -15, + 111, + 10 + ], + [ + 85, + 23, + -40 + ], + [ + -72, + -13, + -94 + ], + [ + 112, + 123, + 20 + ], + [ + 26, + -29, + -99 + ], + [ + -124, + -102, + 46 + ], + [ + -17, + -79, + -84 + ], + [ + 13, + -30, + -111 + ], + [ + 32, + -19, + 116 + ], + [ + 85, + -5, + 16 + ], + [ + -5, + -56, + 114 + ], + [ + 51, + -108, + 107 + ], + [ + 38, + -116, + -1 + ], + [ + 18, + 21, + -4 + ], + [ + 112, + -124, + -88 + ], + [ + -19, + -109, + -6 + ], + [ + -90, + 74, + 127 + ], + [ + 68, + 91, + -124 + ], + [ + 83, + -120, + 1 + ], + [ + -109, + 86, + 73 + ], + [ + -117, + -77, + -34 + ] + ], + [ + [ + -67, + 54, + 4 + ], + [ + -40, + 104, + 41 + ], + [ + 59, + 17, + 67 + ], + [ + -7, + -11, + 40 + ], + [ + -78, + -73, + 93 + ], + [ + 91, + 52, + -69 + ], + [ + -39, + -38, + 80 + ], + [ + -23, + -52, + -110 + ], + [ + 71, + -55, + 10 + ], + [ + 11, + 116, + 76 + ], + [ + 117, + -9, + -20 + ], + [ + -20, + 82, + 114 + ], + [ + 18, + 30, + 60 + ], + [ + 33, + -16, + 26 + ], + [ + -62, + -71, + 58 + ], + [ + 11, + -111, + 101 + ], + [ + 28, + 51, + 106 + ], + [ + -27, + 109, + -99 + ], + [ + -55, + -77, + -59 + ], + [ + -21, + -123, + -91 + ], + [ + 83, + -90, + 95 + ] + ], + [ + [ + 23, + 23, + 97 + ], + [ + 60, + -21, + 3 + ], + [ + 9, + 111, + 124 + ], + [ + 126, + -63, + 14 + ], + [ + -8, + 123, + -15 + ], + [ + -30, + -62, + 107 + ], + [ + 110, + -118, + -70 + ], + [ + -97, + 5, + -39 + ], + [ + 39, + -37, + 92 + ], + [ + -123, + -89, + 15 + ], + [ + 7, + 68, + 1 + ], + [ + 3, + 109, + -36 + ], + [ + 3, + -16, + -57 + ], + [ + -90, + 57, + -46 + ], + [ + -127, + -92, + -101 + ], + [ + -71, + -119, + -43 + ], + [ + 36, + 13, + 69 + ], + [ + 115, + 6, + 23 + ], + [ + 111, + -7, + 56 + ], + [ + 42, + -50, + -124 + ], + [ + -70, + -61, + 66 + ] + ], + [ + [ + -29, + -43, + -75 + ], + [ + -91, + -127, + 104 + ], + [ + -111, + -104, + 85 + ], + [ + 95, + -104, + -98 + ], + [ + 5, + 87, + -34 + ], + [ + -83, + -106, + 71 + ], + [ + 84, + 24, + -14 + ], + [ + 51, + -66, + -54 + ], + [ + -22, + -68, + -32 + ], + [ + 61, + 16, + -56 + ], + [ + 121, + 15, + 35 + ], + [ + -103, + 96, + -121 + ], + [ + -54, + -32, + -3 + ], + [ + -31, + 48, + -88 + ], + [ + 107, + 92, + -68 + ], + [ + 39, + -71, + 31 + ], + [ + 74, + 115, + 30 + ], + [ + 98, + -111, + 40 + ], + [ + -126, + -44, + 95 + ], + [ + -128, + 97, + -93 + ], + [ + 26, + 53, + -44 + ] + ], + [ + [ + 24, + 49, + 127 + ], + [ + -35, + 120, + -120 + ], + [ + 81, + 8, + 72 + ], + [ + 36, + -13, + 118 + ], + [ + 127, + 70, + 44 + ], + [ + -12, + 33, + -70 + ], + [ + 107, + -58, + -116 + ], + [ + 21, + 124, + -17 + ], + [ + 24, + -10, + 28 + ], + [ + -122, + 21, + 74 + ], + [ + 28, + -92, + 57 + ], + [ + 109, + -98, + 57 + ], + [ + -118, + -100, + 126 + ], + [ + -22, + -54, + 92 + ], + [ + 98, + -16, + -72 + ], + [ + 10, + 115, + 63 + ], + [ + -17, + 119, + 78 + ], + [ + -90, + 86, + 110 + ], + [ + 37, + 87, + 60 + ], + [ + 78, + 81, + -23 + ], + [ + -20, + -25, + 52 + ] + ], + [ + [ + 103, + -70, + 80 + ], + [ + 30, + 121, + -7 + ], + [ + -87, + -41, + 91 + ], + [ + -125, + 78, + -104 + ], + [ + -9, + 56, + 88 + ], + [ + -39, + 52, + -28 + ], + [ + 104, + 85, + -86 + ], + [ + -80, + 96, + -96 + ], + [ + 26, + -24, + 90 + ], + [ + -79, + 56, + 31 + ], + [ + 101, + -16, + 51 + ], + [ + 17, + 88, + -66 + ], + [ + -42, + -126, + -42 + ], + [ + -90, + 112, + -19 + ], + [ + -73, + -23, + -1 + ], + [ + -91, + -19, + 59 + ], + [ + -117, + 62, + 74 + ], + [ + -34, + -2, + 103 + ], + [ + -81, + -71, + -107 + ], + [ + 11, + -46, + 60 + ], + [ + 77, + 45, + 62 + ] + ], + [ + [ + 90, + 67, + 107 + ], + [ + -101, + -1, + -101 + ], + [ + 0, + -50, + -30 + ], + [ + -14, + -62, + 75 + ], + [ + -31, + -112, + -57 + ], + [ + 16, + 123, + -1 + ], + [ + -46, + -74, + -91 + ], + [ + -54, + 34, + -128 + ], + [ + -89, + 59, + -5 + ], + [ + -24, + -10, + 111 + ], + [ + -35, + -47, + 85 + ], + [ + 83, + 124, + 96 + ], + [ + -117, + -36, + 26 + ], + [ + 51, + 6, + -34 + ], + [ + 102, + -115, + -112 + ], + [ + 75, + -26, + 18 + ], + [ + -15, + -125, + 27 + ], + [ + -119, + -84, + -54 + ], + [ + -36, + 55, + 73 + ], + [ + 68, + 118, + 12 + ], + [ + 19, + -38, + 75 + ] + ], + [ + [ + 35, + -57, + 43 + ], + [ + -22, + 81, + 105 + ], + [ + 93, + 91, + 65 + ], + [ + 10, + -112, + -108 + ], + [ + 79, + 87, + 99 + ], + [ + 0, + 51, + 32 + ], + [ + 82, + 34, + 115 + ], + [ + -125, + 74, + 32 + ], + [ + -87, + -72, + -73 + ], + [ + -95, + -60, + 88 + ], + [ + 76, + 36, + 78 + ], + [ + 84, + 56, + -18 + ], + [ + 74, + 122, + 65 + ], + [ + -1, + -123, + -59 + ], + [ + 88, + 118, + -116 + ], + [ + -106, + 66, + 100 + ], + [ + 60, + -76, + -46 + ], + [ + 27, + -118, + -65 + ], + [ + -100, + 34, + 41 + ], + [ + -37, + -39, + 58 + ], + [ + 108, + -8, + 70 + ] + ], + [ + [ + -11, + -62, + 54 + ], + [ + 52, + 124, + 25 + ], + [ + -127, + 9, + 85 + ], + [ + -126, + 70, + -8 + ], + [ + 14, + -123, + 32 + ], + [ + -127, + -87, + -114 + ], + [ + 21, + 102, + -86 + ], + [ + -37, + 14, + 85 + ], + [ + -51, + -97, + 29 + ], + [ + -56, + 47, + -52 + ], + [ + -95, + 27, + 20 + ], + [ + -32, + 75, + -110 + ], + [ + 21, + 125, + -127 + ], + [ + -117, + -61, + 49 + ], + [ + -23, + 115, + -14 + ], + [ + -72, + 112, + 74 + ], + [ + -18, + 5, + 23 + ], + [ + 60, + -10, + 23 + ], + [ + 104, + 4, + 117 + ], + [ + 26, + 64, + 84 + ], + [ + 73, + -29, + 45 + ] + ] + ] +} \ No newline at end of file diff --git a/frameworks/tflite/operators/strided_slice_13x21x3_i32_perm0/test_strided_slice_13x21x3_i32_perm0.json b/frameworks/tflite/operators/strided_slice_13x21x3_i32_perm0/test_strided_slice_13x21x3_i32_perm0.json new file mode 100644 index 000000000..3af357111 --- /dev/null +++ b/frameworks/tflite/operators/strided_slice_13x21x3_i32_perm0/test_strided_slice_13x21x3_i32_perm0.json @@ -0,0 +1,69 @@ +{ + version: { + _major: 0, + _minor: 30, + _patch: 0, + _draft: false + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "SLICE", + attribute_type: "SliceAttribute", + attribute: { + start: [ + 5, + 12, + 1 + ], + size: [ + 8, + 6, + 2 + ] + }, + inputs: [ + "TosaInput_0" + ], + outputs: [ + "TosaOutput_0" + ] + } + ], + tensors: [ + { + name: "TosaInput_0", + shape: [ + 13, + 21, + 3 + ], + type: "INT32", + data: [ + + ] + }, + { + name: "TosaOutput_0", + shape: [ + 8, + 6, + 2 + ], + type: "INT32", + data: [ + + ] + } + ], + inputs: [ + "TosaInput_0" + ], + outputs: [ + "TosaOutput_0" + ] + } + ] +} -- cgit v1.2.1