diff options
Diffstat (limited to 'frameworks/tflite/operators/split_64_i32_split2_axis0')
5 files changed, 618 insertions, 0 deletions
diff --git a/frameworks/tflite/operators/split_64_i32_split2_axis0/Conformance-TosaOutput_0.json b/frameworks/tflite/operators/split_64_i32_split2_axis0/Conformance-TosaOutput_0.json new file mode 100644 index 000000000..886620c8d --- /dev/null +++ b/frameworks/tflite/operators/split_64_i32_split2_axis0/Conformance-TosaOutput_0.json @@ -0,0 +1,7 @@ +{ + "type": "int32", + "data": [ + 4, + -249 + ] +}
\ No newline at end of file diff --git a/frameworks/tflite/operators/split_64_i32_split2_axis0/desc.json b/frameworks/tflite/operators/split_64_i32_split2_axis0/desc.json new file mode 100644 index 000000000..6936d8a41 --- /dev/null +++ b/frameworks/tflite/operators/split_64_i32_split2_axis0/desc.json @@ -0,0 +1,19 @@ +{ + "tosa_file": "test_split_64_i32_split2_axis0.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/split_64_i32_split2_axis0/model-tflite.json b/frameworks/tflite/operators/split_64_i32_split2_axis0/model-tflite.json new file mode 100644 index 000000000..b6ff17b26 --- /dev/null +++ b/frameworks/tflite/operators/split_64_i32_split2_axis0/model-tflite.json @@ -0,0 +1,364 @@ +{ + version: 3, + operator_codes: [ + { + deprecated_builtin_code: 49, + version: 3, + builtin_code: "SPLIT" + }, + { + deprecated_builtin_code: 74, + version: 1, + builtin_code: "SUM" + }, + { + deprecated_builtin_code: 83, + version: 1, + builtin_code: "PACK" + } + ], + subgraphs: [ + { + tensors: [ + { + shape: [ + 64 + ], + type: "INT32", + buffer: 1, + name: "serving_default_placeholder_0:0", + quantization: { + details_type: "NONE", + quantized_dimension: 0 + }, + is_variable: false + }, + { + shape: [ + + ], + type: "INT32", + buffer: 2, + name: "split/split_dim", + quantization: { + details_type: "NONE", + quantized_dimension: 0 + }, + is_variable: false + }, + { + shape: [ + 1 + ], + type: "INT32", + buffer: 2, + name: "Const", + quantization: { + details_type: "NONE", + quantized_dimension: 0 + }, + is_variable: false + }, + { + shape: [ + 32 + ], + type: "INT32", + buffer: 4, + name: "split", + quantization: { + details_type: "NONE", + quantized_dimension: 0 + }, + is_variable: false + }, + { + shape: [ + 32 + ], + type: "INT32", + buffer: 5, + name: "split1", + quantization: { + details_type: "NONE", + quantized_dimension: 0 + }, + is_variable: false + }, + { + shape: [ + + ], + type: "INT32", + buffer: 6, + name: "reduce_0", + quantization: { + details_type: "NONE", + quantized_dimension: 0 + }, + is_variable: false + }, + { + shape: [ + + ], + type: "INT32", + buffer: 7, + name: "reduce_1", + quantization: { + details_type: "NONE", + quantized_dimension: 0 + }, + is_variable: false + }, + { + shape: [ + 2 + ], + type: "INT32", + buffer: 8, + name: "PartitionedCall:0", + quantization: { + details_type: "NONE", + quantized_dimension: 0 + }, + is_variable: false + } + ], + inputs: [ + 0 + ], + outputs: [ + 7 + ], + operators: [ + { + opcode_index: 0, + inputs: [ + 1, + 0 + ], + outputs: [ + 3, + 4 + ], + builtin_options_type: "SplitOptions", + builtin_options: { + num_splits: 2 + }, + custom_options_format: "FLEXBUFFERS" + }, + { + opcode_index: 1, + inputs: [ + 3, + 2 + ], + outputs: [ + 5 + ], + builtin_options_type: "ReducerOptions", + builtin_options: { + keep_dims: false + }, + custom_options_format: "FLEXBUFFERS" + }, + { + opcode_index: 1, + inputs: [ + 4, + 2 + ], + outputs: [ + 6 + ], + builtin_options_type: "ReducerOptions", + builtin_options: { + keep_dims: false + }, + custom_options_format: "FLEXBUFFERS" + }, + { + opcode_index: 2, + inputs: [ + 5, + 6 + ], + outputs: [ + 7 + ], + builtin_options_type: "PackOptions", + builtin_options: { + values_count: 2, + axis: 0 + }, + custom_options_format: "FLEXBUFFERS" + } + ], + name: "main" + } + ], + description: "MLIR Converted.", + buffers: [ + { + }, + { + }, + { + data: [ + 0, + 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, + 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: 9 + }, + { + name: "CONVERSION_METADATA", + buffer: 10 + } + ], + signature_defs: [ + { + inputs: [ + { + name: "placeholder_0", + tensor_index: 0 + } + ], + outputs: [ + { + name: "output_0", + tensor_index: 7 + } + ], + method_name: "serving_default", + subgraph_index: 0 + } + ] +} diff --git a/frameworks/tflite/operators/split_64_i32_split2_axis0/placeholder_0.json b/frameworks/tflite/operators/split_64_i32_split2_axis0/placeholder_0.json new file mode 100644 index 000000000..22076163a --- /dev/null +++ b/frameworks/tflite/operators/split_64_i32_split2_axis0/placeholder_0.json @@ -0,0 +1,69 @@ +{ + "type": "int32", + "data": [ + 96, + -126, + 61, + 15, + -78, + 53, + 99, + -55, + 16, + -101, + 54, + 81, + 117, + 23, + 68, + -20, + 100, + -88, + 91, + 3, + 47, + 64, + -63, + -40, + -93, + -101, + 63, + -68, + -84, + -86, + 23, + -67, + 6, + -50, + 59, + -42, + 119, + 29, + 34, + -20, + 126, + -117, + -2, + -39, + -51, + -105, + 28, + 11, + 36, + 127, + -59, + -101, + -28, + -84, + 0, + -90, + 77, + -5, + -33, + 26, + -100, + 79, + -20, + -60 + ] +}
\ No newline at end of file diff --git a/frameworks/tflite/operators/split_64_i32_split2_axis0/test_split_64_i32_split2_axis0.json b/frameworks/tflite/operators/split_64_i32_split2_axis0/test_split_64_i32_split2_axis0.json new file mode 100644 index 000000000..3a5c0b280 --- /dev/null +++ b/frameworks/tflite/operators/split_64_i32_split2_axis0/test_split_64_i32_split2_axis0.json @@ -0,0 +1,159 @@ +{ + version: { + _major: 0, + _minor: 30, + _patch: 0, + _draft: false + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "SLICE", + attribute_type: "SliceAttribute", + attribute: { + start: [ + 0 + ], + size: [ + 32 + ] + }, + inputs: [ + "TosaInput_0" + ], + outputs: [ + "layer_0" + ] + }, + { + op: "SLICE", + attribute_type: "SliceAttribute", + attribute: { + start: [ + 32 + ], + size: [ + 32 + ] + }, + inputs: [ + "TosaInput_0" + ], + outputs: [ + "layer_1" + ] + }, + { + op: "REDUCE_SUM", + attribute_type: "AxisAttribute", + attribute: { + axis: 0 + }, + inputs: [ + "layer_0" + ], + outputs: [ + "layer_2" + ] + }, + { + op: "REDUCE_SUM", + attribute_type: "AxisAttribute", + attribute: { + axis: 0 + }, + inputs: [ + "layer_1" + ], + outputs: [ + "layer_3" + ] + }, + { + op: "CONCAT", + attribute_type: "AxisAttribute", + attribute: { + axis: 0 + }, + inputs: [ + "layer_2", + "layer_3" + ], + outputs: [ + "TosaOutput_0" + ] + } + ], + tensors: [ + { + name: "TosaInput_0", + shape: [ + 64 + ], + type: "INT32", + data: [ + + ] + }, + { + name: "TosaOutput_0", + shape: [ + 2 + ], + type: "INT32", + data: [ + + ] + }, + { + name: "layer_0", + shape: [ + 32 + ], + type: "INT32", + data: [ + + ] + }, + { + name: "layer_1", + shape: [ + 32 + ], + type: "INT32", + data: [ + + ] + }, + { + name: "layer_2", + shape: [ + 1 + ], + type: "INT32", + data: [ + + ] + }, + { + name: "layer_3", + shape: [ + 1 + ], + type: "INT32", + data: [ + + ] + } + ], + inputs: [ + "TosaInput_0" + ], + outputs: [ + "TosaOutput_0" + ] + } + ] +} |