title: How to reshape an array of shape (150,150,3) to an array of shape (1,8192)
body: <p>I have trained a deep learning model as follows, its a classifier base for VGG16.</p>
  
  <pre><code>model = tf.keras.models.Sequential([
  tf.keras.layers.Dense(256, activation='relu', input_dim=4 * 4 * 512),
  tf.keras.layers.Dropout(0.5),
  tf.keras.layers.Dense(1, activation='sigmoid')
  </code></pre>
  
  <p>1-My model accepts tensors of shape (1,8192) for predictions.</p>
  
  <p>2-I have test images of shape (150,150,3) which are converted to arrays.</p>
  
  <p>3-Now I want a method to convert my (150,150,3) images to tensors of shape (1,8192).</p>