aboutsummaryrefslogtreecommitdiff
path: root/frameworks/tflite/operators/split_3x1x1x7_i32_splitv_axis0
diff options
context:
space:
mode:
Diffstat (limited to 'frameworks/tflite/operators/split_3x1x1x7_i32_splitv_axis0')
-rw-r--r--frameworks/tflite/operators/split_3x1x1x7_i32_splitv_axis0/Conformance-TosaOutput_0.json8
-rw-r--r--frameworks/tflite/operators/split_3x1x1x7_i32_splitv_axis0/desc.json23
-rw-r--r--frameworks/tflite/operators/split_3x1x1x7_i32_splitv_axis0/model-tflite.json471
-rw-r--r--frameworks/tflite/operators/split_3x1x1x7_i32_splitv_axis0/placeholder_0.json44
-rw-r--r--frameworks/tflite/operators/split_3x1x1x7_i32_splitv_axis0/test_split_3x1x1x7_i32_splitv_axis0.json330
5 files changed, 876 insertions, 0 deletions
diff --git a/frameworks/tflite/operators/split_3x1x1x7_i32_splitv_axis0/Conformance-TosaOutput_0.json b/frameworks/tflite/operators/split_3x1x1x7_i32_splitv_axis0/Conformance-TosaOutput_0.json
new file mode 100644
index 000000000..a634890c8
--- /dev/null
+++ b/frameworks/tflite/operators/split_3x1x1x7_i32_splitv_axis0/Conformance-TosaOutput_0.json
@@ -0,0 +1,8 @@
+{
+ "type": "int32",
+ "data": [
+ 120,
+ 135,
+ 201
+ ]
+} \ No newline at end of file
diff --git a/frameworks/tflite/operators/split_3x1x1x7_i32_splitv_axis0/desc.json b/frameworks/tflite/operators/split_3x1x1x7_i32_splitv_axis0/desc.json
new file mode 100644
index 000000000..725bbff29
--- /dev/null
+++ b/frameworks/tflite/operators/split_3x1x1x7_i32_splitv_axis0/desc.json
@@ -0,0 +1,23 @@
+{
+ "tosa_file": "test_split_3x1x1x7_i32_splitv_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"
+ ],
+ "profile": [
+ "tosa-bi",
+ "tosa-mi"
+ ]
+} \ No newline at end of file
diff --git a/frameworks/tflite/operators/split_3x1x1x7_i32_splitv_axis0/model-tflite.json b/frameworks/tflite/operators/split_3x1x1x7_i32_splitv_axis0/model-tflite.json
new file mode 100644
index 000000000..713f2a123
--- /dev/null
+++ b/frameworks/tflite/operators/split_3x1x1x7_i32_splitv_axis0/model-tflite.json
@@ -0,0 +1,471 @@
+{
+ version: 3,
+ operator_codes: [
+ {
+ deprecated_builtin_code: 102,
+ version: 1,
+ builtin_code: "SPLIT_V"
+ },
+ {
+ deprecated_builtin_code: 74,
+ version: 1,
+ builtin_code: "SUM"
+ },
+ {
+ deprecated_builtin_code: 83,
+ version: 1,
+ builtin_code: "PACK"
+ }
+ ],
+ subgraphs: [
+ {
+ tensors: [
+ {
+ shape: [
+ 3,
+ 1,
+ 1,
+ 7
+ ],
+ type: "INT32",
+ buffer: 1,
+ name: "serving_default_placeholder_0:0",
+ quantization: {
+ details_type: "NONE",
+ quantized_dimension: 0
+ },
+ is_variable: false
+ },
+ {
+ shape: [
+ 4
+ ],
+ type: "INT32",
+ buffer: 2,
+ name: "Const",
+ quantization: {
+ details_type: "NONE",
+ quantized_dimension: 0
+ },
+ is_variable: false
+ },
+ {
+ shape: [
+ 3
+ ],
+ type: "INT32",
+ buffer: 3,
+ name: "const_split_vec",
+ quantization: {
+ details_type: "NONE",
+ quantized_dimension: 0
+ },
+ is_variable: false
+ },
+ {
+ shape: [
+
+ ],
+ type: "INT32",
+ buffer: 4,
+ name: "split/split_dim",
+ quantization: {
+ details_type: "NONE",
+ quantized_dimension: 0
+ },
+ is_variable: false
+ },
+ {
+ shape: [
+ 1,
+ 1,
+ 1,
+ 7
+ ],
+ type: "INT32",
+ buffer: 5,
+ name: "split",
+ quantization: {
+ details_type: "NONE",
+ quantized_dimension: 0
+ },
+ is_variable: false
+ },
+ {
+ shape: [
+ 1,
+ 1,
+ 1,
+ 7
+ ],
+ type: "INT32",
+ buffer: 6,
+ name: "split1",
+ quantization: {
+ details_type: "NONE",
+ quantized_dimension: 0
+ },
+ is_variable: false
+ },
+ {
+ shape: [
+ 1,
+ 1,
+ 1,
+ 7
+ ],
+ type: "INT32",
+ buffer: 7,
+ name: "split2",
+ quantization: {
+ details_type: "NONE",
+ quantized_dimension: 0
+ },
+ is_variable: false
+ },
+ {
+ shape: [
+
+ ],
+ type: "INT32",
+ buffer: 8,
+ name: "reduce_0",
+ quantization: {
+ details_type: "NONE",
+ quantized_dimension: 0
+ },
+ is_variable: false
+ },
+ {
+ shape: [
+
+ ],
+ type: "INT32",
+ buffer: 9,
+ name: "reduce_1",
+ quantization: {
+ details_type: "NONE",
+ quantized_dimension: 0
+ },
+ is_variable: false
+ },
+ {
+ shape: [
+
+ ],
+ type: "INT32",
+ buffer: 10,
+ name: "reduce_2",
+ quantization: {
+ details_type: "NONE",
+ quantized_dimension: 0
+ },
+ is_variable: false
+ },
+ {
+ shape: [
+ 3
+ ],
+ type: "INT32",
+ buffer: 11,
+ name: "PartitionedCall:0",
+ quantization: {
+ details_type: "NONE",
+ quantized_dimension: 0
+ },
+ is_variable: false
+ }
+ ],
+ inputs: [
+ 0
+ ],
+ outputs: [
+ 10
+ ],
+ operators: [
+ {
+ opcode_index: 0,
+ inputs: [
+ 0,
+ 2,
+ 3
+ ],
+ outputs: [
+ 4,
+ 5,
+ 6
+ ],
+ builtin_options_type: "SplitVOptions",
+ builtin_options: {
+ num_splits: 3
+ },
+ custom_options_format: "FLEXBUFFERS"
+ },
+ {
+ opcode_index: 1,
+ inputs: [
+ 4,
+ 1
+ ],
+ outputs: [
+ 7
+ ],
+ builtin_options_type: "ReducerOptions",
+ builtin_options: {
+ keep_dims: false
+ },
+ custom_options_format: "FLEXBUFFERS"
+ },
+ {
+ opcode_index: 1,
+ inputs: [
+ 5,
+ 1
+ ],
+ outputs: [
+ 8
+ ],
+ builtin_options_type: "ReducerOptions",
+ builtin_options: {
+ keep_dims: false
+ },
+ custom_options_format: "FLEXBUFFERS"
+ },
+ {
+ opcode_index: 1,
+ inputs: [
+ 6,
+ 1
+ ],
+ outputs: [
+ 9
+ ],
+ builtin_options_type: "ReducerOptions",
+ builtin_options: {
+ keep_dims: false
+ },
+ custom_options_format: "FLEXBUFFERS"
+ },
+ {
+ opcode_index: 2,
+ inputs: [
+ 7,
+ 8,
+ 9
+ ],
+ outputs: [
+ 10
+ ],
+ builtin_options_type: "PackOptions",
+ builtin_options: {
+ values_count: 3,
+ axis: 0
+ },
+ custom_options_format: "FLEXBUFFERS"
+ }
+ ],
+ name: "main"
+ }
+ ],
+ description: "MLIR Converted.",
+ buffers: [
+ {
+ },
+ {
+ },
+ {
+ data: [
+ 0,
+ 0,
+ 0,
+ 0,
+ 1,
+ 0,
+ 0,
+ 0,
+ 2,
+ 0,
+ 0,
+ 0,
+ 3,
+ 0,
+ 0,
+ 0
+ ]
+ },
+ {
+ data: [
+ 1,
+ 0,
+ 0,
+ 0,
+ 1,
+ 0,
+ 0,
+ 0,
+ 1,
+ 0,
+ 0,
+ 0
+ ]
+ },
+ {
+ data: [
+ 0,
+ 0,
+ 0,
+ 0
+ ]
+ },
+ {
+ },
+ {
+ },
+ {
+ },
+ {
+ },
+ {
+ },
+ {
+ },
+ {
+ },
+ {
+ data: [
+ 49,
+ 46,
+ 49,
+ 51,
+ 46,
+ 49,
+ 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,
+ 6,
+ 0,
+ 0,
+ 0,
+ 50,
+ 46,
+ 49,
+ 50,
+ 46,
+ 48,
+ 0,
+ 0
+ ]
+ }
+ ],
+ metadata: [
+ {
+ name: "min_runtime_version",
+ buffer: 12
+ },
+ {
+ name: "CONVERSION_METADATA",
+ buffer: 13
+ }
+ ],
+ signature_defs: [
+ {
+ inputs: [
+ {
+ name: "placeholder_0",
+ tensor_index: 0
+ }
+ ],
+ outputs: [
+ {
+ name: "output_0",
+ tensor_index: 10
+ }
+ ],
+ method_name: "serving_default",
+ subgraph_index: 0
+ }
+ ]
+}
diff --git a/frameworks/tflite/operators/split_3x1x1x7_i32_splitv_axis0/placeholder_0.json b/frameworks/tflite/operators/split_3x1x1x7_i32_splitv_axis0/placeholder_0.json
new file mode 100644
index 000000000..4933b457e
--- /dev/null
+++ b/frameworks/tflite/operators/split_3x1x1x7_i32_splitv_axis0/placeholder_0.json
@@ -0,0 +1,44 @@
+{
+ "type": "int32",
+ "data": [
+ [
+ [
+ [
+ 96,
+ -126,
+ 61,
+ 15,
+ -78,
+ 53,
+ 99
+ ]
+ ]
+ ],
+ [
+ [
+ [
+ -55,
+ 16,
+ -101,
+ 54,
+ 81,
+ 117,
+ 23
+ ]
+ ]
+ ],
+ [
+ [
+ [
+ 68,
+ -20,
+ 100,
+ -88,
+ 91,
+ 3,
+ 47
+ ]
+ ]
+ ]
+ ]
+} \ No newline at end of file
diff --git a/frameworks/tflite/operators/split_3x1x1x7_i32_splitv_axis0/test_split_3x1x1x7_i32_splitv_axis0.json b/frameworks/tflite/operators/split_3x1x1x7_i32_splitv_axis0/test_split_3x1x1x7_i32_splitv_axis0.json
new file mode 100644
index 000000000..417fb5e94
--- /dev/null
+++ b/frameworks/tflite/operators/split_3x1x1x7_i32_splitv_axis0/test_split_3x1x1x7_i32_splitv_axis0.json
@@ -0,0 +1,330 @@
+{
+ version: {
+ _major: 0,
+ _minor: 60,
+ _patch: 0,
+ _draft: false
+ },
+ regions: [
+ {
+ name: "main",
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "SLICE",
+ attribute_type: "SliceAttribute",
+ attribute: {
+ start: [
+ 0,
+ 0,
+ 0,
+ 0
+ ],
+ size: [
+ 1,
+ 1,
+ 1,
+ 7
+ ]
+ },
+ inputs: [
+ "TosaInput_0"
+ ],
+ outputs: [
+ "layer_0"
+ ]
+ },
+ {
+ op: "SLICE",
+ attribute_type: "SliceAttribute",
+ attribute: {
+ start: [
+ 1,
+ 0,
+ 0,
+ 0
+ ],
+ size: [
+ 1,
+ 1,
+ 1,
+ 7
+ ]
+ },
+ inputs: [
+ "TosaInput_0"
+ ],
+ outputs: [
+ "layer_1"
+ ]
+ },
+ {
+ op: "SLICE",
+ attribute_type: "SliceAttribute",
+ attribute: {
+ start: [
+ 2,
+ 0,
+ 0,
+ 0
+ ],
+ size: [
+ 1,
+ 1,
+ 1,
+ 7
+ ]
+ },
+ inputs: [
+ "TosaInput_0"
+ ],
+ outputs: [
+ "layer_2"
+ ]
+ },
+ {
+ op: "REDUCE_SUM",
+ attribute_type: "AxisAttribute",
+ attribute: {
+ axis: 3
+ },
+ inputs: [
+ "layer_0"
+ ],
+ outputs: [
+ "layer_3"
+ ]
+ },
+ {
+ op: "REDUCE_SUM",
+ attribute_type: "AxisAttribute",
+ attribute: {
+ axis: 3
+ },
+ inputs: [
+ "layer_1"
+ ],
+ outputs: [
+ "layer_4"
+ ]
+ },
+ {
+ op: "REDUCE_SUM",
+ attribute_type: "AxisAttribute",
+ attribute: {
+ axis: 3
+ },
+ inputs: [
+ "layer_2"
+ ],
+ outputs: [
+ "layer_5"
+ ]
+ },
+ {
+ op: "RESHAPE",
+ attribute_type: "ReshapeAttribute",
+ attribute: {
+ new_shape: [
+ 1
+ ]
+ },
+ inputs: [
+ "layer_3"
+ ],
+ outputs: [
+ "layer_6"
+ ]
+ },
+ {
+ op: "RESHAPE",
+ attribute_type: "ReshapeAttribute",
+ attribute: {
+ new_shape: [
+ 1
+ ]
+ },
+ inputs: [
+ "layer_4"
+ ],
+ outputs: [
+ "layer_7"
+ ]
+ },
+ {
+ op: "RESHAPE",
+ attribute_type: "ReshapeAttribute",
+ attribute: {
+ new_shape: [
+ 1
+ ]
+ },
+ inputs: [
+ "layer_5"
+ ],
+ outputs: [
+ "layer_8"
+ ]
+ },
+ {
+ op: "CONCAT",
+ attribute_type: "AxisAttribute",
+ attribute: {
+ axis: 0
+ },
+ inputs: [
+ "layer_6",
+ "layer_7",
+ "layer_8"
+ ],
+ outputs: [
+ "TosaOutput_0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "TosaInput_0",
+ shape: [
+ 3,
+ 1,
+ 1,
+ 7
+ ],
+ type: "INT32",
+ data: [
+
+ ]
+ },
+ {
+ name: "TosaOutput_0",
+ shape: [
+ 3
+ ],
+ type: "INT32",
+ data: [
+
+ ]
+ },
+ {
+ name: "layer_0",
+ shape: [
+ 1,
+ 1,
+ 1,
+ 7
+ ],
+ type: "INT32",
+ data: [
+
+ ]
+ },
+ {
+ name: "layer_1",
+ shape: [
+ 1,
+ 1,
+ 1,
+ 7
+ ],
+ type: "INT32",
+ data: [
+
+ ]
+ },
+ {
+ name: "layer_2",
+ shape: [
+ 1,
+ 1,
+ 1,
+ 7
+ ],
+ type: "INT32",
+ data: [
+
+ ]
+ },
+ {
+ name: "layer_3",
+ shape: [
+ 1,
+ 1,
+ 1,
+ 1
+ ],
+ type: "INT32",
+ data: [
+
+ ]
+ },
+ {
+ name: "layer_4",
+ shape: [
+ 1,
+ 1,
+ 1,
+ 1
+ ],
+ type: "INT32",
+ data: [
+
+ ]
+ },
+ {
+ name: "layer_5",
+ shape: [
+ 1,
+ 1,
+ 1,
+ 1
+ ],
+ type: "INT32",
+ data: [
+
+ ]
+ },
+ {
+ name: "layer_6",
+ shape: [
+ 1
+ ],
+ type: "INT32",
+ data: [
+
+ ]
+ },
+ {
+ name: "layer_7",
+ shape: [
+ 1
+ ],
+ type: "INT32",
+ data: [
+
+ ]
+ },
+ {
+ name: "layer_8",
+ shape: [
+ 1
+ ],
+ type: "INT32",
+ data: [
+
+ ]
+ }
+ ],
+ inputs: [
+ "TosaInput_0"
+ ],
+ outputs: [
+ "TosaOutput_0"
+ ]
+ }
+ ]
+ }
+ ]
+}