title: How to reshape a 4d numpy array for training a model
body: <p>I am trying to train my already compiled CNN and LSTM model. However I keep getting the error </p>
  
  <blockquote>
    <p>ValueError: Error when checking input: expected
    time_distributed_151_input to have 5 dimensions, but got array with
    shape (4732, 32, 32, 3)</p>
  </blockquote>
  
  <p>My model summary looks a bit like this </p>
  
  <h1>    Layer (type)                 Output Shape              Param #</h1>
  
  <p>time_distributed_151 (TimeDi (None, 3, 32, 13, 13)     4736      </p>
  
  <hr>
  
  <p>time_distributed_152 (TimeDi (None, 3, 32, 11, 11)     9248      </p>
  
  <hr>
  
  <p>time_distributed_153 (TimeDi (None, 3, 32, 5, 5)       0         </p>
  
  <hr>
  
  <p>I can't seem to expand my input shape to the 5 dimensional array it is expecting. After looking at various sources online, I have had no luck in being able to reshape my numpy array. </p>
  
  <p>Any help would be brilliant</p>