十元Python

2024-09-27 09:30:43 发布

您现在位置:Python中文网/ 问答频道 /正文

我在使用tensorflow时遇到问题。我想使用TFRecordWriter(),如下所示:

with tf.python_io.TFRecordWriter(testing_filename) as tfrecord_writer:
    # do sth

但我得到了一个错误:

AttributeError: module 'tensorflow' has no attribute 'python_io'

我正在使用TensorFlow1.2和Python3。在

我怎样才能解决这个问题?在

谢谢。在


Tags: iotftensorflowas错误withtfrecordfilename
1条回答
网友
1楼 · 发布于 2024-09-27 09:30:43

我遇到了这个问题,结果是tensorflow安装损坏了。我删除了张量流重新安装,它为我工作后。在

$ pip3 uninstall tensorflow
$ pip3 install tensorflow

相关问题 更多 >

    热门问题