tf.compat.v1.data.make_one_shot_iterator

View source on GitHub

Creates an iterator for elements of dataset.

dataset A tf.data.Dataset.

A tf.data.Iterator for elements of dataset.