tf.contrib.data.TFRecordWriter

Writes data to a TFRecord file.

Inherits From: TFRecordWriter

Methods

write

View source

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

Args
dataset a tf.data.Dataset whose elements are to be written to a file
Returns
A tf.Operation that, when run, writes contents of dataset to a file.

© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/data/TFRecordWriter