defforward(self, sentence):# print(sentence) [torch.LongTensor of size 47x64]x = self.word_embeddings(sentence)# [torch.FloatTensor of size 47x64x100]x = torch.transpose(x,0,1)# print(x) # [torch.FloatTensor of size 32x43x300]x = x.unsqueeze(1)# x = F.relu(self.convl3(x).s...
torch.transpose()函数 http://t.csdn.cn/H1zTN AlkaidQAQ 粉丝-0关注 -1 +加关注 0 0 升级成为会员
defforward(self, sentence):# print(sentence) [torch.LongTensor of size 47x64]x = self.word_embeddings(sentence)# [torch.FloatTensor of size 47x64x100]x = torch.transpose(x,0,1)# print(x) # [torch.FloatTensor of size 32x43x300]x = x.unsqueeze(1)# x = F.relu(self.convl3(x).s...