diff options
Diffstat (limited to 'frameworks/tflite/operators/leaky_relu_14x19_qi8_0')
5 files changed, 1054 insertions, 0 deletions
diff --git a/frameworks/tflite/operators/leaky_relu_14x19_qi8_0/Conformance-TosaOutput_0.json b/frameworks/tflite/operators/leaky_relu_14x19_qi8_0/Conformance-TosaOutput_0.json new file mode 100644 index 000000000..c01be1533 --- /dev/null +++ b/frameworks/tflite/operators/leaky_relu_14x19_qi8_0/Conformance-TosaOutput_0.json @@ -0,0 +1,299 @@ +{ + "type": "int32", + "data": [ + [ + 93, + -19, + 112, + -105, + -108, + -38, + -119, + 43, + 85, + 44, + -41, + 121, + 53, + 73, + -73, + -45, + 112, + 21, + 103 + ], + [ + -29, + 69, + 70, + 115, + -116, + -62, + -46, + -20, + 64, + -34, + 81, + -95, + -90, + 20, + -14, + -10, + -47, + -74, + 127 + ], + [ + 33, + -39, + 40, + 61, + -28, + 113, + -103, + 124, + -1, + 21, + -28, + -65, + -104, + 58, + -108, + 40, + -51, + -56, + 15 + ], + [ + -110, + -20, + 88, + 104, + 15, + -127, + 105, + 49, + 23, + -127, + -85, + 6, + -74, + -84, + -103, + -76, + -18, + -75, + -123 + ], + [ + 99, + -119, + 9, + 15, + 27, + -85, + -61, + -10, + -15, + -40, + -5, + -7, + -34, + 123, + -77, + -47, + -79, + -119, + -6 + ], + [ + 119, + 38, + -15, + -16, + -8, + -118, + -99, + -42, + 17, + -100, + -106, + -108, + -27, + 46, + -109, + -67, + -115, + -34, + 37 + ], + [ + -19, + -61, + 66, + -3, + 34, + -62, + -49, + -107, + 4, + 46, + 24, + 120, + -121, + -32, + 36, + 97, + 94, + 81, + 49 + ], + [ + 52, + 58, + -27, + 32, + 64, + -78, + 16, + 127, + -25, + -58, + 107, + 53, + 21, + -104, + -76, + -44, + -7, + -29, + -50 + ], + [ + -115, + 108, + -110, + 38, + -110, + -95, + 70, + 104, + 46, + -113, + -17, + -27, + 18, + 58, + -64, + -119, + -29, + 103, + 123 + ], + [ + 82, + 24, + -46, + -68, + -65, + 79, + 27, + -123, + 90, + -85, + 24, + 90, + -94, + 96, + 42, + 116, + 99, + -66, + -27 + ], + [ + -10, + -48, + -127, + 52, + 43, + 73, + -2, + -77, + -59, + 56, + 90, + 42, + 53, + -40, + -125, + -51, + 34, + -127, + -104 + ], + [ + -120, + -26, + 73, + -100, + 85, + -91, + -127, + 122, + 102, + 38, + -37, + -123, + -80, + -31, + -14, + 0, + 84, + -41, + 115 + ], + [ + 111, + 41, + 40, + 101, + -26, + 7, + -108, + -126, + -1, + -115, + 0, + -40, + 86, + -5, + 43, + 58, + -108, + -74, + -120 + ], + [ + -55, + 110, + 113, + -117, + 16, + -72, + 4, + -124, + -74, + -19, + -108, + -16, + 124, + -55, + -91, + -123, + -47, + -103, + -56 + ] + ] +}
\ No newline at end of file diff --git a/frameworks/tflite/operators/leaky_relu_14x19_qi8_0/desc.json b/frameworks/tflite/operators/leaky_relu_14x19_qi8_0/desc.json new file mode 100644 index 000000000..54b0a910a --- /dev/null +++ b/frameworks/tflite/operators/leaky_relu_14x19_qi8_0/desc.json @@ -0,0 +1,19 @@ +{ + "tosa_file": "test_leaky_relu_14x19_qi8_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_14x19_qi8_0/model-tflite.json b/frameworks/tflite/operators/leaky_relu_14x19_qi8_0/model-tflite.json new file mode 100644 index 000000000..445e14630 --- /dev/null +++ b/frameworks/tflite/operators/leaky_relu_14x19_qi8_0/model-tflite.json @@ -0,0 +1,228 @@ +{ + version: 3, + operator_codes: [ + { + deprecated_builtin_code: 98, + version: 1, + builtin_code: "LEAKY_RELU" + } + ], + subgraphs: [ + { + tensors: [ + { + shape: [ + 14, + 19 + ], + type: "INT8", + buffer: 1, + name: "serving_default_placeholder_0:0", + quantization: { + scale: [ + 0.015686 + ], + zero_point: [ + -1 + ], + details_type: "NONE", + quantized_dimension: 0 + }, + is_variable: false + }, + { + shape: [ + 14, + 19 + ], + type: "INT8", + buffer: 2, + name: "PartitionedCall:0", + quantization: { + scale: [ + 0.013878 + ], + zero_point: [ + -17 + ], + 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.76942 + }, + 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, + 235, + 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_14x19_qi8_0/placeholder_0.json b/frameworks/tflite/operators/leaky_relu_14x19_qi8_0/placeholder_0.json new file mode 100644 index 000000000..b57484d2b --- /dev/null +++ b/frameworks/tflite/operators/leaky_relu_14x19_qi8_0/placeholder_0.json @@ -0,0 +1,299 @@ +{ + "type": "int32", + "data": [ + [ + 96, + -3, + 113, + -102, + -106, + -25, + -118, + 52, + 89, + 53, + -29, + 121, + 61, + 79, + -65, + -33, + 113, + 33, + 105 + ], + [ + -15, + 75, + 76, + 116, + -115, + -53, + -34, + -5, + 71, + -20, + 86, + -91, + -85, + 32, + 2, + 5, + -35, + -67, + 126 + ], + [ + 43, + -26, + 49, + 68, + -14, + 114, + -100, + 124, + 13, + 33, + -14, + -56, + -101, + 65, + -106, + 49, + -40, + -46, + 27 + ], + [ + -108, + -5, + 92, + 106, + 27, + -127, + 107, + 57, + 34, + -127, + -79, + 19, + -66, + -78, + -100, + -69, + -2, + -68, + -123 + ], + [ + 102, + -118, + 22, + 27, + 38, + -79, + -52, + 5, + 1, + -28, + 10, + 8, + -21, + 123, + -70, + -36, + -72, + -118, + 9 + ], + [ + 119, + 48, + 1, + 0, + 7, + -117, + -95, + -30, + 29, + -96, + -103, + -106, + -13, + 55, + -107, + -59, + -114, + -20, + 47 + ], + [ + -3, + -52, + 72, + 11, + 44, + -53, + -38, + -104, + 18, + 55, + 35, + 120, + -121, + -18, + 46, + 100, + 97, + 86, + 57 + ], + [ + 60, + 65, + -13, + 42, + 71, + -71, + 28, + 127, + -10, + -48, + 109, + 61, + 33, + -101, + -69, + -32, + 8, + -15, + -39 + ], + [ + -114, + 110, + -108, + 48, + -108, + -91, + 76, + 106, + 55, + -111, + -1, + -13, + 30, + 65, + -55, + -118, + -15, + 105, + 123 + ], + [ + 87, + 35, + -34, + -60, + -56, + 84, + 38, + -123, + 94, + -79, + 35, + 94, + -89, + 99, + 51, + 117, + 102, + -57, + -12 + ], + [ + 5, + -37, + -128, + 60, + 52, + 79, + 12, + -70, + -49, + 64, + 94, + 51, + 61, + -27, + -125, + -40, + 44, + -127, + -101 + ], + [ + -120, + -11, + 79, + -96, + 89, + -86, + -128, + 122, + 104, + 48, + -24, + -123, + -74, + -17, + 2, + 14, + 88, + -29, + 116 + ], + [ + 112, + 50, + 49, + 103, + -11, + 20, + -106, + -126, + 13, + -114, + 14, + -28, + 90, + 10, + 52, + 65, + -106, + -66, + -119 + ], + [ + -45, + 111, + 114, + -116, + 28, + -64, + 18, + -124, + -66, + -3, + -106, + 0, + 124, + -45, + -86, + -123, + -35, + -100, + -46 + ] + ] +}
\ No newline at end of file diff --git a/frameworks/tflite/operators/leaky_relu_14x19_qi8_0/test_leaky_relu_14x19_qi8_0.json b/frameworks/tflite/operators/leaky_relu_14x19_qi8_0/test_leaky_relu_14x19_qi8_0.json new file mode 100644 index 000000000..c5ebec345 --- /dev/null +++ b/frameworks/tflite/operators/leaky_relu_14x19_qi8_0/test_leaky_relu_14x19_qi8_0.json @@ -0,0 +1,209 @@ +{ + 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: -1, + 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: -1, + output_zp: -17, + multiplier: [ + 1867636383 + ], + shift: [ + 31 + ], + scale32: true, + double_round: true, + per_channel: false + }, + inputs: [ + "TosaInput_0" + ], + outputs: [ + "layer_3" + ] + }, + { + op: "RESCALE", + attribute_type: "RescaleAttribute", + attribute: { + input_zp: -1, + output_zp: -17, + multiplier: [ + 1213664856 + ], + 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: [ + 14, + 19 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "TosaOutput_0", + shape: [ + 14, + 19 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "layer_0", + shape: [ + 1, + 1 + ], + type: "INT32", + data: [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + { + name: "layer_1", + shape: [ + 14, + 19 + ], + type: "INT32", + data: [ + + ] + }, + { + name: "layer_2", + shape: [ + 14, + 19 + ], + type: "BOOL", + data: [ + + ] + }, + { + name: "layer_3", + shape: [ + 14, + 19 + ], + type: "INT8", + data: [ + + ] + }, + { + name: "layer_4", + shape: [ + 14, + 19 + ], + type: "INT8", + data: [ + + ] + } + ], + inputs: [ + "TosaInput_0" + ], + outputs: [ + "TosaOutput_0" + ] + } + ] +} |