bert serving fail to optimize the graph!(已解决)

问题解决

换tensorflow版本:tensorflow/tensorflow-gpu==1.14.0

如果使用gpu,请确定tf.test.is_gpu_available()=true,否则仍使用cpu资源

bert-serving-server搭建bert词向量服务

请参考:https://www.jianshu.com/p/61323d366f7c

注意:提取长文本特征需自定义-max_seq_len参数

posted @ 2022-03-24 15:53  牛郎  阅读(571)  评论(0编辑  收藏  举报