Я получаю сообщение об ошибке «в tensor() отсутствует 1 требуемый позиционный аргумент: ‘данные'».

#python

Вопрос:

{‘model_state’: OrderedDict([(‘Л1.вес, тензор([[ 0.3886, -0.5526, 0.3669, -0.4095, 0.5387, 0.0432, -0.2698, -0.4268, -0.2624, -0.4070, -0.0163, -0.0288, -0.1712, 0.1872, 0.8129, 0.7728, 0.8017, -0.4935, 0.2696, 0.1106, -0.1329, 0.4372, -0.6046, -0.5597, -0.5177, -0.2338, 0.5203, 0.1762, -0.4256, -0.1641, -0.2005, -0.0449, -0.4943, -0.3609, 0.6896, -0.4937, -0.1696, 0.1453, 0.7268, 0.2197, 0.5355, -0.4349, 0.8803, 0.3942, -0.3857, 0.8787, -0.3106, 0.5070, -0.1590, -0.1833, 0.4915, -0.3920, -0.0588, 0.8269, -0.0192, -0.0701, -0.1119, -0.3603, 0.2670, 0.4406, 0.2659, -0.0034, 0.3123, 0.8208, 0.6930, 0.8162, 0.4336, 0.4186], [-0.5189, 0.6381, -0.0854, 0.6477, -0.1501, -0.3132, 0.2864, -0.3722, 0.4768, 0.4415, 0.4977, -0.3228, 0.1328, 0.3338, -0.5024, -0.9167, -0.9087, 0.7877, 0.1713, -0.2335, 0.5940, -0.1245, -0.4515, -0.4317, -0.4540, 0.4739, 0.1222, 0.8562, 0.6618, 0.1553, 0.1689, -0.1118, 0.8941, 0.6077, 0.6100, 0.8070, 0.4739, 0.0841, -0.3989, -0.5157, -0.5403, 0.3943, -0.3564, -0.2224, 0.6818, -0.4153, 0.4384, 0.5778, 0.6192, 0.7356, 0.7409, 0.1878, -0.2028, -0.9162, -0.2322, 0.3782, -0.2664, 0.5541, -0.0537, 0.2438, -0.6954, 0.2340, 0.0589, 0.6197, 0.5855, 0.6051, -0.1358, -0.4012], [ 0.1514, -0.8576, -0.2405, -0.5666, 0.4668, -0.2863, -0.4229, -0.3095, 0.6533, -0.5771, 0.3441, -0.5359, -0.2771, 0.2408, 0.7182, -0.5144, -0.5314, 0.3987, 0.3051, -0.3731, 0.2834, 0.4964, 0.2978, 0.3158, 0.3149, 0.5285, -0.0147, 0.3064, -0.5235, -0.2197, -0.2588, -0.0647, 0.3392, 0.6140, -0.0218, 0.2506, 0.4186, 0.3578, -0.2171, -0.5287, 0.2974, -0.5392, -0.1944, 0.1744, -0.5666, -0.2104, -0.3966, -0.0747, 0.5528, 0.3807, -0.1181, -0.3263, 0.0582, -0.5264, -0.4994, -0.0970, 0.0264, 0.2649, 0.3466, -0.1114, -0.7346, -0.0202, 0.3537, -0.2679, -0.2347, -0.2386, -0.1150, -0.5619], [-0.3491, 0.6590, 0.0099, 0.6312, -0.1243, 0.8981, 0.2802, 0.6673, -0.5465, 0.4717, 0.3186, 0.6763, 0.4921, -0.6540, -0.6111, -0.2677, -0.2264, 0.7796, -0.6764, 0.8926, 0.4925, -0.7984, 1.0150, 1.0446, 1.0876, -0.3020, -0.7527, 0.5607, 0.6389, 0.3977, 0.4274, 0.4833, 0.9594, -0.5445, 0.1672, 0.6255, -0.2535, -0.0171, 0.4294, 0.7466, -0.1911, 0.4760, 0.3386, -0.2590, 0.6342, 0.4931, 0.2936, 0.2571, -0.5483, -0.5588, 0.3507, 0.5134, 0.6228, -0.2210, 0.7047, 0.3381, 0.5980, 0.4820, -0.1750, 0.2842, 0.8264, 0.1477, -0.0288, -0.5903, -0.5903, -0.5843, 0.1526, 0.5968], [-0.1224, -0.2171, 0.1102, -0.2359, -0.3705, -0.3184, -0.2247, 0.5942, 0.4440, -0.0958, -0.2595, -0.2920, 0.3591, 0.2135, -0.3906, 0.8121, 0.7451, -0.8038, 0.2289, -0.2701, -0.4396, 0.1005, 1.0207, 0.9875, 0.9960, 0.2244, 0.2582, -0.2169, -0.3265, 0.2429, 0.4386, -0.0615, 0.2377, 0.3505, -0.1967, -0.7917, 0.3205, 0.1599, -0.7831, -0.4107, -0.0534, -0.2036, -0.7831, -0.3598, -0.2717, -0.7694, -0.0180, -0.2152, 0.4709, 0.4158, -0.2746, 0.3839, 0.0331, 0.7787, -0.2299, 0.0190, 0.3985, -0.3644, -0.2028, -0.0417, -0.7928, 0.0915, -0.3648, -0.7018, -0.7385, -0.7164, 0.1829, -0.3726], [-0.1386, 0.4603, -0.0895, 0.5251, 0.0912, 0.9451, 0.2024, -0.4941, -0.5290, 0.3805, 0.2978, 0.7848, -0.1547, -0.6075, -0.7506, 0.2869, 0.2239, 0.5256, -0.6071, 0.9494, 0.2343, -0.8050, 0.0832, 0.0547, -0.0179, -0.2537, -0.7028, 0.3761, 0.4838, -0.1490, -0.0421, 0.7287, 0.1178, -0.5342, 0.6966, 0.5222, -0.3012, -0.1690, 0.5630, -0.5830, -0.2869, 0.2490, 0.4804, -0.0805, 0.4135, 0.5212, 0.2771, 0.6881, -0.5198, -0.5019, 0.7130, -0.1844, 0.7607, 0.2222, 0.9733, 0.1909, -0.4793, 0.3571, 0.0432, 0.3400, 0.0968, 0.1500, -0.0763, 0.9251, 0.9592, 0.9106, 0.0037, -0.1162], [-0.0253, 0.6190, 0.9082, 0.6323, -0.4564, -0.4509, 0.3368, 0.8312, -0.2625, 0.4789, -0.0563, -0.6104, 0.3355, 0.4466, -0.5046, 0.8802, 0.8586, -0.4026, 0.5483, -0.5169, -0.1639, -0.4315, -0.4930, -0.5633, -0.4969, 0.0029, 0.8349, 0.0576, 0.7857, 0.4959, 0.3247, -0.4573, -0.2229, -0.0955, -0.6065, -0.4479, 0.0348, -0.1869, 0.1982, 0.9305, -0.1409, 0.3904, 0.2655, -0.1930, 0.5351, 0.1817, 0.3630, -0.6807, -0.2486, -0.1943, -0.6291, 0.2194, -0.5114, 0.8370, -0.4586, 0.3107, 0.7208, -0.1953, 0.0070, -0.2824, 0.7697, 0.1323, -0.4180, -0.3466, -0.3006, -0.3138, 0.9816, 0.9761], [ 0.3890, 0.3841, 0.6786, 0.3859, 0.4847, -0.4052, 0.2034, 0.7117, 0.1061, 0.2453, -0.0461, -0.4111, 0.2951, 0.4709, 0.7237, -0.0996, -0.1542, -0.1340, 0.5161, -0.3933, -0.0869, 0.2421, -0.5616, -0.5439, -0.6079, -0.0084, 1.0992, 0.7869, 0.2619, 0.4256, 0.4327, -0.3635, 0.1046, -0.0157, 0.2862, -0.2036, 0.0939, 0.4015, 0.9611, 0.5650, 0.4067, 0.2516, 0.8905, 0.1916, 0.3528, 0.9374, 0.2194, 0.1842, 0.0552, -0.0376, 0.3332, 0.3469, -0.4317, -0.1115, -0.4583, 0.2452, 0.5688, -0.2241, 0.4155, 0.6819, 0.4148, 0.3487, 0.2514, -0.5171, -0.5728, -0.5417, 0.8077, 0.5953]])), (‘Л1.уклон’, тензор([0.8113, 0.9165, 1.0901, 0.5904, 0.7830, 0.6992, 0.6131, 0.8215])), (‘Л2.вес, тензор([[ 1.5750, -0.4020, 0.9587, -1.1807, -0.5552, 0.1692, 1.1764, 1.3212], [ 0.0093, -0.8456, -1.0870, 1.2338, 0.9288, 0.4936, 1.7627, 0.9986], [-0.5913, 1.5742, 1.3030, 1.3664, 1.2549, 1.8029, -0.3173, -0.9216], [-0.1460, 1.0820, 1.6818, -1.0658, 1.4180, -1.0679, 0.1344, 0.7361], [ 0.0300, -0.1943, 0.0358, 0.2162, -0.2833, 0.1225, -0.0625, -0.1929], [-0.5605, -0.2978, 1.6224, 1.5570, 1.1738, -0.2720, -1.1537, 0.5431], [ 0.4762, 1.0147, 0.0893, 0.3381, -1.7162, 1.8755, -0.7878, 0.8784], [-0.6193, 1.1866, -0.2663, 0.8267, -0.6044, -0.5755, 1.1237, 1.5096]])), (‘Л2.уклон’, тензор([ 0.8104, 0.5269, 0.8409, 0.4744, -0.2568, 0.5268, 0.5159, -0.3688])), (‘П3.вес, тензор([[ 0.4243, 0.7215, -0.4577, 0.2621, 0.2758, -0.3992, -1.8134, -2.6720], [-1.3105, 0.4058, 0.5802, -2.3302, 0.0638, 0.3176, 0.5534, -2.0273], [-1.6013, 0.4483, -0.5177, -0.0067, 0.3017, 0.3129, -1.1029, 0.5948], [-1.4723, 0.4163, -0.1074, -1.3776, 0.2080, -0.8684, 0.2151, 0.7763], [ 0.5296, -1.2014, -1.8766, 0.4507, -0.1778, 0.3309, 0.2252, -0.8267], [-1.5728, -1.2169, 0.3762, -0.5676, 0.1866, 0.1223, 0.0626, 0.2744], [-2.2406, -0.1106, 0.5733, -0.0033, 0.1956, 0.8353, -1.1796, -2.2751], [ 0.5233, 0.1407, -1.7400, 0.1555, 0.1730, -1.0646, -1.0098, 0.0259], [ 0.5389, 0.4908, -1.9795, -2.3432, 0.1407, -0.8633, -0.5561, 0.7525], [ 0.4569, 0.0458, -1.1258, -1.3852, 0.0283, -0.0784, 0.8792, -0.3046], [ 0.3883, -1.5967, 0.2776, -0.8404, 0.3314, -1.4417, 0.7965, -2.0393], [-0.2473, -0.9691, 0.1031, 1.0345, 0.0467, 0.0895, -0.6529, -0.6399]])), (‘l3.смещение’, тензор([ 0.1840, 0.4301, -0.2348, -0.2089, -0.2661, -0.6251, 0.3587, -0.2351, -0.3426, -0.1255, 0.2736, 0.3543]))]), ‘размер ввода: 68, скрытый размер: 8, размер вывода: 12, все слова: [«а», «я», «есть», «плохо», «быть», «пока», «может», «код», «черт», «делать»

Мой код. Пожалуйста, помогите.

Комментарии:

1. Пожалуйста, проясните вашу конкретную проблему или предоставьте дополнительные сведения, чтобы точно указать, что вам нужно. Поскольку это написано в настоящее время, трудно точно сказать, о чем вы просите.