当前位置:网站首页>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
边栏推荐
- With pictures and texts, summarize the basic review of C language in detail, so that all kinds of knowledge points are clear at a glance?
- If you can't learn, you have to learn. Jetpack compose writes an im app (II)
- flinksql是可以直接客户端建表读mysql或是kafka数据,但是怎么让它自动流转计算起来呢?
- 2020-10_ Development experience set
- (construction notes) ADT and OOP
- LeetCode 0556. Next bigger element III - end of step 4
- 阿里大于发送短信(用户微服务--消息微服务)
- (构造笔记)GRASP学习心得
- Write a simple nodejs script
- Sword finger offer09 Implementing queues with two stacks
猜你喜欢

雲計算未來 — 雲原生

New features of ES6

剑指Offer05. 替换空格

The future of cloud computing cloud native

Shutter: overview of shutter architecture (excerpt)

If you can't learn, you have to learn. Jetpack compose writes an im app (I)

云计算未来 — 云原生

阿里大于发送短信(用户微服务--消息微服务)

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

Take you to the installation and simple use tutorial of the deveco studio compiler of harmonyos to create and run Hello world?
随机推荐
Adult adult adult
145. Post order traversal of binary tree
Public and private account sending prompt information (user microservice -- message microservice)
Flinksql can directly create tables and read MySQL or Kafka data on the client side, but how can it automatically flow and calculate?
(构造笔记)从类、API、框架三个层面学习如何设计可复用软件实体的具体技术
【嵌入式】---- 内存四区介绍
(构造笔记)MIT reading部分学习心得
Lambda expression
Adult adult adult
OpenGL draws colored triangles
023 ([template] minimum spanning tree) (minimum spanning tree)
网上炒股开户安不安全?谁给回答一下
剑指Offer06. 从尾到头打印链表
If you can't learn, you have to learn. Jetpack compose writes an im app (II)
Dart: About zone
Dart: about Libraries
阿里大于发送短信(用户微服务--消息微服务)
257. All paths of binary tree
Basic knowledge of OpenGL (sort it out according to your own understanding)
4000 word super detailed pointer