shithub: opus

ref: e12df85a62598c7acbee84f13602f82eb6d39734
dir: /src/mlp_data.c/

View raw version
/*This file is automatically generated from a Keras model*/

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#include "mlp.h"

static const opus_int16 layer0_weights[400] = {
   -249, 690, -57, 358, -560, -144, 186, 75,
   -804, -1176, -433, -78, 125, -1141, -857, -2,
   1892, 91, 976, 1112, -1636, -73, -1740, -1604,
   2012, -1043, 828, 230, 8698, -92, -665, -747,
   1530, -1315, 2317, 697, 2885, -1399, 2661, 483,
   -1628, 502, -592, 299, 3910, -781, 2738, 1338,
   -1562, -149, 3468, 1448, 3057, 1202, 2098, 2777,
   -1540, -3018, -249, 4656, 2508, 373, 2412, -776,
   7160, -519, -917, -155, -1311, -1239, -637, -1245,
   -1450, 1963, 3297, 1489, 1582, -123, -549, 1004,
   -4085, 8792, -2145, 220, 2741, 624, -3560, 106,
   -2476, 661, 1601, 2177, -1793, -623, 3349, 1959,
   2777, -4635, 451, -996, -3260, -665, 1103, 201,
   -2566, 3033, 1065, 1866, 989, -102, -1328, 126,
   1, 4365, 82, 2355, -1011, -107, -5323, -1758,
   -691, 1744, 683, -2732, 1309, -1135, -726, 1071,
   9423, 1120, -705, -188, -200, -2668, -750, -1839,
   793, 718, -1011, 222, 567, 31, -1520, 3142,
   -5491, -3549, -2718, -276, 2078, -706, -779, -2304,
   -2983, -660, 1664, -999, -3297, -1200, 1017, -499,
   -764, 3215, -720, 255, 1539, -1142, -3604, -351,
   -982, 846, 4069, 481, 5673, -1184, -2883, -1387,
   519, -1617, 315, 1875, -119, 2383, 1141, 1583,
   1013, -531, 349, 121, -139, 327, 531, 611,
   853, 1118, 2013, -294, -1150, 693, 531, 583,
   -1506, 224, -818, 655, 1981, 1056, -2327, -1457,
   -2846, 3779, 1230, -2587, -191, 1647, -3484, -3450,
   -3384, -93, -1028, 825, 868, 38, 557, -125,
   1830, 1981, 1063, 9906, -455, 172, -1788, 4417,
   472, -1398, -4638, 999, -6158, 1943, 4703, -2986,
   -938, 3053, -631, -384, 848, -3909, 1352, -2362,
   -2306, 515, 2385, -2373, -1642, 582, -262, -571,
   8, 1615, -2501, 1225, -660, -857, -522, 2419,
   654, -1137, 67, -890, 83, 23, 2166, 524,
   -978, 5330, 1237, 1163, -2251, -142, -2331, 3034,
   395, -1799, 944, 1978, -2788, 1324, 3271, -4643,
   -1313, -2472, 1296, -2316, -1803, -10224, -8577, 8271,
   -1920, -3366, -1704, 3250, -2514, 11995, 6655, 4298,
   1046, 483, 651, -901, -1417, 804, 396, -2617,
   1000, 2265, 5354, -1050, 2505, 41, 3928, 1878,
   -21057, 12783, 32767, -8139, -32768, 1106, -12076, -26511,
   -3484, 24604, 8938, 22944, -9490, -6208, -22142, 23250,
   -12708, -299, 14432, -2311, -11941, -797, -3287, -4744,
   -10758, 10226, -851, 8565, 4104, -4002, 4456, 12642,
   1685, -7093, -997, 16081, 814, -5316, -13491, 12766,
   -1637, -213, 7271, -3037, -6772, 3053, -12425, -6955,
   12553, 7635, -32768, -18611, 22929, 3056, 11196, 5202,
   31582, 5741, -22206, 6145, -673, -25488, -7005, -16479,
   10693, -11369, -10848, -1895, 8051, 7360, 1067, -220,
   6643, 17077, -12356, 3288, 4619, 9751, -656, -1217
};

