- 博客(1)
- 收藏
- 关注
原创 新生学习编程的每一天
num_layers=2, batch_first=True) #层的个数,char_set = list(set(sentence)) # 例:['h', 'e', 'i', 'o', 'l']# 2. 根据字符生成字典 例:{'h':0, 'i':1, 'e':2, 'i':3, 'l':4}x = [word2id[c] for c in x_str] # 例:[0,1,0,2,4,4]# pred:(6,5) 每个输入字母在五个类别(i,h,e,l,o)上的预测概率。# 3. x,y 转码。
2023-07-05 17:15:27 12 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人