jiesutd / LatticeLSTM

Chinese NER using Lattice LSTM. Code for ACL 2018 paper.
1.79k stars 457 forks source link

TypeError: mul(): argument 'other' (position 1) must be Tensor, not list #127

Closed tianke0711 closed 3 years ago

tianke0711 commented 3 years ago

File "main.py", line 197, in batchify_with_label mask[idx, :seqlen] = torch.Tensor([1]*seqlen) TypeError: mul(): argument 'other' (position 1) must be Tensor, not list

tianke0711 commented 3 years ago

solved