title: How can slicing dataset in TensorFlow?
body: <p>I want slicing dataset in <code>tf.data</code>. My data is like this:</p>
  <pre><code>dataset = tf.data.Dataset.from_tensor_slices([[0, 1, 2, 3, 4],
                                                [1, 2, 3, 4, 5],
                                                [2, 3, 4, 5, 6],
                                                [3, 4, 5, 6, 7],
                                                [4, 5, 6, 7, 8]])
  </code></pre>
  <p>Then the main data is:</p>
  <pre><code>[0 1 2 3 4]
  [1 2 3 4 5]
  [2 3 4 5 6]
  [3 4 5 6 7]
  [4 5 6 7 8]
  </code></pre>
  <p>I want create other tensor dataset that contain data like this:</p>
  <pre><code>       [[1, 2],
         [2, 3],
         [3, 4],
         [4, 5],
         [5, 6]]
  </code></pre>
  <p>In the numpy it is like this:</p>
  <pre><code>dataset[:,1:3]
  </code></pre>
  <p>How can do this in TensorFlow?</p>
  <p><strong>Update:</strong></p>
  <p>I do that with this:</p>
  <pre><code>dataset2 = dataset.map(lambda data: data[1:3])
  for val in dataset2:
      print(val.numpy())
  </code></pre>
  <p>But I think there is good solutions.</p>