public class KerasRnnUtils extends Object
| Constructor and Description |
|---|
KerasRnnUtils() |
| Modifier and Type | Method and Description |
|---|---|
static double |
getRecurrentDropout(KerasLayerConfiguration conf,
Map<String,Object> layerConfig)
Get recurrent weight dropout from Keras layer configuration.
|
static boolean |
getUnrollRecurrentLayer(KerasLayerConfiguration conf,
Map<String,Object> layerConfig)
Get unroll parameter to decide whether to unroll RNN with BPTT or not.
|
public static boolean getUnrollRecurrentLayer(KerasLayerConfiguration conf, Map<String,Object> layerConfig) throws InvalidKerasConfigurationException
conf - KerasLayerConfigurationlayerConfig - dictionary containing Keras layer propertiesInvalidKerasConfigurationException - Invalid Keras configurationpublic static double getRecurrentDropout(KerasLayerConfiguration conf, Map<String,Object> layerConfig) throws UnsupportedKerasConfigurationException, InvalidKerasConfigurationException
conf - KerasLayerConfigurationlayerConfig - dictionary containing Keras layer propertiesInvalidKerasConfigurationException - Invalid Keras configurationUnsupportedKerasConfigurationExceptionCopyright © 2018. All rights reserved.