Skip to content

Commit

Permalink
Merge pull request deeplearning4j#4031 from deeplearning4j/mp_elu_mod…
Browse files Browse the repository at this point in the history
…el_import

support elu and selu in model import
  • Loading branch information
maxpumperla authored Sep 8, 2017
2 parents 79215bd + 4fa7389 commit 648ebbd
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 648ebbd

Please sign in to comment.