Open APTX163 opened 2 years ago
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”更新代码。 谢谢!
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) 请问怎么解决呢?谢谢