What is tf.data.Dataset?

A Ydobon
A Ydobon
Nov 3 · 2 min read

They always say that the simplest way of using tf.data.Dataset is the from_tensor_slices method. So give it a try. Suppose that I have a list of image file names and the variable name of that list is all_image_paths.

all_image_paths

The output is something like

['../input/train_images/5998cfa4-23d2-11e8-a6a3-ec086b02610b.jpg',
'../input/train_images/588a679f-23d2-11e8-a6a3-ec086b02610b.jpg',
'../input/train_images/59279ce3-23d2-11e8-a6a3-ec086b02610b.jpg',
'../input/train_images/5a2af4ab-23d2-11e8-a6a3-ec086b02610b.jpg'…

Keep the story going. Sign up for an extra free read.

You've completed your member preview for this month, but when you sign up for a free Medium account, you get one more story.
Already have an account? Sign in

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade