【发布时间】:2019-11-27 11:46:45
【问题描述】:
我正在尝试创建自定义 TFrecords。
当我调用一个使用tf.python_io.TFRecordWriter(..) 作为...的脚本时:
这个错误出现了
日志:
Traceback (most recent call last):
File "createtfrecordsbyother.py", line 105, in <module>
main(args)
File "createtfrecordsbyother.py", line 85, in main
num_shards=num_shards_train)
File "createtfrecordsbyother.py", line 45, in create_tfrecords
with tf.python_io.TFRecordWriter(output_filename) as tfrecord_writer:
AttributeError: module 'tensorflow' has no attribute 'python_io'
【问题讨论】:
-
顺便说一句,我尝试重新安装。错误仍然存在
-
那是尝试修复它,用粘贴的方法。但是重新启动后,错误又回来了。我也在使用一个虚拟环境,python 3.7.4 下载了 Cuda 和 CuDnn,安装了 CUDA,并将 CuDnn 中的内容粘贴到 CUDA 中。使用显示我的 Nvidia gpu 的脚本检查了 tensorflow。
标签: tensorflow windows-10 tfrecord