【TensorFlow错误解决】:“AttributeError: module ‘tensorflow‘ has no attribute ‘python_io‘”
【错误】:【原因】:由于TensorFlow版本升级导致函数不兼容。【解决措施】:1.把TensorFlow版本降为1.xx版本2.修改代码修改前:tf.python_io.TFRecordWriter(tfrecord_name)修改后:tf.compat.v1.python_io.TFRecordWriter(tfrecord_name)...
原创
2021-10-24 11:08:41 ·
2010 阅读 ·
1 评论