Last active
June 30, 2018 08:25
-
-
Save hoogenm/d9f7c2e596d38974f3ee1a227fc6ae72 to your computer and use it in GitHub Desktop.
Swish ANN Activation Function (for Keras)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import keras | |
| keras.utils.generic_utils.get_custom_objects().update({'swish': keras.layers.Activation(lambda x: keras.backend.sigmoid(x) * x)}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment