TensorFlow

tf.data API

Learn tf.data API in TensorFlow with a tiny example and expected output.

tf.data API is part of the TensorFlow roadmap. Use the example below and continue with the next topic.

Syntax
ds = tf.data.Dataset.from_tensor_slices((X, y)).batch(32)
Example