title: TensorFlow create dataset from numpy array
body: <p>TensorFlow as build it a nice way to store data. This is for example used to store the MNIST data in the example:</p>
  
  <pre><code>&gt;&gt;&gt; mnist
  &lt;tensorflow.examples.tutorials.mnist.input_data.read_data_sets.&lt;locals&gt;.DataSets object at 0x10f930630&gt;
  </code></pre>
  
  <p>Suppose to have a input and output numpy arrays. </p>
  
  <pre><code>&gt;&gt;&gt; x = np.random.normal(0,1, (100, 10))
  &gt;&gt;&gt; y = np.random.randint(0, 2, 100)
  </code></pre>
  
  <p>How can I transform them in a <code>tf</code> dataset? </p>
  
  <p>I want to use functions like <code>next_batch</code></p>