aboutsummaryrefslogtreecommitdiff
path: root/frameworks/tflite/operators/leaky_relu_1_qi16_0
diff options
context:
space:
mode:
Diffstat (limited to 'frameworks/tflite/operators/leaky_relu_1_qi16_0')
-rw-r--r--frameworks/tflite/operators/leaky_relu_1_qi16_0/Conformance-TosaOutput_0.json6
-rw-r--r--frameworks/tflite/operators/leaky_relu_1_qi16_0/desc.json19
-rw-r--r--frameworks/tflite/operators/leaky_relu_1_qi16_0/model-tflite.json238
-rw-r--r--frameworks/tflite/operators/leaky_relu_1_qi16_0/placeholder_0.json6
-rw-r--r--frameworks/tflite/operators/leaky_relu_1_qi16_0/test_leaky_relu_1_qi16_0.json202
5 files changed, 471 insertions, 0 deletions
diff --git a/frameworks/tflite/operators/leaky_relu_1_qi16_0/Conformance-TosaOutput_0.json b/frameworks/tflite/operators/leaky_relu_1_qi16_0/Conformance-TosaOutput_0.json
new file mode 100644
index 000000000..58fa56ab2
--- /dev/null
+++ b/frameworks/tflite/operators/leaky_relu_1_qi16_0/Conformance-TosaOutput_0.json
@@ -0,0 +1,6 @@
+{
+ "type": "int32",
+ "data": [
+ 1
+ ]
+} \ No newline at end of file
diff --git a/frameworks/tflite/operators/leaky_relu_1_qi16_0/desc.json b/frameworks/tflite/operators/leaky_relu_1_qi16_0/desc.json
new file mode 100644
index 000000000..e7b838f0b
--- /dev/null
+++ b/frameworks/tflite/operators/leaky_relu_1_qi16_0/desc.json
@@ -0,0 +1,19 @@
+{
+ "tosa_file": "test_leaky_relu_1_qi16_0.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/leaky_relu_1_qi16_0/model-tflite.json b/frameworks/tflite/operators/leaky_relu_1_qi16_0/model-tflite.json
new file mode 100644
index 000000000..2d05e7e16
--- /dev/null
+++ b/frameworks/tflite/operators/leaky_relu_1_qi16_0/model-tflite.json
@@ -0,0 +1,238 @@
+{
+ version: 3,
+ operator_codes: [
+ {
+ deprecated_builtin_code: 98,
+ version: 2,
+ builtin_code: "LEAKY_RELU"
+ }
+ ],
+ subgraphs: [
+ {
+ tensors: [
+ {
+ shape: [
+ 1
+ ],
+ type: "INT16",
+ buffer: 1,
+ name: "serving_default_placeholder_0:0",
+ quantization: {
+ min: [
+ -1.978067
+ ],
+ max: [
+ 1.995548
+ ],
+ scale: [
+ 0.000061
+ ],
+ zero_point: [
+ 0
+ ],
+ details_type: "NONE",
+ quantized_dimension: 0
+ },
+ is_variable: false
+ },
+ {
+ shape: [
+ 1
+ ],
+ type: "INT16",
+ buffer: 2,
+ name: "PartitionedCall:0",
+ quantization: {
+ min: [
+ -0.645187
+ ],
+ max: [
+ 1.995548
+ ],
+ scale: [
+ 0.000061
+ ],
+ zero_point: [
+ 0
+ ],
+ details_type: "NONE",
+ quantized_dimension: 0
+ },
+ is_variable: false
+ }
+ ],
+ inputs: [
+ 0
+ ],
+ outputs: [
+ 1
+ ],
+ operators: [
+ {
+ opcode_index: 0,
+ inputs: [
+ 0
+ ],
+ outputs: [
+ 1
+ ],
+ builtin_options_type: "LeakyReluOptions",
+ builtin_options: {
+ alpha: 0.32617
+ },
+ custom_options_format: "FLEXBUFFERS"
+ }
+ ],
+ name: "main"
+ }
+ ],
+ description: "MLIR Converted.",
+ buffers: [
+ {
+ },
+ {
+ },
+ {
+ },
+ {
+ 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,
+ 40,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 6,
+ 0,
+ 8,
+ 0,
+ 4,
+ 0,
+ 6,
+ 0,
+ 0,
+ 0,
+ 4,
+ 0,
+ 0,
+ 0,
+ 1,
+ 0,
+ 0,
+ 0,
+ 236,
+ 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,
+ 5,
+ 0,
+ 0,
+ 0,
+ 50,
+ 46,
+ 57,
+ 46,
+ 48,
+ 0,
+ 0,
+ 0
+ ]
+ }
+ ],
+ metadata: [
+ {
+ name: "min_runtime_version",
+ buffer: 3
+ },
+ {
+ name: "CONVERSION_METADATA",
+ buffer: 4
+ }
+ ],
+ signature_defs: [
+ {
+ inputs: [
+ {
+ name: "placeholder_0",
+ tensor_index: 0
+ }
+ ],
+ outputs: [
+ {
+ name: "output_0",
+ tensor_index: 1
+ }
+ ],
+ method_name: "serving_default",
+ subgraph_index: 0
+ }
+ ]
+}
diff --git a/frameworks/tflite/operators/leaky_relu_1_qi16_0/placeholder_0.json b/frameworks/tflite/operators/leaky_relu_1_qi16_0/placeholder_0.json
new file mode 100644
index 000000000..58fa56ab2
--- /dev/null
+++ b/frameworks/tflite/operators/leaky_relu_1_qi16_0/placeholder_0.json
@@ -0,0 +1,6 @@
+{
+ "type": "int32",
+ "data": [
+ 1
+ ]
+} \ No newline at end of file
diff --git a/frameworks/tflite/operators/leaky_relu_1_qi16_0/test_leaky_relu_1_qi16_0.json b/frameworks/tflite/operators/leaky_relu_1_qi16_0/test_leaky_relu_1_qi16_0.json
new file mode 100644
index 000000000..ad3403e9f
--- /dev/null
+++ b/frameworks/tflite/operators/leaky_relu_1_qi16_0/test_leaky_relu_1_qi16_0.json
@@ -0,0 +1,202 @@
+{
+ version: {
+ _major: 0,
+ _minor: 30,
+ _patch: 0,
+ _draft: false
+ },
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "CONST",
+ attribute_type: "NONE",
+ inputs: [
+
+ ],
+ outputs: [
+ "layer_0"
+ ]
+ },
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 0,
+ multiplier: [
+ 1073741824
+ ],
+ shift: [
+ 30
+ ],
+ scale32: true,
+ double_round: false,
+ per_channel: false
+ },
+ inputs: [
+ "TosaInput_0"
+ ],
+ outputs: [
+ "layer_1"
+ ]
+ },
+ {
+ op: "GREATER_EQUAL",
+ attribute_type: "NONE",
+ inputs: [
+ "layer_1",
+ "layer_0"
+ ],
+ outputs: [
+ "layer_2"
+ ]
+ },
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 0,
+ multiplier: [
+ 1400891264
+ ],
+ shift: [
+ 32
+ ],
+ scale32: true,
+ double_round: true,
+ per_channel: false
+ },
+ inputs: [
+ "TosaInput_0"
+ ],
+ outputs: [
+ "layer_3"
+ ]
+ },
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 0,
+ multiplier: [
+ 1073741824
+ ],
+ shift: [
+ 30
+ ],
+ scale32: true,
+ double_round: true,
+ per_channel: false
+ },
+ inputs: [
+ "TosaInput_0"
+ ],
+ outputs: [
+ "layer_4"
+ ]
+ },
+ {
+ op: "SELECT",
+ attribute_type: "NONE",
+ inputs: [
+ "layer_2",
+ "layer_4",
+ "layer_3"
+ ],
+ outputs: [
+ "TosaOutput_0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "TosaInput_0",
+ shape: [
+ 1
+ ],
+ type: "INT16",
+ data: [
+
+ ]
+ },
+ {
+ name: "TosaOutput_0",
+ shape: [
+ 1
+ ],
+ type: "INT16",
+ data: [
+
+ ]
+ },
+ {
+ name: "layer_0",
+ shape: [
+ 1
+ ],
+ type: "INT32",
+ data: [
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0
+ ]
+ },
+ {
+ name: "layer_1",
+ shape: [
+ 1
+ ],
+ type: "INT32",
+ data: [
+
+ ]
+ },
+ {
+ name: "layer_2",
+ shape: [
+ 1
+ ],
+ type: "BOOL",
+ data: [
+
+ ]
+ },
+ {
+ name: "layer_3",
+ shape: [
+ 1
+ ],
+ type: "INT16",
+ data: [
+
+ ]
+ },
+ {
+ name: "layer_4",
+ shape: [
+ 1
+ ],
+ type: "INT16",
+ data: [
+
+ ]
+ }
+ ],
+ inputs: [
+ "TosaInput_0"
+ ],
+ outputs: [
+ "TosaOutput_0"
+ ]
+ }
+ ]
+}