terrifyzhao / bert-utils

一行代码使用BERT生成句向量,BERT做文本分类、文本相似度计算
Apache License 2.0
1.65k stars 425 forks source link

同时启动两个Bert对象出错 #29

Closed cdj0311 closed 5 years ago

cdj0311 commented 5 years ago

我需要启动两个max_seq_len不一样的Bert对象(一个是100,另一个是300),报如下错“ValueError: Requested return tensor 'final_encodes:0' not found in graph def ”请问是怎么回事呢?我用bert-as-service就没有这个问题。

terrifyzhao commented 5 years ago

@cdj0311 的确存在这个问题,有空我会尽快修复

terrifyzhao commented 5 years ago

@cdj0311 已修复

cdj0311 commented 5 years ago

@terrifyzhao 非常感谢,赞!