Module: tf.compat.v1.data
Stay organized with collections
Save and categorize content based on your preferences.
tf.data.Dataset
API for input pipelines.
See Importing Data for an overview.
Modules
experimental
module: Experimental API for building input pipelines.
Classes
class Dataset
: Represents a potentially large set of elements.
class DatasetSpec
: Type specification for tf.data.Dataset
.
class FixedLengthRecordDataset
: A Dataset
of fixed-length records from one or more binary files.
class Iterator
: Represents the state of iterating through a Dataset
.
class Options
: Represents options for tf.data.Dataset.
class TFRecordDataset
: A Dataset
comprising records from one or more TFRecord files.
class TextLineDataset
: A Dataset
comprising lines from one or more text files.
Functions
get_output_classes(...)
: Returns the output classes of a Dataset
or Iterator
elements.
get_output_shapes(...)
: Returns the output shapes of a Dataset
or Iterator
elements.
get_output_types(...)
: Returns the output shapes of a Dataset
or Iterator
elements.
make_initializable_iterator(...)
: Creates a tf.compat.v1.data.Iterator
for enumerating the elements of a dataset.
make_one_shot_iterator(...)
: Creates a tf.compat.v1.data.Iterator
for enumerating the elements of a dataset.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-10-01 UTC.
[null,null,["Last updated 2020-10-01 UTC."],[],[],null,["# Module: tf.compat.v1.data\n\n\u003cbr /\u003e\n\n|------------------------------------------------------------|\n| [TensorFlow 2 version](/api_docs/python/tf/compat/v1/data) |\n\n[`tf.data.Dataset`](../../../tf/data/Dataset) API for input pipelines.\n\nSee [Importing Data](https://tensorflow.org/guide/datasets) for an overview.\n\nModules\n-------\n\n[`experimental`](../../../tf/compat/v1/data/experimental) module: Experimental API for building input pipelines.\n\nClasses\n-------\n\n[`class Dataset`](../../../tf/data/Dataset): Represents a potentially large set of elements.\n\n[`class DatasetSpec`](../../../tf/data/DatasetSpec): Type specification for [`tf.data.Dataset`](../../../tf/data/Dataset).\n\n[`class FixedLengthRecordDataset`](../../../tf/data/FixedLengthRecordDataset): A `Dataset` of fixed-length records from one or more binary files.\n\n[`class Iterator`](../../../tf/data/Iterator): Represents the state of iterating through a `Dataset`.\n\n[`class Options`](../../../tf/data/Options): Represents options for tf.data.Dataset.\n\n[`class TFRecordDataset`](../../../tf/data/TFRecordDataset): A `Dataset` comprising records from one or more TFRecord files.\n\n[`class TextLineDataset`](../../../tf/data/TextLineDataset): A `Dataset` comprising lines from one or more text files.\n\nFunctions\n---------\n\n[`get_output_classes(...)`](../../../tf/data/get_output_classes): Returns the output classes of a `Dataset` or `Iterator` elements.\n\n[`get_output_shapes(...)`](../../../tf/data/get_output_shapes): Returns the output shapes of a `Dataset` or `Iterator` elements.\n\n[`get_output_types(...)`](../../../tf/data/get_output_types): Returns the output shapes of a `Dataset` or `Iterator` elements.\n\n[`make_initializable_iterator(...)`](../../../tf/data/make_initializable_iterator): Creates a [`tf.compat.v1.data.Iterator`](../../../tf/data/Iterator) for enumerating the elements of a dataset.\n\n[`make_one_shot_iterator(...)`](../../../tf/data/make_one_shot_iterator): Creates a [`tf.compat.v1.data.Iterator`](../../../tf/data/Iterator) for enumerating the elements of a dataset."]]