Bert project Debug记录

1.F.cross_entropy(outputs, labels) RuntimeError: Dimension out of range (expected to be in range of [-1, 0], but got 1)

参考:

2.RuntimeError: Expected object of type torch.FloatTensor but found type torch.cuda.FloatTensor for argument #4 'mat1'

 

posted @ 2020-10-27 21:30  冰河入梦~  阅读(65)  评论(0编辑  收藏  举报