public IActivation getGateActivationFromConfig ( Map < String , Object > layerConfig ) throws InvalidKerasConfigurationException , UnsupportedKerasConfigurationException { Map < String , Object > innerConfig = KerasLayerUtils . getInnerLayerConfigFromConfig ( layerConfig , conf ) ; if ( ! innerConfig . containsKey ( conf . getLAYER_FIELD_INNER_ACTIVATION ( ) ) ) throw new InvalidKerasConfigurationException ( "Keras LSTM layer config missing " + conf . getLAYER_FIELD_INNER_ACTIVATION ( ) + " field" ) ; return mapToIActivation ( ( String ) innerConfig . get ( conf . getLAYER_FIELD_INNER_ACTIVATION ( ) ) , conf ) ; }
Get LSTM gate activation function from Keras layer configuration .