title: numpy model.predict() doesn't function
body: <p>Hello i'm a newbie with Numpy, Keras and stackoverflow, i have a problem, i am in a loop</p>
  <pre><code>        roi = roi.reshape(28,28)
          roi = (np.linalg.norm(roi))
          probas = model.predict(roi)[0]
          #number = np.argmax(probas[i])
          #i+=1
  </code></pre>
  <p>And i am sure my reshape works
  And it gives me</p>
  <pre><code>ValueError                                Traceback (most recent call last)
  
  &lt;ipython-input-385-3ee67baef91d&gt; in &lt;module&gt;()
  ----&gt; 1 detect_digits(&quot;/content/drive/MyDrive/Colab Notebooks/photo1.jpg&quot;, network)
  
  3 frames
  
  &lt;ipython-input-384-79a58876db55&gt; in detect_digits(image_name, model)
      49         # 2. Use 'model' to make a prediction
      50 
  ---&gt; 51         probas = model.predict(roi)[0]
      52 
      53         # 3. Based on the prediction, determine the class (a number between 0 and 9)
  
  /usr/local/lib/python3.7/dist-packages/tensorflow/python/keras/engine/training.py in predict(self, x, batch_size, verbose, steps, callbacks, max_queue_size, workers, use_multiprocessing)
    1606           use_multiprocessing=use_multiprocessing,
    1607           model=self,
  -&gt; 1608           steps_per_execution=self._steps_per_execution)
    1609 
    1610       # Container that configures and calls `tf.keras.Callback`s.
  
  /usr/local/lib/python3.7/dist-packages/tensorflow/python/keras/engine/data_adapter.py in __init__(self, x, y, sample_weight, batch_size, steps_per_epoch, initial_epoch, epochs, shuffle, class_weight, max_queue_size, workers, use_multiprocessing, model, steps_per_execution)
    1097       self._steps_per_execution_value = steps_per_execution.numpy().item()
    1098 
  -&gt; 1099     adapter_cls = select_data_adapter(x, y)
    1100     self._adapter = adapter_cls(
    1101         x,
  
  /usr/local/lib/python3.7/dist-packages/tensorflow/python/keras/engine/data_adapter.py in select_data_adapter(x, y)
     962         &quot;Failed to find data adapter that can handle &quot;
     963         &quot;input: {}, {}&quot;.format(
  --&gt; 964             _type_name(x), _type_name(y)))
     965   elif len(adapter_cls) &gt; 1:
     966     raise RuntimeError(
  
  ValueError: Failed to find data adapter that can handle input: &lt;class 'numpy.float32'&gt;, &lt;class 'NoneType'&gt;
  
  </code></pre>
  <p>Can someone explain me i seriously don't understand what and where is the problem
  Thanks for your answers</p>