title: Passing x_train as a list of numpy arrays to tf.data.Dataset is not working
body: <p>My problem is that x_train in tf.data.Dataset.from_tensor_slices(x_train, y_train) needs to be a list. When I use the following lines to pass [x1_train,x2_train] to tensorflow.data.Dataset.from_tensor_slices, then I get error (x1_train, x2_train and y_train are numpy arrays):</p>
  <pre><code>Train=tensorflow.data.Dataset.from_tensor_slices(([x1_train,x2_train], y_train)).batch(batch_size)
  </code></pre>
  <p>Error:</p>
  <pre><code>Train=tensorflow.data.Dataset.from_tensor_slices(([x1_train,x2_train], y_train)).batch(batch_size)
  return ops.EagerTensor(value, ctx.device_name, dtype)
  ValueError: Can't convert non-rectangular Python sequence to Tensor.
  </code></pre>
  <p>What should I do?</p>