Bert-Chinese-Text-Classification-Pytorch icon indicating copy to clipboard operation
Bert-Chinese-Text-Classification-Pytorch copied to clipboard

使用自己的数据集进行测试时出现张量个数不匹配的问题

Open Howard0x3f opened this issue 3 years ago • 2 comments

报错处:_, pooled = self.bert(context, attention_mask=mask, output_all_encoded_layers=False) 报错如下 RuntimeError: The size of tensor a (117) must match the size of tensor b (118) at non-singleton dimension 3

Howard0x3f avatar May 09 '21 12:05 Howard0x3f

我也这样,什么问题

geralt-write-code avatar Oct 14 '21 11:10 geralt-write-code

@649453932 大佬知道怎么回事吗,语料里有字母或英文就会包这个错

s348268281 avatar Dec 23 '21 09:12 s348268281