当前位置:网站首页>Bert running error: attributeerror: module'tensorflow contrib. tpu' has no attribute 'InputPipelineConfig'
Bert running error: attributeerror: module'tensorflow contrib. tpu' has no attribute 'InputPipelineConfig'
2022-07-03 12:34:00 【kvnew】
bert An example of this is GPU Error when executing on :
BERT-Classification-Tutorial → master$ sh run_classifier.sh
/opt/miniconda3/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6
return f(*args, **kwds)
WARNING:tensorflow:Flag task_name has a non-None default value; therefore, mark_flag_as_required will pass even if flag is not specified in the command line!
Traceback (most recent call last):
File "run_classifier.py", line 929, in <module>
tf.app.run()
File "/opt/miniconda3/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 48, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "run_classifier.py", line 783, in main
is_per_host = tf.contrib.tpu.InputPipelineConfig.PER_HOST_V2
AttributeError: module 'tensorflow.contrib.tpu' has no attribute 'InputPipelineConfig' The solution found : https://github.com/google-research/bert/issues/49
Looks like running bert You have to use tf 1.11
pip install --upgrade tensorflow-gpu==1.11
But new problems will arise :ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory
Solution : https://blog.csdn.net/zzldm/article/details/81630267
边栏推荐
- (construction notes) ADT and OOP
- Integer string int mutual conversion
- lambda与匿名内部类的区别
- Summary of development issues
- 阿里大于发送短信(用户微服务--消息微服务)
- elastic_ L04_ introduction. md
- Comprehensive evaluation of double chain notes · Siyuan notes: advantages, disadvantages and evaluation
- 剑指Offer09. 用两个栈实现队列
- [ManageEngine] the role of IP address scanning
- Computer version wechat applet full screen display method, mobile phone horizontal screen method.
猜你喜欢

【ArcGIS自定义脚本工具】矢量文件生成扩大矩形面要素

Cloud Computing future - native Cloud

New features of ES6

Eureka self protection

实现验证码验证

Itext7 uses iexternalsignature container for signature and signature verification

Fluent: Engine Architecture

idea将web项目打包成war包并部署到服务器上运行

Use bloc to build a page instance of shutter

Togaf certification self-study classic v2.0
随机推荐
Use of atomicinteger
OpenStack节点地址改变
Flutter Widget : KeyedSubtree
手机号码变成空号导致亚马逊账号登陆两步验证失败的恢复网址及方法
Sword finger offer06 Print linked list from end to end
剑指Offer07. 重建二叉树
elastic_ L01_ summary
Flutter Widget : Flow
New features of ES6
Wechat applet pages always report errors when sending values to the background. It turned out to be this pit!
2.8 overview of ViewModel knowledge
257. All paths of binary tree
QT OpenGL texture map
Computer version wechat applet full screen display method, mobile phone horizontal screen method.
(构造笔记)GRASP学习心得
Shell: basic learning
Shutter: about inheritedwidget
雲計算未來 — 雲原生
flinksql是可以直接客户端建表读mysql或是kafka数据,但是怎么让它自动流转计算起来呢?
TOGAF认证自学宝典V2.0