static const opus_int16 layer0_bias[16] = {
   -164, 2802, -2100, 410, 4003, -888, 3010, -644,
   4499, -121, 3753, -1606, -4855, -1828, -682, -79
};

static const opus_int16 layer1_weights[576] = {
   543, 2150, 143, 1450, 7898, -3201, -2648, -4311,
   7028, -2608, 1844, 126, -858, 4572, -347, -11298,
   11315, -4344, 1858, -5906, -5962, 2847, -3894, -1496,
   5309, -651, -3143, -3141, 429, -679, -1524, -1966,
   -1175, 2917, 97, -1094, -3186, 4346, 832, 3726,
   5452, 1371, 505, -1282, -435, 3438, 691, -2692,
   -872, -1332, 3722, 841, -1081, 2414, -1275, 2131,
   -7351, -962, -2295, 1141, 2810, -839, 1444, -1005,
   3900, 1160, 1070, -801, -1856, 2152, -79, 122,
   -2790, -5641, -2021, -4328, 992, 664, 1078, 4919,
   -5314, -665, -4650, -4734, 3417, -300, -3038, 6124,
   -1161, -1786, -2922, 10536, 2726, 1200, -1840, 3752,
   -3420, 1710, 2414, -2704, 918, 518, 1057, 1837,
   3098, 1665, 2780, 1636, -3883, -150, -3216, -5393,
   1819, -3555, -3063, -3252, -2948, 8249, -3856, -3981,
   406, -5407, -2135, 3006, -1920, -694, 1349, 2321,
   -3114, -1262, -1296, -406, -712, 185, 1802, 62,
   -1559, -62, 2270, -195, -1043, 2092, -3543, 1833,
   1193, 1880, 3076, 6353, 1671, -634, 3180, -21,
   -612, 800, 6405, 2825, 1187, 583, -2961, -6221,
   -1035, -1686, 3563, 7102, 7122, 3946, 3264, -2081,
   574, -2400, 22, 112, 1073, -2386, -3224, -3508,
   -1347, -3521, 992, -2582, -7175, 1241, -1368, -6035,
   -2555, -6012, -11198, -2492, -4061, -7604, -3521, -5613,
   -3823, -6300, 6377, -6267, -3568, -1121, -2755, -6177,
   2627, -2735, -4447, -2327, -577, 824, 2159, -1206,
   47, -3988, -3918, -1073, -540, -595, 2777, -1114,
   985, 407, -1907, -3836, -7385, 9579, 120, 4717,
   -1921, -5036, 1388, -2388, -1476, 2967, 2905, 3306,
   -631, -1730, 4974, 51, -1131, -3307, -1678, -354,
   2481, -1133, 997, -1374, 2350, 1945, -274, -2238,
   -1642, 869, 139, -2974, -1210, -362, 3461, -3912,
   -7937, -1246, 5396, -6235, -6650, -9613, -5547, 2541,
   -330, -2843, -3100, -227, 1859, 3371, 5094, 4045,
   -8379, -2052, 363, 2005, 2248, 772, -872, 1686,
   -3885, 1413, 704, -379, -1130, -703, -3406, 179,
   2895, 11203, -1085, -2496, -10569, 877, 2982, 4245,
   7216, -3703, 2468, 1361, -66, 236, -958, -3101,
   2424, -2604, 1854, -5674, 2951, -1898, 3078, 20,
   1217, -3799, 802, -458, -1522, -3094, -2448, -2067,
   658, -3163, 1976, -1577, -8063, 380, -1328, 5963,
   -7396, -5218, -7379, -9166, -616, -1731, 2383, 3735,
   10889, -5348, 1128, -6396, -4613, -1547, 2619, -2967,
   2229, 3582, -156, -3970, -2606, -3270, 2515, -568,
   -2800, -3145, -2641, 2530, 1079, 3184, -814, -1762,
   2128, -6864, 5163, -3934, 2410, 2574, 1568, -5281,
   -1199, -2462, 713, -1456, 4651, -8439, -2239, -4620,
   316, 1772, 89, -2021, -658, -9442, -1249, -195,
   -1311, -1129, 1734, 1991, 421, 579, 833, 2917,
   1025, -3243, -2909, 1950, -2845, 898, -1011, 5505,
   4705, 2989, -4835, -939, 3768, -1641, 10910, 34,
   -938, 1839, 4835, -2526, -1699, -9939, 4135, 2330,
   746, -2420, 898, 588, -3496, -2904, -3896, 639,
   1046, 440, 1254, 2025, 2089, 3468, 697, 888,
   4553, 2152, 4522, 2916, 3432, 4376, -717, -8019,
   8063, -1602, -5389, -1549, 4541, 412, 413, -5267,
   5859, 147, 2962, 6490, -2794, 1448, -1348, -815,
   -1089, -934, 1485, -1420, 827, -2345, -403, 2359,
   -1298, 238, 1127, 1984, 3667, -6776, 1191, -1049,
   6323, 3381, 4703, 5709, 1693, -3948, -4716, 5403,
   -3221, -1108, 478, -4250, 2643, 1458, -4684, -5321,
   -1610, -1048, 4730, 1253, 1975, 1904, 2112, -1591,
   -5355, 1317, -2438, 113, -1285, 4023, -1129, 3054,
   -5091, 1484, -742, -1258, 1044, -1035, -442, 789,
   1525, 10987, -897, 2773, 357, 4770, 1942, 524,
   1315, 3575, -656, 1394, -14, -4854, 2764, 5455,
   1649, 1005, -1792, 1558, -1490, 3447, -1066, 662,
   -974, -870, 1611, 2541, -2744, -1782, -1456, -820,
   261, -1722, -3869, -9244, 4372, 4013, -2733, -13592,
   5458, -6824, -634, 707, 742, 4432, -3446, -4348,
   916, 505, 3267, -9216, -3492, 2121, -4923, 4175,
   -119, -1497, 1421, 3593, 1398, 273, 2351, 404
};

