Fix model loading for LeakyReLU layer
@@ -41,7 +41,7 @@ class LeakyReLU(Layer):
return K.relu(inputs, alpha=self.alpha)
def get_config(self):
- config = {'alpha': self.alpha}
+ config = {'alpha': float(self.alpha)}
base_config = super(LeakyReLU, self).get_config()
return dict(list(base_config.items()) + list(config.items()))
