tf.contrib.data.unbatch

tf.contrib.data.unbatch()

Defined in tensorflow/contrib/data/python/ops/batching.py.

See the guide: Dataset Input Pipeline > Transformations on existing datasets

A Transformation which splits the elements of a dataset.

For example, if elements of the dataset are shaped [B, a0, a1, ...], where B may vary from element to element, then for each element in the dataset, the unbatched dataset will contain B consecutive elements of shape [a0, a1, ...].

Returns:

A Dataset transformation function, which can be passed to tf.data.Dataset.apply.