diff options
Diffstat (limited to 'frameworks/tflite/operators/reshape_14x19_i32_rank1')
5 files changed, 889 insertions, 0 deletions
diff --git a/frameworks/tflite/operators/reshape_14x19_i32_rank1/Conformance-TosaOutput_0.json b/frameworks/tflite/operators/reshape_14x19_i32_rank1/Conformance-TosaOutput_0.json new file mode 100644 index 000000000..34a5d63bb --- /dev/null +++ b/frameworks/tflite/operators/reshape_14x19_i32_rank1/Conformance-TosaOutput_0.json @@ -0,0 +1,275 @@ +{ + "type": "int32", + "data": [ + [ + 42, + -52, + 66, + -9, + 2, + 101, + -47, + 46, + 90, + 34, + -113, + 36, + 9, + -101, + -21, + 54, + 63, + -116, + 37, + 94, + 97, + 70, + -28, + -101, + 18, + 20, + 28, + 102, + -67, + 100, + -30, + 107, + 127, + 122, + -98, + 38, + -125, + 51, + 71, + 8, + 25, + 112, + 58, + 62, + -49, + 82, + 114, + -66, + 111, + 64, + -33, + 86, + -32, + 111, + -18, + -79, + -107, + 51, + 51, + -76, + -112, + 86, + 115, + 33, + -110, + -44, + 69, + 38, + 22, + 94, + -120, + 21, + -30, + 3, + -12, + -57, + 37, + 41, + 70, + 123, + -10, + -99, + -100, + 7, + -55, + -93, + 9, + -16, + 116, + 64, + 84, + -110, + -7, + 110, + 109, + 100, + -86, + -33, + 8, + -91, + -22, + 12, + -106, + -101, + 31, + -94, + 12, + 36, + 66, + -115, + -57, + -34, + 68, + -108, + -82, + 38, + -105, + 4, + -114, + 78, + -115, + 114, + 100, + 81, + 19, + 76, + 58, + -127, + -76, + 70, + -33, + 38, + 96 + ], + [ + 30, + 45, + -23, + -58, + 25, + -19, + -9, + 58, + -13, + -123, + -91, + 73, + 52, + 4, + -122, + -46, + -82, + -124, + 122, + -81, + -94, + -40, + 47, + -71, + 101, + 71, + 57, + 26, + -100, + -25, + 117, + -45, + -52, + -110, + 89, + 47, + 2, + 64, + 1, + 107, + -103, + -118, + -61, + 117, + 78, + -42, + 115, + -50, + 92, + -3, + -23, + 35, + -110, + -80, + 36, + 21, + 88, + 89, + 16, + 126, + 55, + -28, + -77, + 55, + 19, + 100, + 80, + 83, + 25, + 9, + 26, + -65, + -36, + 29, + -112, + -13, + -19, + 96, + -71, + 67, + 105, + -89, + 62, + 100, + 77, + 94, + -14, + -3, + -72, + -65, + 19, + 63, + -34, + 17, + -50, + 96, + 109, + -113, + 6, + -17, + -108, + 101, + -95, + 110, + -63, + -12, + 74, + -4, + -67, + -12, + 24, + 26, + -26, + 61, + -20, + -63, + 40, + -37, + 73, + 37, + -62, + -108, + -64, + -47, + -29, + -23, + 88, + -43, + 68, + 0, + 44, + -39, + -13 + ] + ] +}
\ No newline at end of file diff --git a/frameworks/tflite/operators/reshape_14x19_i32_rank1/desc.json b/frameworks/tflite/operators/reshape_14x19_i32_rank1/desc.json new file mode 100644 index 000000000..80b6e2a76 --- /dev/null +++ b/frameworks/tflite/operators/reshape_14x19_i32_rank1/desc.json @@ -0,0 +1,19 @@ +{ + "tosa_file": "test_reshape_14x19_i32_rank1.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/reshape_14x19_i32_rank1/model-tflite.json b/frameworks/tflite/operators/reshape_14x19_i32_rank1/model-tflite.json new file mode 100644 index 000000000..6c4c1990e --- /dev/null +++ b/frameworks/tflite/operators/reshape_14x19_i32_rank1/model-tflite.json @@ -0,0 +1,235 @@ +{ + version: 3, + operator_codes: [ + { + deprecated_builtin_code: 22, + version: 1, + builtin_code: "RESHAPE" + } + ], + subgraphs: [ + { + tensors: [ + { + shape: [ + 14, + 19 + ], + type: "INT32", + buffer: 1, + name: "serving_default_placeholder_0:0", + quantization: { + details_type: "NONE", + quantized_dimension: 0 + }, + is_variable: false + }, + { + shape: [ + 2 + ], + type: "INT32", + buffer: 2, + name: "Reshape/shape", + quantization: { + details_type: "NONE", + quantized_dimension: 0 + }, + is_variable: false + }, + { + shape: [ + 2, + 133 + ], + type: "INT32", + buffer: 3, + name: "PartitionedCall:0", + quantization: { + 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: "NONE", + custom_options_format: "FLEXBUFFERS" + } + ], + name: "main" + } + ], + description: "MLIR Converted.", + buffers: [ + { + }, + { + }, + { + data: [ + 2, + 0, + 0, + 0, + 133, + 0, + 0, + 0 + ] + }, + { + }, + { + data: [ + 49, + 46, + 53, + 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: 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/reshape_14x19_i32_rank1/placeholder_0.json b/frameworks/tflite/operators/reshape_14x19_i32_rank1/placeholder_0.json new file mode 100644 index 000000000..fc25eeea3 --- /dev/null +++ b/frameworks/tflite/operators/reshape_14x19_i32_rank1/placeholder_0.json @@ -0,0 +1,299 @@ +{ + "type": "int32", + "data": [ + [ + 42, + -52, + 66, + -9, + 2, + 101, + -47, + 46, + 90, + 34, + -113, + 36, + 9, + -101, + -21, + 54, + 63, + -116, + 37 + ], + [ + 94, + 97, + 70, + -28, + -101, + 18, + 20, + 28, + 102, + -67, + 100, + -30, + 107, + 127, + 122, + -98, + 38, + -125, + 51 + ], + [ + 71, + 8, + 25, + 112, + 58, + 62, + -49, + 82, + 114, + -66, + 111, + 64, + -33, + 86, + -32, + 111, + -18, + -79, + -107 + ], + [ + 51, + 51, + -76, + -112, + 86, + 115, + 33, + -110, + -44, + 69, + 38, + 22, + 94, + -120, + 21, + -30, + 3, + -12, + -57 + ], + [ + 37, + 41, + 70, + 123, + -10, + -99, + -100, + 7, + -55, + -93, + 9, + -16, + 116, + 64, + 84, + -110, + -7, + 110, + 109 + ], + [ + 100, + -86, + -33, + 8, + -91, + -22, + 12, + -106, + -101, + 31, + -94, + 12, + 36, + 66, + -115, + -57, + -34, + 68, + -108 + ], + [ + -82, + 38, + -105, + 4, + -114, + 78, + -115, + 114, + 100, + 81, + 19, + 76, + 58, + -127, + -76, + 70, + -33, + 38, + 96 + ], + [ + 30, + 45, + -23, + -58, + 25, + -19, + -9, + 58, + -13, + -123, + -91, + 73, + 52, + 4, + -122, + -46, + -82, + -124, + 122 + ], + [ + -81, + -94, + -40, + 47, + -71, + 101, + 71, + 57, + 26, + -100, + -25, + 117, + -45, + -52, + -110, + 89, + 47, + 2, + 64 + ], + [ + 1, + 107, + -103, + -118, + -61, + 117, + 78, + -42, + 115, + -50, + 92, + -3, + -23, + 35, + -110, + -80, + 36, + 21, + 88 + ], + [ + 89, + 16, + 126, + 55, + -28, + -77, + 55, + 19, + 100, + 80, + 83, + 25, + 9, + 26, + -65, + -36, + 29, + -112, + -13 + ], + [ + -19, + 96, + -71, + 67, + 105, + -89, + 62, + 100, + 77, + 94, + -14, + -3, + -72, + -65, + 19, + 63, + -34, + 17, + -50 + ], + [ + 96, + 109, + -113, + 6, + -17, + -108, + 101, + -95, + 110, + -63, + -12, + 74, + -4, + -67, + -12, + 24, + 26, + -26, + 61 + ], + [ + -20, + -63, + 40, + -37, + 73, + 37, + -62, + -108, + -64, + -47, + -29, + -23, + 88, + -43, + 68, + 0, + 44, + -39, + -13 + ] + ] +}
\ No newline at end of file diff --git a/frameworks/tflite/operators/reshape_14x19_i32_rank1/test_reshape_14x19_i32_rank1.json b/frameworks/tflite/operators/reshape_14x19_i32_rank1/test_reshape_14x19_i32_rank1.json new file mode 100644 index 000000000..e66367013 --- /dev/null +++ b/frameworks/tflite/operators/reshape_14x19_i32_rank1/test_reshape_14x19_i32_rank1.json @@ -0,0 +1,61 @@ +{ + version: { + _major: 0, + _minor: 30, + _patch: 0, + _draft: false + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "RESHAPE", + attribute_type: "ReshapeAttribute", + attribute: { + new_shape: [ + 2, + 133 + ] + }, + inputs: [ + "TosaInput_0" + ], + outputs: [ + "TosaOutput_0" + ] + } + ], + tensors: [ + { + name: "TosaInput_0", + shape: [ + 14, + 19 + ], + type: "INT32", + data: [ + + ] + }, + { + name: "TosaOutput_0", + shape: [ + 2, + 133 + ], + type: "INT32", + data: [ + + ] + } + ], + inputs: [ + "TosaInput_0" + ], + outputs: [ + "TosaOutput_0" + ] + } + ] +} |