title: TypeError: Error converting shape to a TensorShape: only size-1 arrays can be converted to Python scalars
body: <p>I am trying to build an auto encoder for text using CNN in Keras, in Jupyter Notebook. I am working with IMDB data set which has 25,000 examples of 2 columns, one of review and of rating.<br>
  I first tokenized and converted them into sequences of numbers and padded up to 2340(max sequence length).
  So, finally my matrix size is 25,000 x 2340.
  Then I am trying to pass in Input layer, but I am not getting </p>
  
  <pre><code>input_ = Input((2340,)) 
  Input(X_train)
  </code></pre>
  
  <p>Then I a, getting following error:</p>
  
  <p>TypeError: Error converting shape to a TensorShape: only size-1 arrays can be converted to Python scalars.</p>
  
  <p>Shape of X_train is (20000, 2340) after breaking it into train and validation set.</p>
  
  <p>Kindly please explain why this error is coming.</p>