LostTech.TensorFlow : API Documentation

Type TFRecordWriter

Namespace tensorflow.data.experimental

Parent PythonObjectContainer

Interfaces ITFRecordWriter

Writes data to a TFRecord file.

To write a `dataset` to a single TFRecord file: To shard a `dataset` across multiple TFRecord files:
Show Example
dataset =... # dataset to be written
            writer = tf.data.experimental.TFRecordWriter(PATH)
            writer.write(dataset) 

Methods

Properties

Public instance methods

object write(Dataset dataset)

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

object write(DatasetV1Adapter dataset)

Returns a tf.Operation to write a dataset to a file.
Parameters
DatasetV1Adapter dataset
a tf.data.Dataset whose elements are to be written to a file
Returns
object
A tf.Operation that, when run, writes contents of `dataset` to a file.

Public properties

object PythonObject get;