Added Maximum merge layer to getKerasLayerFromConfig (#9161)

Signed-off-by: Ross Messing <rmessing@squarespace.com>
master
Ross Messing 2021-01-25 19:10:13 -05:00 committed by GitHub
parent 7f571b3c52
commit 2aa2a8be40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -280,6 +280,9 @@ public class KerasLayerUtils {
} else if (layerClassName.equals(conf.getLAYER_CLASS_NAME_MULTIPLY()) ||
layerClassName.equals(conf.getLAYER_CLASS_NAME_FUNCTIONAL_MULTIPLY())) {
layer = new KerasMerge(layerConfig, ElementWiseVertex.Op.Product, enforceTrainingConfig);
} else if (layerClassName.equals(conf.getLAYER_CLASS_NAME_MAXIMUM()) ||
layerClassName.equals(conf.getLAYER_CLASS_NAME_FUNCTIONAL_MAXIMUM())) {
layer = new KerasMerge(layerConfig, ElementWiseVertex.Op.Max, enforceTrainingConfig);
} else if (layerClassName.equals(conf.getLAYER_CLASS_NAME_CONCATENATE()) ||
layerClassName.equals(conf.getLAYER_CLASS_NAME_FUNCTIONAL_CONCATENATE())) {
layer = new KerasMerge(layerConfig, null, enforceTrainingConfig);