当前位置:网站首页>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
边栏推荐
- Flutter: about monitoring on flutter applications
- RedHat5 安装Socket5代理服务器
- DEJA_ Vu3d - cesium feature set 053 underground mode effect
- 云计算未来 — 云原生
- 225. Implement stack with queue
- Adult adult adult
- Apprendre à concevoir des entités logicielles réutilisables à partir de la classe, de l'API et du cadre
- 4000字超详解指针
- 剑指Offer06. 从尾到头打印链表
- Jsup crawls Baidu Encyclopedia
猜你喜欢
Eureka self protection
ES6新特性
阿里大于发送短信(用户微服务--消息微服务)
2021 autumn Information Security Experiment 1 (password and hiding technology)
记录自己vulnhub闯关记录
OpenGL draws colored triangles
Shutter widget: centerslice attribute
Develop plug-ins for idea
Use bloc to build a page instance of shutter
If you can't learn, you have to learn. Jetpack compose writes an im app (I)
随机推荐
What is more elegant for flutter to log out and confirm again?
Take you to the installation and simple use tutorial of the deveco studio compiler of harmonyos to create and run Hello world?
error: expected reference but got (raw string)
Fundamentals of concurrent programming (III)
Comprehensive evaluation of double chain notes · Siyuan notes: advantages, disadvantages and evaluation
Alibaba is bigger than sending SMS (user microservice - message microservice)
Implement verification code verification
Redis
Adult adult adult
2020-11_ Technical experience set
MySQL time zone solution
Cloud Computing future - native Cloud
Lambda expression
Adult adult adult
elastic_ L01_ summary
Eureka自我保护
The future of cloud computing cloud native
Nodejs+Express+MySQL实现登陆功能(含验证码)
雲計算未來 — 雲原生
ES6新特性