InterGCN-ABSA icon indicating copy to clipboard operation
InterGCN-ABSA copied to clipboard

TypeError

Open APTX163 opened this issue 3 years ago • 1 comments

encoder_layer, pooled_output = self.bert(text_bert_indices, token_type_ids=bert_segments_ids,output_all_encoded_layers=False),会显示TypeError: forward() got an unexpected keyword argument 'output_all_encoded_layers' 如果去掉,则会在运行的时候出错ValueError: expected sequence of length 85 at dim 1 (got 88) 请问怎么解决呢?谢谢

APTX163 avatar Dec 12 '21 08:12 APTX163

encoder_layer, pooled_output = self.bert(text_bert_indices, token_type_ids=bert_segments_ids,output_all_encoded_layers=False),会显示TypeError: forward() got an unexpected keyword argument 'output_all_encoded_layers' 如果去掉,则会在运行的时候出错ValueError: expected sequence of length 85 at dim 1 (got 88) 请问怎么解决呢?谢谢

Hi, 相关问题已修复, 请运行“git pull”更新代码。 谢谢!

BinLiang-NLP avatar Dec 13 '21 07:12 BinLiang-NLP