tf.contrib.data.TFRecordWriter

Class TFRecordWriter

Inherits From: TFRecordWriter

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

Writes data to a TFRecord file.

__init__

__init__(
    filename,
    compression_type=None
)

DEPRECATED FUNCTION

THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use tf.data.experimental.TFRecordWriter(...).

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.