TensorFlow 2.0 Beta is available Learn more

tf.data.make_one_shot_iterator

Creates a tf.compat.v1.data.Iterator for enumerating the elements of a dataset.

Aliases:

  • tf.compat.v1.data.make_one_shot_iterator
  • tf.data.make_one_shot_iterator
tf.data.make_one_shot_iterator(dataset)

Defined in python/data/ops/dataset_ops.py.

Args:

Returns:

A tf.compat.v1.data.Iterator over the elements of this dataset.