阅读(1055) (1)

TensorFlow函数教程:tf.io.tf_record_iterator

2019-02-25 16:43:56 更新

tf.io.tf_record_iterator函数

别名:

  • tf.io.tf_record_iterator
  • tf.python_io.tf_record_iterator
tf.io.tf_record_iterator(
    path,
    options=None
)

定义在:tensorflow/python/lib/io/tf_record.py。

从TFRecords文件读取记录的迭代器。(废弃)

警告:此功能已被弃用。它将在以后的版本中删除。更新说明:使用eager执行和:tf.data.TFRecordDataset(path)

参数:

  • path:TFRecords文件的路径。
  • options:(可选)TFRecordOptions对象。

输出:

字符串。

可能引发的异常:

  • IOError:如果path无法打开阅读。