Apply to speak at TensorFlow World. Deadline April 23rd. Propose talk

Module: tfds.file_adapter

Defined in core/file_format_adapter.py.

tfds.file_adapter.FileFormatAdapters for GeneratorBasedBuilder.

FileFormatAdapters implement methods to write and read data from a particular file format.

Currently, two FileAdapter are available: * TFRecordExampleAdapter: To store the pre-processed dataset as .tfrecord file * CSVAdapter: To store the dataset as CSV file

return TFRecordExampleAdapter({
    "x": tf.FixedLenFeature(tuple(), tf.int64)
})

Classes

class FileFormatAdapter: Provides writing and reading methods for a file format.

class TFRecordExampleAdapter: Writes/Reads serialized Examples protos to/from TFRecord files.

class CSVAdapter: Writes/reads features to/from CSV files.