Closed tianke0711 closed 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
solved
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