static const opus_int16 layer1_recur_weights[432] = {
   381, -8053, -3581, -73, 5728, -10914, -4592, -14935,
   2526, -3600, 3424, 5804, -2523, 2785, -2245, 734,
   1045, -2857, 3888, -11398, 3406, -2679, 4999, -103,
   6707, -7102, 1158, -4524, 3212, 2065, -255, -4255,
   1682, -987, 333, 1958, 2943, -1600, 6811, 2103,
   4030, -4778, 5490, -11909, -1505, 3493, -9066, -3412,
   -1673, -7387, -1995, 451, -2989, -2608, 317, 2076,
   -6350, 4404, -1222, -3854, -4675, 12616, 3739, 126,
   1343, 8117, 620, -415, -1140, -931, -2678, -1561,
   -1454, 1010, 1821, -1230, -3869, 3745, 2041, -1243,
   -196, -4974, -9547, -6367, 3797, 105, -698, -1409,
   -7030, 5843, -6749, -7885, -1051, 3730, -1202, 2938,
   1536, 2797, 4495, -309, 1954, 1637, 3972, 723,
   1782, 4101, 5525, -6803, 3625, 4203, -3680, -4308,
   -5662, 2223, 1929, 1113, 7828, 61, -5548, -10833,
   8655, 3489, 3680, -829, -496, 6740, 1317, -1402,
   2411, 402, 1420, 1971, -3876, 4533, 4610, 6555,
   2928, -2090, -1689, 1243, 3253, 1051, 4787, -3870,
   -2253, 4030, -507, 3956, -7122, 6049, 3373, 5868,
   782, 3961, -2132, -3936, 3944, -195, 1283, -382,
   -141, 1447, 2272, 4714, 579, 3492, -2719, 937,
   3498, -5240, 3375, 3040, 290, -7514, -2126, -7146,
   3084, 1281, 4354, 338, 5197, -1488, 1623, 1854,
   -2707, -2176, 3413, -2245, 851, 1715, -2870, 1309,
   -1127, 662, -1673, 7551, -4901, -4459, 1943, -5998,
   -4459, 1988, -1437, -6808, -530, 812, 6763, 1088,
   -108, -547, -2758, 5672, 857, 2366, 1770, -3537,
   -8239, 63, 6457, 3256, 2453, 5478, 3192, 4728,
   -5188, -1048, -1468, 1944, -1620, -4830, 8233, 4379,
   887, -1339, 1825, 8806, -7448, 5491, 2284, 1983,
   4417, -50, -411, -1528, -609, 3553, -7104, 2208,
   -4777, -877, -3517, 939, -5368, -7444, 4267, -994,
   -3320, 3897, 1161, 3366, -6309, 6119, -3928, -2835,
   1384, -1238, 1558, -90, -1277, 3429, -2350, 929,
   -7380, 705, -1443, -6141, -4110, 5939, 3391, -2137,
   222, 408, 619, 5516, 6060, 471, -2335, 31,
   636, -7196, 2346, -2082, 2530, -2093, 1603, -7208,
   -6764, 2089, -10548, -3235, -3035, -9519, 5596, -5862,
   -264, -514, -5881, 2064, 2158, -688, 1983, 9081,
   -395, 1106, 1501, 506, -466, -3651, -879, 9723,
   5714, -1403, 3090, 2208, -127, -6849, -579, -1405,
   6088, -8262, -8095, -1043, -9232, -1771, -2790, -5700,
   -1568, -1509, -1257, -2664, -1594, 560, -7664, -3712,
   -971, 3808, -3434, -1332, -3769, -1509, 316, 3281,
   1581, -2888, -2234, -118, 919, 3520, 8085, -2894,
   1110, 12122, -1275, -2171, -1876, 8625, 1850, 1449,
   6177, 1800, 627, -5902, 3864, 4634, -3149, -1776,
   1389, 2766, 481, 2372, -71, 1265, -357, 1275,
   -2011, 2432, 8081, 2382, 8879, 1983, -1742, -4043,
   -361, 6496, 5009, -320, 4582, -2144, -4184, -1141,
   -2661, -3733, -380, -1826, -17320, -3020, -11362, -10212,
   -2959, -897, -2687, 1760, 2843, 836, -1765, 2219,
   -3431, 298, 1666, -4254, 1589, -244, -745, -1628,
   1684, 2892, -4366, 2072, -6710, -1399, -8910, 2407
};

static const opus_int16 layer1_bias[36] = {
   14206, 6258, 9052, 6611, -3603, 8785, 5625, 9775,
   6516, 4736, 8943, 3466, -888, -778, 5042, -3041,
   2719, 1724, 1216, 1698, 805, 2729, 1820, 4066,
   -3456, 3091, 1570, 542, 599, 2583, 2052, 1258,
   -2255, 1508, 1183, -5095
};

static const opus_int16 layer2_weights[24] = {
   946, -14834, -5002, 14299, 10342, 1471, 7109, -508,
   11745, -1786, -621, 15227, -4577, 30114, 5174, 12698,
   22279, -527, 7727, 2246, 9892, -2297, -15579, 853
};

static const opus_int16 layer2_bias[2] = {
   3700, 8418
};

const DenseLayer layer0 = {
   layer0_bias,
   layer0_weights,
   25, 16, 0
};

const GRULayer layer1 = {
   layer1_bias,
   layer1_weights,
   layer1_recur_weights,
   16, 12
};

const DenseLayer layer2 = {
   layer2_bias,
   layer2_weights,
   12, 2, 1
};