public static void checkForUnsupportedConfigurations ( Map < String , Object > layerConfig , boolean enforceTrainingConfig , KerasLayerConfiguration conf ) throws UnsupportedKerasConfigurationException , InvalidKerasConfigurationException { getBiasL1RegularizationFromConfig ( layerConfig , enforceTrainingConfig , conf ) ; getBiasL2RegularizationFromConfig ( layerConfig , enforceTrainingConfig , conf ) ; Map < String , Object > innerConfig = KerasLayerUtils . getInnerLayerConfigFromConfig ( layerConfig , conf ) ; if ( innerConfig . containsKey ( conf . getLAYER_FIELD_W_REGULARIZER ( ) ) ) { checkForUnknownRegularizer ( ( Map < String , Object > ) innerConfig . get ( conf . getLAYER_FIELD_W_REGULARIZER ( ) ) , enforceTrainingConfig , conf ) ; } if ( innerConfig . containsKey ( conf . getLAYER_FIELD_B_REGULARIZER ( ) ) ) { checkForUnknownRegularizer ( ( Map < String , Object > ) innerConfig . get ( conf . getLAYER_FIELD_B_REGULARIZER ( ) ) , enforceTrainingConfig , conf ) ; } }
Checks whether layer config contains unsupported options .