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.
|
static boolean |
isRnnLayer(KerasLayer kerasLayer)
|
public static boolean isRnnLayer(KerasLayer kerasLayer)
kerasLayer - the input layerpublic 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 © 2021. All rights reserved.