Returns an op that initializes this iterator using the provided dataset.
Returns an op that initializes this iterator using the provided dataset.
Dataset to initialize this iterator with. The output data types of this iterator must match the output data types of the dataset, and its output shapes must be compatible with the output shapes of the dataset.
Name for the created op.
Created op.
IllegalArgumentException
If any of the output data types or shapes of this iterator is not compatible with
the corresponding output data type or shape of the provided dataset.
Returns an op that initializes this iterator using the provided dataset handle.
Returns an op that initializes this iterator using the provided dataset handle.
NOTE: It is advisable not to use this method for initializing iterators as it does not support compile-time checking for whether the provided dataset handle is compatible with this iterator.
Dataset handle to initialize this iterator with. The output data types of this iterator must match the output data types of the corresponding dataset, and its output shapes must be compatible with the output shapes of that dataset.
Name for the created op.
Created op.
Creates an op that destroys this iterator.
Creates an op that destroys this iterator.
The returned op may be used to release any resources consumed by this iterator, without closing the session.
Name for the created op.
Created op.
Handle of the iterator.
Creates an op that obtains the next element of this iterator and returns a nested structure of outputs
(according to the structures supported by the Data
type trait) that corresponds to that element.
Creates an op that obtains the next element of this iterator and returns a nested structure of outputs
(according to the structures supported by the Data
type trait) that corresponds to that element.
Name for the created op.
Created op outputs in a nested structure according to the data type of this initializer.
Data types corresponding to each element of the iterator.
Shapes corresponding to each element of the iterator.
Creates an op that converts the provided resource handle representing an iterator to a string.
Creates an op that converts the provided resource handle representing an iterator to a string.
Name for the created op.
Created op.
A simple iterator that does contains an initializer and can thus not be used until an initializer is created for it, using its
createInitializer
method.An iterator represents the state of iterating through a dataset.