bert运行报错: AttributeError: module 'tensorflow.contrib.tpu' has no attribute 'InputPipelineConfig'

原因

tensorflow1.5版本过低,InputPipelineConfig从tensorflow1.9开始支持

下面是官方api文档:

 

 

解决

pip install --upgrade tensorflow-gpu==1.11
posted @ 2020-01-03 14:25  MaybeLL  阅读(2580)  评论(0编辑  收藏  举报