I'm using tensorflow 1.14 and have a problem with dataset.
my code:
my_data = [
[0, 1],
[2, 3],
[4, 5],
[6, 7]
]
slices = tf.data.Dataset.from_tensor_slices(my_data) # get dataset
it = slices.make_one_shot_iterator() # get iterator from dataset (deprecated)
next_item = it.get_next()
It says make_one_shot_iterator is deprecated..
So i tried following codes
my_data = [
[0, 1],
[2, 3],
[4, 5],
[6, 7]
]
slices = tf.data.Dataset.from_tensor_slices(my_data) # get dataset
for q in slices:
print(sess.run(q))
Immediately i got NotFoundError exception.
My question: What is the proper way to iterate over a dataset?

