public static boolean getZeroMaskingFromConfig ( Map < String , Object > layerConfig , KerasLayerConfiguration conf ) throws InvalidKerasConfigurationException { Map < String , Object > innerConfig = KerasLayerUtils . getInnerLayerConfigFromConfig ( layerConfig , conf ) ; boolean hasZeroMasking = true ; if ( innerConfig . containsKey ( conf . getLAYER_FIELD_MASK_ZERO ( ) ) ) { hasZeroMasking = ( boolean ) innerConfig . get ( conf . getLAYER_FIELD_MASK_ZERO ( ) ) ; } return hasZeroMasking ; }
Get zero masking flag