tf.contrib.data.TFRecordWriter

Class TFRecordWriter

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

Writes data to a TFRecord file.

__init__

__init__(
    filename,
    compression_type=None
)

Methods

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.