tf.compat.v1.data.make_one_shot_iterator
Creates an iterator for elements of dataset.
tf.compat.v1.data.make_one_shot_iterator(
dataset
)
Note: The returned iterator will be initialized automatically. A "one-shot" iterator does not support re-initialization.
| Args | |
|---|---|
dataset | A tf.data.Dataset. |
| Returns | |
|---|---|
A tf.data.Iterator for elements of dataset. |
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.4/api_docs/python/tf/compat/v1/data/make_one_shot_iterator