Open nlpCSir opened 2 years ago
我也有这个问题 然后重新用conda install -c huggingface transformers语句安装了transformer之后运行还是这样报错 请问是我安装transformer的语句不对吗
_, pooled_output = self.bert(text_bert_indices, token_type_ids=bert_segments_ids, return_dict=False) you can write like this in bert_spc.py.
argument 'input' (position 1) must be Tensor, not str