(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).
[null,null,["Last updated 2020-10-01 UTC."],[],[],null,["# tf.data.make_initializable_iterator\n\n\u003cbr /\u003e\n\n|--------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/data/ops/dataset_ops.py#L2084-L2115) |\n\nCreates a [`tf.compat.v1.data.Iterator`](../../tf/data/Iterator) for enumerating the elements of a dataset.\n\n#### View aliases\n\n\n**Compat aliases for migration**\n\nSee\n[Migration guide](https://www.tensorflow.org/guide/migrate) for\nmore details.\n\n[`tf.compat.v1.data.make_initializable_iterator`](/api_docs/python/tf/compat/v1/data/make_initializable_iterator)\n\n\u003cbr /\u003e\n\n tf.data.make_initializable_iterator(\n dataset, shared_name=None\n )\n\n**Note:** The returned iterator will be in an uninitialized state, and you must run the `iterator.initializer` operation before using it: \n\n dataset = ...\n iterator = tf.compat.v1.data.make_initializable_iterator(dataset)\n # ...\n sess.run(iterator.initializer)\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|---------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `dataset` | A [`tf.data.Dataset`](../../tf/data/Dataset). |\n| `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). |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| A [`tf.compat.v1.data.Iterator`](../../tf/data/Iterator) over the elements of `dataset`. ||\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Raises ------ ||\n|----------------|--------------------------------|\n| `RuntimeError` | If eager execution is enabled. |\n\n\u003cbr /\u003e"]]