tf.data.experimental.TFRecordWriter

Class TFRecordWriter

Defined in tensorflow/python/data/experimental/ops/writers.py.

Writes data to a TFRecord file.

__init__

__init__(
    filename,
    compression_type=None
)

Initialize self. See help(type(self)) for accurate signature.

Methods

tf.data.experimental.TFRecordWriter.write

write(dataset)

Returns a tf.Operation to write a dataset to a file.

Args:

Returns:

A tf.Operation that, when run, writes contents of dataset to a file.