View source on GitHub

Creates a for enumerating the elements of a dataset.
    dataset, shared_name=None
dataset = ...
iterator =
# ...


  • dataset: A
  • 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 over the elements of dataset.


  • RuntimeError: If eager execution is enabled.