title: Is there a way to partition a tf.Dataset with TensorFlow’s Dataset API?
body: <p>I checked <a href="https://www.tensorflow.org/api_docs/python/tf/data/Dataset" rel="nofollow noreferrer">the doc</a> but I could not find a method for it. I want to de cross validation, so I kind of need it.</p>
  
  <p>Note that I'm not asking how to split a tensor, as I know that TensorFlow provides an API for that an has been answered in another question. I'm asking on how to partition a tf.Dataset (which is an abstraction).</p>