From e2ac2482baa202af7fe759a6b58d9bdd75168b6a Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Fri, 17 Jun 2022 13:06:00 +0100 Subject: Updating framework tests for v0.30.0 release Signed-off-by: Jeremy Johnson Change-Id: I216edc7080a64aa481deb192253295a006fa4373 --- .../tanh_14x19_qi8/Conformance-TosaOutput_0.json | 299 +++++++++++ .../tflite/operators/tanh_14x19_qi8/desc.json | 19 + .../operators/tanh_14x19_qi8/model-tflite.json | 225 ++++++++ .../operators/tanh_14x19_qi8/placeholder_0.json | 299 +++++++++++ .../tanh_14x19_qi8/test_tanh_14x19_qi8.json | 590 +++++++++++++++++++++ 5 files changed, 1432 insertions(+) create mode 100644 frameworks/tflite/operators/tanh_14x19_qi8/Conformance-TosaOutput_0.json create mode 100644 frameworks/tflite/operators/tanh_14x19_qi8/desc.json create mode 100644 frameworks/tflite/operators/tanh_14x19_qi8/model-tflite.json create mode 100644 frameworks/tflite/operators/tanh_14x19_qi8/placeholder_0.json create mode 100644 frameworks/tflite/operators/tanh_14x19_qi8/test_tanh_14x19_qi8.json (limited to 'frameworks/tflite/operators/tanh_14x19_qi8') diff --git a/frameworks/tflite/operators/tanh_14x19_qi8/Conformance-TosaOutput_0.json b/frameworks/tflite/operators/tanh_14x19_qi8/Conformance-TosaOutput_0.json new file mode 100644 index 000000000..bf8d51382 --- /dev/null +++ b/frameworks/tflite/operators/tanh_14x19_qi8/Conformance-TosaOutput_0.json @@ -0,0 +1,299 @@ +{ + "type": "int32", + "data": [ + [ + 86, + 121, + -80, + 110, + 68, + 120, + -16, + 123, + -46, + -123, + -117, + 112, + -33, + -14, + 116, + -44, + -111, + 44, + 121 + ], + [ + -99, + 103, + 106, + -94, + 48, + -12, + -73, + -104, + -116, + 28, + -116, + -53, + -104, + -65, + 53, + -117, + 100, + -122, + 65 + ], + [ + -2, + 22, + -117, + -8, + 116, + 123, + -71, + 123, + -100, + -115, + 88, + -42, + -4, + 97, + -116, + 123, + -42, + 123, + 82 + ], + [ + -80, + -117, + 123, + -106, + -120, + 41, + -115, + -6, + 67, + -114, + -68, + 95, + -75, + -59, + -49, + 4, + 28, + 65, + 119 + ], + [ + -77, + -121, + 33, + -120, + 48, + -122, + -83, + -30, + -119, + -74, + 99, + 65, + 102, + 118, + 67, + -122, + -115, + 121, + -67 + ], + [ + -82, + 46, + 74, + 78, + -71, + 116, + 49, + -117, + -101, + -117, + -77, + -89, + 106, + -84, + -113, + 24, + 106, + -121, + -102 + ], + [ + 121, + -118, + -31, + -112, + 12, + 93, + -120, + 12, + 70, + -123, + 77, + -123, + -111, + 99, + 102, + 84, + -41, + 109, + -111 + ], + [ + 121, + 39, + -114, + 37, + -56, + -118, + -112, + 109, + -62, + -123, + -91, + 122, + -112, + -97, + -97, + -118, + 123, + 114, + -20 + ], + [ + 10, + -117, + -111, + 97, + -64, + 111, + -44, + -74, + 0, + 119, + -117, + 105, + 2, + -108, + 109, + -115, + 85, + 10, + -6 + ], + [ + -97, + -78, + -106, + 122, + -75, + -49, + -64, + 24, + -119, + -39, + -109, + -121, + 104, + -123, + 105, + 93, + 117, + 103, + 84 + ], + [ + -99, + 123, + -113, + 16, + -14, + -102, + 4, + 67, + -118, + 39, + 8, + 112, + -119, + -114, + 44, + -102, + 16, + 108, + -33 + ], + [ + 120, + -104, + 103, + -112, + -79, + -109, + 107, + 122, + 0, + 123, + -119, + -31, + 100, + -28, + 99, + 119, + -122, + -117, + -74 + ], + [ + 67, + -82, + -116, + 62, + 33, + 109, + 118, + 68, + -48, + -53, + 44, + 109, + -109, + 121, + -96, + 119, + -85, + 101, + -104 + ], + [ + -110, + 117, + -26, + -77, + -120, + -84, + 33, + -64, + 8, + -56, + 78, + 91, + -44, + 120, + 115, + 12, + -106, + -100, + 105 + ] + ] +} \ No newline at end of file diff --git a/frameworks/tflite/operators/tanh_14x19_qi8/desc.json b/frameworks/tflite/operators/tanh_14x19_qi8/desc.json new file mode 100644 index 000000000..e443f00cf --- /dev/null +++ b/frameworks/tflite/operators/tanh_14x19_qi8/desc.json @@ -0,0 +1,19 @@ +{ + "tosa_file": "test_tanh_14x19_qi8.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/tanh_14x19_qi8/model-tflite.json b/frameworks/tflite/operators/tanh_14x19_qi8/model-tflite.json new file mode 100644 index 000000000..05b112172 --- /dev/null +++ b/frameworks/tflite/operators/tanh_14x19_qi8/model-tflite.json @@ -0,0 +1,225 @@ +{ + version: 3, + operator_codes: [ + { + deprecated_builtin_code: 28, + version: 2, + builtin_code: "TANH" + } + ], + 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.007812 + ], + 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: "NONE", + custom_options_format: "FLEXBUFFERS" + } + ], + name: "main" + } + ], + description: "MLIR Converted.", + buffers: [ + { + }, + { + }, + { + }, + { + 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, + 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/tanh_14x19_qi8/placeholder_0.json b/frameworks/tflite/operators/tanh_14x19_qi8/placeholder_0.json new file mode 100644 index 000000000..70dcc6c4e --- /dev/null +++ b/frameworks/tflite/operators/tanh_14x19_qi8/placeholder_0.json @@ -0,0 +1,299 @@ +{ + "type": "int32", + "data": [ + [ + 51, + 115, + -48, + 82, + 37, + 107, + -9, + 126, + -25, + -127, + -100, + 86, + -18, + -8, + 96, + -24, + -85, + 22, + 111 + ], + [ + -67, + 70, + 74, + -61, + 24, + -7, + -42, + -74, + -97, + 13, + -96, + -29, + -74, + -37, + 27, + -101, + 66, + -119, + 35 + ], + [ + -2, + 10, + -101, + -5, + 95, + 127, + -41, + 121, + -68, + -94, + 53, + -23, + -3, + 62, + -98, + 126, + -23, + 123, + 47 + ], + [ + -48, + -101, + 125, + -77, + -109, + 20, + -95, + -4, + 36, + -92, + -39, + 60, + -44, + -33, + -27, + 1, + 13, + 35, + 103 + ], + [ + -45, + -117, + 16, + -110, + 24, + -120, + -50, + -16, + -107, + -43, + 65, + 35, + 68, + 100, + 36, + -122, + -95, + 112, + -38 + ], + [ + -49, + 23, + 41, + 44, + -41, + 94, + 25, + -99, + -69, + -100, + -45, + -56, + 75, + -51, + -90, + 11, + 74, + -116, + -71 + ], + [ + 114, + -102, + -17, + -88, + 5, + 58, + -111, + 5, + 38, + -128, + 43, + -126, + -86, + 64, + 68, + 49, + -22, + 79, + -86 + ], + [ + 113, + 19, + -91, + 18, + -31, + -102, + -87, + 79, + -35, + -123, + -58, + 120, + -87, + -64, + -64, + -104, + 122, + 89, + -11 + ], + [ + 4, + -100, + -86, + 62, + -36, + 84, + -24, + -43, + -1, + 104, + -99, + 73, + 0, + -79, + 80, + -94, + 50, + 4, + -4 + ], + [ + -64, + -46, + -76, + 117, + -44, + -27, + -36, + 11, + -107, + -21, + -81, + -115, + 72, + -128, + 73, + 58, + 97, + 70, + 49 + ], + [ + -67, + 126, + -90, + 7, + -8, + -70, + 1, + 36, + -104, + 19, + 3, + 85, + -105, + -91, + 22, + -70, + 7, + 78, + -18 + ], + [ + 110, + -73, + 70, + -88, + -47, + -81, + 76, + 120, + -1, + 123, + -105, + -17, + 66, + -15, + 64, + 104, + -121, + -101, + -43 + ], + [ + 36, + -49, + -96, + 33, + 16, + 80, + 102, + 37, + -26, + -29, + 22, + 79, + -81, + 115, + -63, + 104, + -52, + 67, + -73 + ], + [ + -83, + 99, + -14, + -45, + -111, + -51, + 16, + -36, + 3, + -31, + 44, + 56, + -24, + 107, + 92, + 5, + -76, + -68, + 73 + ] + ] +} \ No newline at end of file diff --git a/frameworks/tflite/operators/tanh_14x19_qi8/test_tanh_14x19_qi8.json b/frameworks/tflite/operators/tanh_14x19_qi8/test_tanh_14x19_qi8.json new file mode 100644 index 000000000..0e2066ea2 --- /dev/null +++ b/frameworks/tflite/operators/tanh_14x19_qi8/test_tanh_14x19_qi8.json @@ -0,0 +1,590 @@ +{ + version: { + _major: 0, + _minor: 30, + _patch: 0, + _draft: false + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "CONST", + attribute_type: "NONE", + inputs: [ + + ], + outputs: [ + "layer_0" + ] + }, + { + op: "TABLE", + attribute_type: "TableAttribute", + attribute: { + table: [ + -123, + -123, + -123, + -123, + -123, + -123, + -122, + -122, + -122, + -122, + -122, + -121, + -121, + -121, + -121, + -121, + -120, + -120, + -120, + -120, + -119, + -119, + -119, + -119, + -118, + -118, + -118, + -117, + -117, + -117, + -116, + -116, + -116, + -115, + -115, + -114, + -114, + -114, + -113, + -113, + -112, + -112, + -111, + -111, + -110, + -110, + -109, + -109, + -108, + -108, + -107, + -106, + -106, + -105, + -104, + -104, + -103, + -102, + -102, + -101, + -100, + -99, + -99, + -98, + -97, + -96, + -95, + -94, + -93, + -92, + -91, + -90, + -89, + -88, + -87, + -86, + -85, + -84, + -83, + -82, + -80, + -79, + -78, + -77, + -75, + -74, + -73, + -71, + -70, + -68, + -67, + -65, + -64, + -62, + -61, + -59, + -58, + -56, + -55, + -53, + -51, + -49, + -48, + -46, + -44, + -42, + -41, + -39, + -37, + -35, + -33, + -31, + -30, + -28, + -26, + -24, + -22, + -20, + -18, + -16, + -14, + -12, + -10, + -8, + -6, + -4, + -2, + 0, + 2, + 4, + 6, + 8, + 10, + 12, + 14, + 16, + 18, + 20, + 22, + 24, + 26, + 28, + 30, + 31, + 33, + 35, + 37, + 39, + 41, + 42, + 44, + 46, + 48, + 49, + 51, + 53, + 55, + 56, + 58, + 59, + 61, + 62, + 64, + 65, + 67, + 68, + 70, + 71, + 73, + 74, + 75, + 77, + 78, + 79, + 80, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 99, + 100, + 101, + 102, + 102, + 103, + 104, + 104, + 105, + 106, + 106, + 107, + 108, + 108, + 109, + 109, + 110, + 110, + 111, + 111, + 112, + 112, + 113, + 113, + 114, + 114, + 114, + 115, + 115, + 116, + 116, + 116, + 117, + 117, + 117, + 118, + 118, + 118, + 119, + 119, + 119, + 119, + 120, + 120, + 120, + 120, + 121, + 121, + 121, + 121, + 121, + 122, + 122, + 122, + 122, + 122, + 123, + 123, + 123, + 123, + 123, + 123, + 123 + ] + }, + inputs: [ + "TosaInput_0" + ], + 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: [ + 256 + ], + type: "INT8", + data: [ + 133, + 133, + 133, + 133, + 133, + 133, + 134, + 134, + 134, + 134, + 134, + 135, + 135, + 135, + 135, + 135, + 136, + 136, + 136, + 136, + 137, + 137, + 137, + 137, + 138, + 138, + 138, + 139, + 139, + 139, + 140, + 140, + 140, + 141, + 141, + 142, + 142, + 142, + 143, + 143, + 144, + 144, + 145, + 145, + 146, + 146, + 147, + 147, + 148, + 148, + 149, + 150, + 150, + 151, + 152, + 152, + 153, + 154, + 154, + 155, + 156, + 157, + 157, + 158, + 159, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167, + 168, + 169, + 170, + 171, + 172, + 173, + 174, + 176, + 177, + 178, + 179, + 181, + 182, + 183, + 185, + 186, + 188, + 189, + 191, + 192, + 194, + 195, + 197, + 198, + 200, + 201, + 203, + 205, + 207, + 208, + 210, + 212, + 214, + 215, + 217, + 219, + 221, + 223, + 225, + 226, + 228, + 230, + 232, + 234, + 236, + 238, + 240, + 242, + 244, + 246, + 248, + 250, + 252, + 254, + 0, + 2, + 4, + 6, + 8, + 10, + 12, + 14, + 16, + 18, + 20, + 22, + 24, + 26, + 28, + 30, + 31, + 33, + 35, + 37, + 39, + 41, + 42, + 44, + 46, + 48, + 49, + 51, + 53, + 55, + 56, + 58, + 59, + 61, + 62, + 64, + 65, + 67, + 68, + 70, + 71, + 73, + 74, + 75, + 77, + 78, + 79, + 80, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 99, + 100, + 101, + 102, + 102, + 103, + 104, + 104, + 105, + 106, + 106, + 107, + 108, + 108, + 109, + 109, + 110, + 110, + 111, + 111, + 112, + 112, + 113, + 113, + 114, + 114, + 114, + 115, + 115, + 116, + 116, + 116, + 117, + 117, + 117, + 118, + 118, + 118, + 119, + 119, + 119, + 119, + 120, + 120, + 120, + 120, + 121, + 121, + 121, + 121, + 121, + 122, + 122, + 122, + 122, + 122, + 123, + 123, + 123, + 123, + 123, + 123, + 123 + ] + } + ], + inputs: [ + "TosaInput_0" + ], + outputs: [ + "TosaOutput_0" + ] + } + ] +} -- cgit v1.2.1