[null,null,["Last updated 2020-10-01 UTC."],[],[],null,["# tf.data.make_one_shot_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#L2063-L2081) |\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_one_shot_iterator`](/api_docs/python/tf/compat/v1/data/make_one_shot_iterator)\n\n\u003cbr /\u003e\n\n tf.data.make_one_shot_iterator(\n dataset\n )\n\n| **Note:** The returned iterator will be initialized automatically. A \"one-shot\" iterator does not support re-initialization.\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\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 this dataset. ||\n\n\u003cbr /\u003e"]]