title: Error loading the saved optimizer. keras python raspberry
body: <p>I have trained a keras sequential model in a linux 64 machine and saved to a .h5 file.</p>
  
  <p>It this PC I can load the model and do predictions without problems.</p>
  
  <p>Now I'm implementing the prediction in a Raspberry Pi 3 that have installed keras, tensorflow, h5py and python3.</p>
  
  <p>when I load the model</p>
  
  <pre><code>from keras.models import load_model
  model = load_model('model-0.6358.h5')
  </code></pre>
  
  <p>, I'm getting: </p>
  
  <pre><code>usr/lib/python3.4/importlib/_bootstrap.py:321: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
  return f(*args, **kwds)
  
  /usr/local/lib/python3.4/dist-packages/keras/models.py:291: UserWarning: Error in loading the saved optimizer state. As a result, your model is starting with a freshly initialized optimizer.
  warnings.warn('Error in loading the saved optimizer '
  </code></pre>
  
  <p>But... it looks like it predicts right.</p>
  
  <p>How can I avoid that warning message?</p>