tf.compat.v1.data.Iterator

Represents the state of iterating through a Dataset.

iterator_resource A tf.resource scalar tf.Tensor representing the iterator.
initializer A tf.Operation that should be run to initialize this iterator.
output_types A (nested) structure of tf.DType objects corresponding to each component of an element of this iterator.
output_shapes A (nested) structure of tf.TensorShape objects corresponding to each component of an element of this iterator.
output_classes A (nested) structure of Python type objects corresponding to each component of an element of this iterator.

element_spec The type specification of an element of this iterator.

For more information, read this guide.

initializer A tf.Operation that should be run to initialize this iterator.
output_classes Returns the class of each component of an element of this iterator. (deprecated)

The expected values are tf.Tensor and tf.sparse.SparseTensor.

output_shapes Returns the shape of each component of an element of this iterator. (deprecated)

output_types Returns the type of each component of an element of this iterator. (deprecated)

Methods