public static String getClassNameFromConfig ( Map < String , Object > layerConfig , KerasLayerConfiguration conf ) throws InvalidKerasConfigurationException { if ( ! layerConfig . containsKey ( conf . getLAYER_FIELD_CLASS_NAME ( ) ) ) throw new InvalidKerasConfigurationException ( "Field " + conf . getLAYER_FIELD_CLASS_NAME ( ) + " missing from layer config" ) ; return ( String ) layerConfig . get ( conf . getLAYER_FIELD_CLASS_NAME ( ) ) ; }
Get Keras layer class name from Keras layer configuration .