pytorch 实现word embedding :torch.nn. ... Embedding(2, 5) #定义embedding,2为单词的个数,5位embedding的维度 #获取一个Variable,其值为hello的index hello_idx ...
確定! 回上一頁