title: How to fix"NameError: name 'load_model' is not defined"
body: <p>I am reading the book"Deep Learning with Python" and I have come across a problem. I have used Pycharm to save models in anther file and when I tried to load it by the function 'load_model()', the system supports that 'NameError: name 'load_model' is not defined'. pycharm 2019.1.3 keras 2.2.4 tensorflow 1.13.0</p>
  
  <pre><code>from keras import models
  model = load_model('cats_and_dogs_small_2.h5')
  </code></pre>
  
  <p>Using TensorFlow backend.
  Traceback (most recent call last):
    File "F:/python program/visualizDemo/main.py", line 2, in 
      model = load_model('cats_and_dogs_small_2.h5')
  NameError: name 'load_model' is not defined</p>
  
  <p>Process finished with exit code 1</p>