diff options
Diffstat (limited to 'frameworks/tflite/operators/leaky_relu_1x4x8x19_qi16_0')
5 files changed, 1860 insertions, 0 deletions
diff --git a/frameworks/tflite/operators/leaky_relu_1x4x8x19_qi16_0/Conformance-TosaOutput_0.json b/frameworks/tflite/operators/leaky_relu_1x4x8x19_qi16_0/Conformance-TosaOutput_0.json new file mode 100644 index 000000000..0ddcbe498 --- /dev/null +++ b/frameworks/tflite/operators/leaky_relu_1x4x8x19_qi16_0/Conformance-TosaOutput_0.json @@ -0,0 +1,687 @@ +{ + "type": "int32", + "data": [ + [ + [ + [ + 24784, + -124, + 29179, + -5099, + -5323, + -1253, + -5925, + 13533, + 22813, + 13822, + -1448, + 31158, + 15752, + 20275, + -3262, + -1632, + 29193, + 8590, + 27126 + ], + [ + -759, + 19342, + 19659, + 29929, + -5756, + -2628, + -1707, + -211, + 18281, + -984, + 22264, + -4552, + -4282, + 8350, + 707, + 1400, + -1741, + -3332, + 32480 + ], + [ + 11228, + -1274, + 12623, + 17629, + -676, + 29314, + -5037, + 31923, + 3377, + 8560, + -678, + -2825, + -5070, + 16784, + -5318, + 12673, + -1981, + -2285, + 6910 + ], + [ + -5426, + -212, + 23771, + 27250, + 7139, + -6403, + 27640, + 14602, + 8930, + -6407, + -3964, + 5083, + -3316, + -3905, + -5022, + -3477, + -99, + -3431, + -6180 + ], + [ + 26369, + -5916, + 5693, + 7079, + 9919, + -3959, + -2624, + 1369, + 318, + -1402, + 2710, + 2128, + -1024, + 31579, + -3522, + -1809, + -3606, + -5924, + 2419 + ], + [ + 30576, + 12386, + 459, + 175, + 1891, + -5878, + -4756, + -1492, + 7606, + -4797, + -5150, + -5333, + -650, + 14285, + -5359, + -2940, + -5705, + -980, + 12081 + ], + [ + -113, + -2618, + 18575, + 3025, + 11313, + -2633, + -1911, + -5214, + 4692, + 14086, + 9022, + 30971, + -6102, + -874, + 11889, + 25712, + 24921, + 22179, + 14600 + ], + [ + 15412, + 16727, + -624, + 10785, + 18434, + -3547, + 7379, + 32605, + -464, + -2415, + 27959, + 15674, + 8619, + -5076, + -3469, + -1597, + 2230, + -720, + -1942 + ] + ], + [ + [ + -5719, + 28258, + -5430, + 12309, + -5400, + -4547, + 19708, + 27181, + 14298, + -5578, + -46, + -649, + 7723, + 16720, + -2731, + -5929, + -718, + 27007, + 31736 + ], + [ + 22320, + 9098, + -1673, + -3020, + -2782, + 21668, + 9729, + -6179, + 24216, + -3954, + 9029, + 24217, + -4489, + 25380, + 13224, + 30163, + 26169, + -2869, + -585 + ], + [ + 1382, + -1854, + -6432, + 15603, + 13386, + 20450, + 3084, + -3496, + -2428, + 16595, + 24264, + 13253, + 15830, + -1356, + -6276, + -2004, + 11411, + -6388, + -5081 + ], + [ + -6010, + -547, + 20269, + -4800, + 23003, + -4317, + -6446, + 31506, + 26849, + 12510, + -1181, + -6189, + -3733, + -815, + 584, + 3791, + 22663, + -1424, + 29955 + ], + [ + 28797, + 12804, + 12630, + 26516, + -531, + 5167, + -5328, + -6327, + 3321, + -5722, + 3605, + -1391, + 23294, + 2765, + 13353, + 16660, + -5329, + -3304, + -5955 + ], + [ + -2245, + 28591, + 29442, + -5843, + 7198, + -3207, + 4670, + -6241, + -3310, + -134, + -5323, + -1, + 31898, + -2264, + -4327, + -6199, + -1759, + -5013, + -2287 + ], + [ + -5742, + 21128, + 19867, + -538, + 10841, + -4346, + -1782, + 17388, + -1571, + -794, + 29118, + 25394, + -3961, + 1677, + 3183, + 24537, + 22214, + -598, + 27885 + ], + [ + 16737, + 22897, + 17491, + -4842, + -4965, + 5133, + -1202, + 3206, + 3902, + 31724, + -3199, + -5946, + -4509, + 25946, + -3453, + 4737, + 29165, + 31904, + 6728 + ] + ], + [ + [ + 24001, + 29153, + 24053, + 2173, + 28836, + 22495, + -344, + -1480, + -5199, + 19626, + -5918, + 15520, + 5078, + -2588, + -285, + 26538, + -3821, + -846, + -2438 + ], + [ + 28661, + 11204, + 23588, + -5852, + -1505, + 25492, + -2899, + 21199, + -1069, + -290, + 12324, + -6085, + 15638, + -5836, + -6162, + -5604, + -3782, + 19452, + 21719 + ], + [ + 29881, + 29274, + 9376, + -492, + 6106, + -5405, + -5902, + 29056, + -1546, + 25145, + -3671, + -1517, + 25086, + 23999, + 8451, + -3946, + -2666, + -2308, + -5629 + ], + [ + -3939, + 18816, + 12356, + 7750, + -895, + -3302, + 867, + 22507, + 19947, + -3315, + 21860, + -3203, + 2239, + -793, + 19139, + -986, + -3392, + -4213, + 32758 + ], + [ + -639, + 29485, + 19683, + -2880, + -4821, + 32614, + 4469, + -4723, + -210, + -5731, + 21472, + -4156, + -4736, + -5183, + 3465, + 32767, + -2977, + 11520, + 30035 + ], + [ + -1023, + 32330, + 3168, + 6804, + 11014, + -3524, + 14458, + -4573, + -2272, + -4473, + 20163, + 4767, + -675, + 16297, + -844, + 16127, + 10432, + 9793, + -3866 + ], + [ + 59, + -1451, + -802, + -2517, + -6246, + -4426, + 739, + 6394, + 1823, + 1203, + -1165, + 8849, + -6090, + 6951, + -4503, + -1808, + 6701, + -1781, + -791 + ], + [ + -1302, + 4200, + 17144, + 8402, + 30709, + -1848, + -2183, + 4789, + 5480, + 7390, + 18709, + 30370, + 30115, + -6106, + 1735, + 1011, + 488, + 20570, + 7978 + ] + ], + [ + [ + -626, + -5769, + 25421, + 29968, + -6381, + -2362, + -2096, + 10579, + 108, + 12155, + -1823, + -3885, + 27890, + -2551, + -5607, + 20502, + -2429, + 32658, + -4741 + ], + [ + 39, + -1954, + -3107, + 16432, + 24352, + 13771, + 7351, + -4601, + 24974, + 27425, + 32765, + -6214, + 9607, + -3553, + -5572, + 18867, + 21248, + 2279, + 2883 + ], + [ + 11774, + 28858, + 1481, + -2326, + -2679, + -6359, + -3464, + 5076, + -637, + 23687, + 23443, + -1772, + 18787, + -701, + -3488, + -3044, + -469, + 11004, + -1372 + ], + [ + -5705, + 3477, + -5788, + 19264, + 32197, + -312, + -6433, + 7416, + -2607, + -2523, + 29675, + 8923, + 14858, + -4193, + 8514, + 841, + -1657, + -1249, + 9921 + ], + [ + 26163, + 8702, + -6272, + 17060, + -1514, + 6098, + 23695, + -2824, + 2985, + -4035, + 14844, + 3176, + -5262, + 26191, + 17621, + -5631, + 15593, + 29540, + 3113 + ], + [ + -3352, + -80, + -3448, + -2660, + -1621, + -1812, + 9251, + 26927, + 29457, + 20910, + -2805, + -4300, + -492, + 3817, + 2475, + 7948, + 22602, + -6301, + 31666 + ], + [ + 8096, + 32096, + 11596, + -343, + 11560, + 8765, + -2406, + -4835, + -1775, + 32402, + 24412, + 5733, + -3738, + -1922, + -4897, + -4864, + 4265, + 16824, + 18241 + ], + [ + 3614, + -4074, + 5804, + -6150, + -3423, + 13545, + 21870, + -2540, + -3326, + -2445, + 308, + -6155, + 23002, + -3994, + 25776, + -1304, + 1305, + -3458, + -3714 + ] + ] + ] + ] +}
\ No newline at end of file diff --git a/frameworks/tflite/operators/leaky_relu_1x4x8x19_qi16_0/desc.json b/frameworks/tflite/operators/leaky_relu_1x4x8x19_qi16_0/desc.json new file mode 100644 index 000000000..296356e92 --- /dev/null +++ b/frameworks/tflite/operators/leaky_relu_1x4x8x19_qi16_0/desc.json @@ -0,0 +1,19 @@ +{ + "tosa_file": "test_leaky_relu_1x4x8x19_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_1x4x8x19_qi16_0/model-tflite.json b/frameworks/tflite/operators/leaky_relu_1x4x8x19_qi16_0/model-tflite.json new file mode 100644 index 000000000..d5451d15f --- /dev/null +++ b/frameworks/tflite/operators/leaky_relu_1x4x8x19_qi16_0/model-tflite.json @@ -0,0 +1,244 @@ +{ + version: 3, + operator_codes: [ + { + deprecated_builtin_code: 98, + version: 2, + builtin_code: "LEAKY_RELU" + } + ], + subgraphs: [ + { + tensors: [ + { + shape: [ + 1, + 4, + 8, + 19 + ], + type: "INT16", + buffer: 1, + name: "serving_default_placeholder_0:0", + quantization: { + min: [ + -1.999989 + ], + max: [ + 1.999985 + ], + scale: [ + 0.000061 + ], + zero_point: [ + 0 + ], + details_type: "NONE", + quantized_dimension: 0 + }, + is_variable: false + }, + { + shape: [ + 1, + 4, + 8, + 19 + ], + type: "INT16", + buffer: 2, + name: "PartitionedCall:0", + quantization: { + min: [ + -0.393418 + ], + max: [ + 1.999985 + ], + 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.19671 + }, + 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_1x4x8x19_qi16_0/placeholder_0.json b/frameworks/tflite/operators/leaky_relu_1x4x8x19_qi16_0/placeholder_0.json new file mode 100644 index 000000000..b5ed94fff --- /dev/null +++ b/frameworks/tflite/operators/leaky_relu_1x4x8x19_qi16_0/placeholder_0.json @@ -0,0 +1,687 @@ +{ + "type": "int32", + "data": [ + [ + [ + [ + 24784, + -629, + 29179, + -25922, + -27059, + -6368, + -30120, + 13533, + 22813, + 13822, + -7361, + 31158, + 15752, + 20275, + -16584, + -8295, + 29193, + 8590, + 27126 + ], + [ + -3858, + 19342, + 19659, + 29929, + -29259, + -13357, + -8678, + -1071, + 18281, + -5000, + 22264, + -23141, + -21768, + 8350, + 707, + 1400, + -8852, + -16940, + 32480 + ], + [ + 11228, + -6477, + 12623, + 17629, + -3436, + 29314, + -25608, + 31923, + 3377, + 8560, + -3445, + -14363, + -25775, + 16784, + -27034, + 12673, + -10071, + -11613, + 6910 + ], + [ + -27582, + -1077, + 23771, + 27250, + 7139, + -32550, + 27640, + 14602, + 8930, + -32568, + -20153, + 5083, + -16856, + -19852, + -25527, + -17676, + -502, + -17443, + -31415 + ], + [ + 26369, + -30073, + 5693, + 7079, + 9919, + -20123, + -13340, + 1369, + 318, + -7126, + 2710, + 2128, + -5204, + 31579, + -17903, + -9194, + -18330, + -30113, + 2419 + ], + [ + 30576, + 12386, + 459, + 175, + 1891, + -29882, + -24175, + -7585, + 7606, + -24387, + -26179, + -27109, + -3305, + 14285, + -27241, + -14944, + -28999, + -4982, + 12081 + ], + [ + -575, + -13308, + 18575, + 3025, + 11313, + -13385, + -9714, + -26503, + 4692, + 14086, + 9022, + 30971, + -31019, + -4442, + 11889, + 25712, + 24921, + 22179, + 14600 + ], + [ + 15412, + 16727, + -3173, + 10785, + 18434, + -18031, + 7379, + 32605, + -2359, + -12277, + 27959, + 15674, + 8619, + -25806, + -17633, + -8117, + 2230, + -3662, + -9870 + ] + ], + [ + [ + -29072, + 28258, + -27601, + 12309, + -27449, + -23117, + 19708, + 27181, + 14298, + -28355, + -234, + -3301, + 7723, + 16720, + -13882, + -30138, + -3649, + 27007, + 31736 + ], + [ + 22320, + 9098, + -8503, + -15354, + -14144, + 21668, + 9729, + -31413, + 24216, + -20102, + 9029, + 24217, + -22818, + 25380, + 13224, + 30163, + 26169, + -14586, + -2972 + ], + [ + 1382, + -9424, + -32697, + 15603, + 13386, + 20450, + 3084, + -17771, + -12341, + 16595, + 24264, + 13253, + 15830, + -6891, + -31903, + -10187, + 11411, + -32476, + -25829 + ], + [ + -30550, + -2780, + 20269, + -24402, + 23003, + -21943, + -32768, + 31506, + 26849, + 12510, + -6004, + -31463, + -18974, + -4143, + 584, + 3791, + 22663, + -7240, + 29955 + ], + [ + 28797, + 12804, + 12630, + 26516, + -2697, + 5167, + -27084, + -32162, + 3321, + -29086, + 3605, + -7069, + 23294, + 2765, + 13353, + 16660, + -27089, + -16794, + -30273 + ], + [ + -11412, + 28591, + 29442, + -29704, + 7198, + -16305, + 4670, + -31727, + -16828, + -681, + -27061, + -3, + 31898, + -11508, + -21997, + -31512, + -8939, + -25481, + -11626 + ], + [ + -29187, + 21128, + 19867, + -2734, + 10841, + -22093, + -9056, + 17388, + -7988, + -4035, + 29118, + 25394, + -20135, + 1677, + 3183, + 24537, + 22214, + -3037, + 27885 + ], + [ + 16737, + 22897, + 17491, + -24614, + -25240, + 5133, + -6110, + 3206, + 3902, + 31724, + -16264, + -30226, + -22922, + 25946, + -17552, + 4737, + 29165, + 31904, + 6728 + ] + ], + [ + [ + 24001, + 29153, + 24053, + 2173, + 28836, + 22495, + -1748, + -7523, + -26430, + 19626, + -30082, + 15520, + 5078, + -13154, + -1446, + 26538, + -19422, + -4299, + -12394 + ], + [ + 28661, + 11204, + 23588, + -29748, + -7652, + 25492, + -14735, + 21199, + -5434, + -1473, + 12324, + -30935, + 15638, + -29669, + -31323, + -28487, + -19228, + 19452, + 21719 + ], + [ + 29881, + 29274, + 9376, + -2502, + 6106, + -27478, + -30002, + 29056, + -7859, + 25145, + -18663, + -7710, + 25086, + 23999, + 8451, + -20059, + -13554, + -11730, + -28616 + ], + [ + -20024, + 18816, + 12356, + 7750, + -4548, + -16786, + 867, + 22507, + 19947, + -16853, + 21860, + -16282, + 2239, + -4031, + 19139, + -5013, + -17241, + -21419, + 32758 + ], + [ + -3249, + 29485, + 19683, + -14642, + -24507, + 32614, + 4469, + -24007, + -1067, + -29133, + 21472, + -21125, + -24077, + -26349, + 3465, + 32767, + -15131, + 11520, + 30035 + ], + [ + -5199, + 32330, + 3168, + 6804, + 11014, + -17914, + 14458, + -23246, + -11547, + -22739, + 20163, + 4767, + -3431, + 16297, + -4289, + 16127, + 10432, + 9793, + -19651 + ], + [ + 59, + -7376, + -4074, + -12793, + -31750, + -22498, + 739, + 6394, + 1823, + 1203, + -5921, + 8849, + -30957, + 6951, + -22892, + -9193, + 6701, + -9051, + -4018 + ], + [ + -6620, + 4200, + 17144, + 8402, + 30709, + -9395, + -11098, + 4789, + 5480, + 7390, + 18709, + 30370, + 30115, + -31041, + 1735, + 1011, + 488, + 20570, + 7978 + ] + ], + [ + [ + -3180, + -29327, + 25421, + 29968, + -32436, + -12007, + -10655, + 10579, + 108, + 12155, + -9267, + -19747, + 27890, + -12969, + -28501, + 20502, + -12347, + 32658, + -24099 + ], + [ + 39, + -9934, + -15794, + 16432, + 24352, + 13771, + 7351, + -23391, + 24974, + 27425, + 32765, + -31591, + 9607, + -18060, + -28326, + 18867, + 21248, + 2279, + 2883 + ], + [ + 11774, + 28858, + 1481, + -11826, + -13616, + -32327, + -17611, + 5076, + -3237, + 23687, + 23443, + -9010, + 18787, + -3564, + -17730, + -15476, + -2385, + 11004, + -6974 + ], + [ + -29000, + 3477, + -29425, + 19264, + 32197, + -1583, + -32704, + 7416, + -13250, + -12823, + 29675, + 8923, + 14858, + -21316, + 8514, + 841, + -8423, + -6351, + 9921 + ], + [ + 26163, + 8702, + -31886, + 17060, + -7695, + 6098, + 23695, + -14357, + 2985, + -20513, + 14844, + 3176, + -26747, + 26191, + 17621, + -28625, + 15593, + 29540, + 3113 + ], + [ + -17038, + -405, + -17530, + -13523, + -8240, + -9213, + 9251, + 26927, + 29457, + 20910, + -14257, + -21859, + -2502, + 3817, + 2475, + 7948, + 22602, + -32029, + 31666 + ], + [ + 8096, + 32096, + 11596, + -1742, + 11560, + 8765, + -12231, + -24578, + -9021, + 32402, + 24412, + 5733, + -19000, + -9770, + -24893, + -24727, + 4265, + 16824, + 18241 + ], + [ + 3614, + -20712, + 5804, + -31264, + -17400, + 13545, + 21870, + -12912, + -16909, + -12431, + 308, + -31289, + 23002, + -20304, + 25776, + -6626, + 1305, + -17578, + -18880 + ] + ] + ] + ] +}
\ No newline at end of file diff --git a/frameworks/tflite/operators/leaky_relu_1x4x8x19_qi16_0/test_leaky_relu_1x4x8x19_qi16_0.json b/frameworks/tflite/operators/leaky_relu_1x4x8x19_qi16_0/test_leaky_relu_1x4x8x19_qi16_0.json new file mode 100644 index 000000000..ed3ea0054 --- /dev/null +++ b/frameworks/tflite/operators/leaky_relu_1x4x8x19_qi16_0/test_leaky_relu_1x4x8x19_qi16_0.json @@ -0,0 +1,223 @@ +{ + 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: [ + 1689728900 + ], + shift: [ + 33 + ], + 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: [ + 1073743616 + ], + 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, + 4, + 8, + 19 + ], + type: "INT16", + data: [ + + ] + }, + { + name: "TosaOutput_0", + shape: [ + 1, + 4, + 8, + 19 + ], + type: "INT16", + data: [ + + ] + }, + { + name: "layer_0", + shape: [ + 1, + 1, + 1, + 1 + ], + type: "INT32", + data: [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + { + name: "layer_1", + shape: [ + 1, + 4, + 8, + 19 + ], + type: "INT32", + data: [ + + ] + }, + { + name: "layer_2", + shape: [ + 1, + 4, + 8, + 19 + ], + type: "BOOL", + data: [ + + ] + }, + { + name: "layer_3", + shape: [ + 1, + 4, + 8, + 19 + ], + type: "INT16", + data: [ + + ] + }, + { + name: "layer_4", + shape: [ + 1, + 4, + 8, + 19 + ], + type: "INT16", + data: [ + + ] + } + ], + inputs: [ + "TosaInput_0" + ], + outputs: [ + "TosaOutput_0" + ] + } + ] +} |