Have a question? Connect with the community at the TensorFlow Forum Visit Forum


View source on GitHub

Creates an iterator for elements of dataset.

dataset = ...
iterator = tf.compat.v1.data.make_initializable_iterator(dataset)
# ...

dataset A tf.data.Dataset.
shared_name (Optional.) If non-empty, the returned iterator will be shared under the given name across multiple sessions that share the same devices (e.g. when using a remote server).

A tf.data.Iterator for elements of dataset.

RuntimeError If eager execution is enabled.