public static boolean getHasBiasFromConfig ( Map < String , Object > layerConfig , KerasLayerConfiguration conf ) throws InvalidKerasConfigurationException { Map < String , Object > innerConfig = KerasLayerUtils . getInnerLayerConfigFromConfig ( layerConfig , conf ) ; boolean hasBias = true ; if ( innerConfig . containsKey ( conf . getLAYER_FIELD_USE_BIAS ( ) ) ) { hasBias = ( boolean ) innerConfig . get ( conf . getLAYER_FIELD_USE_BIAS ( ) ) ; } return hasBias ; }
Determine if layer should be instantiated with bias