当前位置:网站首页>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
边栏推荐
- JVM memory model
- PHP get the file list and folder list under the folder
- The difference between lambda and anonymous inner class
- 云计算未来 — 云原生
- Apache Mina Development Manual
- temp
- 剑指Offer04. 二维数组中的查找【中等】
- [ManageEngine] the role of IP address scanning
- Introduction to concurrent programming (I)
- C language improvement article (wchar_t) character type
猜你喜欢
Self made pop-up input box, input text, and click to complete the event.
剑指Offer04. 二维数组中的查找【中等】
Integer int compare size
剑指Offer09. 用两个栈实现队列
雲計算未來 — 雲原生
阿里大于发送短信(用户微服务--消息微服务)
Shutter: add gradient stroke to font
Summary of error prone knowledge points: Calculation of define s (x) 3*x*x+1.
Fluent: Engine Architecture
Cloud Computing future - native Cloud
随机推荐
(construction notes) grasp learning experience
【ArcGIS自定义脚本工具】矢量文件生成扩大矩形面要素
公纵号发送提示信息(用户微服务--消息微服务)
Take you to the installation and simple use tutorial of the deveco studio compiler of harmonyos to create and run Hello world?
Integer int compare size
JVM memory model
Use Tencent cloud IOT platform to connect custom esp8266 IOT devices (realized by Tencent continuous control switch)
【附下载】密码获取工具LaZagne安装及使用
Flutter Widget : Flow
(構造筆記)從類、API、框架三個層面學習如何設計可複用軟件實體的具體技術
4000 word super detailed pointer
OpenStack节点地址改变
Jsup crawls Baidu Encyclopedia
手机号码变成空号导致亚马逊账号登陆两步验证失败的恢复网址及方法
Itext7 uses iexternalsignature container for signature and signature verification
Shutter: about inheritedwidget
Shell: basic learning
Adult adult adult
Prompt unread messages and quantity before opening chat group
Dart: about Libraries