Skip to content

Commit

Permalink
support elu and selu
Browse files Browse the repository at this point in the history
  • Loading branch information
maxpumperla committed Sep 8, 2017
1 parent 79215bd commit 4fa7389
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ public static IActivation mapActivation(String kerasActivation, KerasLayerConfig
dl4jActivation = new ActivationSoftSign();
} else if (kerasActivation.equals(conf.getKERAS_ACTIVATION_RELU())) {
dl4jActivation = new ActivationReLU();
} else if (kerasActivation.equals(conf.getKERAS_ACTIVATION_ELU())) {
dl4jActivation = new ActivationELU();
} else if (kerasActivation.equals(conf.getKERAS_ACTIVATION_SELU())) {
dl4jActivation = new ActivationSELU();
} else if (kerasActivation.equals(conf.getKERAS_ACTIVATION_TANH())) {
dl4jActivation = new ActivationTanH();
} else if (kerasActivation.equals(conf.getKERAS_ACTIVATION_SIGMOID())) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"bias_regularizer": null,
"bias_constraint": null,
"dtype": "float32",
"activation": "linear",
"activation": "elu",
"trainable": true,
"kernel_regularizer": null,
"bias_initializer": {
Expand Down Expand Up @@ -100,7 +100,7 @@
"bias_regularizer": null,
"bias_constraint": null,
"dtype": "float32",
"activation": "tanh",
"activation": "selu",
"trainable": true,
"kernel_regularizer": null,
"bias_initializer": {
Expand Down

0 comments on commit 4fa7389

Please sign in to comment.