tf.compat.v1.data.make_one_shot_iterator

Creates an iterator for elements of dataset.

dataset A tf.data.Dataset.

A tf.data.Iterator for elements of dataset.