BERT NER: can't convert CUDA tensor to numpy. Use Tensor.cpu() to copy the tensor to host memory first

前端 未结 0 1965
滥情空心
滥情空心 2020-11-27 11:04

I want to train my BERT NER model on colab. But following error occurs

Code:

tr_logits = tr_logits.detach().cpu().numpy()
tr_label_ids = torch.masked_s         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题