tf.python_io.TFRecordWriter(filename)改为tf.compat.v1.python_io.TFRecordWriter(filename)
TensorFlow2.0 出现 AttributeError: module tensorflow has no attribute python_io
最新推荐文章于 2024-03-18 17:33:27 发布
tf.python_io.TFRecordWriter(filename)改为tf.compat.v1.python_io.TFRecordWriter(filename)