title: Unable to load_model due to 'unknown activation_function: LeakyReLU'
body: <p>I have constructed, fitted, and saved the following model:</p>
  <pre><code>import tensorflow as tf
  from tensorflow import keras
  from tensorflow.keras import layers
  from tensorflow.keras import preprocessing
  from tensorflow.keras.models import Sequential
  import config
  from tensorflow.keras import applications  
  
  model = Sequential()  
  model.add(layers.Flatten(input_shape=input_shape.shape[1:]))  
  model.add(layers.Dense(100, activation=keras.layers.LeakyReLU(alpha=0.3)))  
  model.add(layers.Dropout(0.5))  
  model.add(layers.Dense(50, activation=keras.layers.LeakyReLU(alpha=0.3)))  
  model.add(layers.Dropout(0.3)) 
  model.add(layers.Dense(num_classes, activation='softmax'))
  </code></pre>
  <p>I am using the load_model function for evaluation, and I have not had any trouble up until now, but I am now getting the following error:</p>
  <pre><code>ValueError: Unknown activation function: LeakyReLU
  </code></pre>
  <p>Are there any syntactic changes to the architecture I should make, or is there a deeper issue here? Any advice would be appreciated, as I had already tried setting some custom objects as described here: <a href="https://github.com/BBQuercus/deepBlink/issues/107" rel="nofollow noreferrer">https://github.com/BBQuercus/deepBlink/issues/107</a></p>
  <p>Edit:
  My imports in the file where I am calling load_model are the following:</p>
  <pre><code>import config
  import numpy as np
  from tensorflow.keras.preprocessing.image import img_to_array, load_img 
  from models.create_image_model import make_vgg
  import argparse
  from tensorflow.keras.models import load_model
  import time
  from tensorflow import keras
  from tensorflow.keras import layers
  </code></pre>