From f74fbeee5bcb9bac42e660181113e340d6e4df98 Mon Sep 17 00:00:00 2001 From: pwwang <1188067+pwwang@users.noreply.github.com> Date: Sat, 19 Aug 2023 23:51:07 -0700 Subject: [PATCH] Skip keras layer_masking --- R/Convert_keras.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/R/Convert_keras.R b/R/Convert_keras.R index e13de07..b5656dd 100644 --- a/R/Convert_keras.R +++ b/R/Convert_keras.R @@ -3,7 +3,7 @@ implemented_layers_keras <- c( "MaxPooling1D", "MaxPooling2D", "AveragePooling1D", "AveragePooling2D", "Concatenate", "Add", "Activation", "ZeroPadding1D", "ZeroPadding2D", "BatchNormalization", "GlobalAveragePooling1D", "GlobalAveragePooling2D", - "GlobalMaxPooling1D", "GlobalMaxPooling2D" + "GlobalMaxPooling1D", "GlobalMaxPooling2D", "Masking" ) @@ -51,6 +51,7 @@ convert_keras_model <- function(model) { # convolutional layers! layer_list <- switch(type, + Masking = convert_keras_skipping(type), InputLayer = convert_keras_skipping(type), Dropout = convert_keras_skipping(type), Dense = convert_keras_dense(layer),