| Modifier and Type | Field and Description |
|---|---|
protected Map<String,KerasLayer> |
KerasModel.layers |
protected List<KerasLayer> |
KerasModel.layersOrdered |
| Modifier and Type | Method and Description |
|---|---|
protected long |
KerasLayer.getNInFromConfig(Map<String,? extends KerasLayer> previousLayers)
Some DL4J layers need explicit specification of number of inputs, which Keras does infer.
|
static void |
KerasLayer.registerCustomLayer(String layerName,
Class<? extends KerasLayer> configClass)
Register a custom layer
|
| Modifier and Type | Class and Description |
|---|---|
class |
KerasInput
Imports an Input layer from Keras.
|
class |
KerasLoss |
class |
KerasTFOpLayer |
| Modifier and Type | Class and Description |
|---|---|
class |
KerasELU |
class |
KerasLeakyReLU
Imports LeakyReLU layer from Keras
|
class |
KerasPReLU
Imports PReLU layer from Keras
|
class |
KerasReLU |
class |
KerasSoftmax |
class |
KerasThresholdedReLU
Imports ThresholdedReLU layer from Keras
|
| Modifier and Type | Class and Description |
|---|---|
class |
KerasAtrousConvolution1D |
class |
KerasAtrousConvolution2D |
class |
KerasConvolution |
class |
KerasConvolution1D |
class |
KerasConvolution2D |
class |
KerasConvolution3D |
class |
KerasCropping1D |
class |
KerasCropping2D |
class |
KerasCropping3D |
class |
KerasDeconvolution2D |
class |
KerasDepthwiseConvolution2D |
class |
KerasSeparableConvolution2D |
class |
KerasSpaceToDepth |
class |
KerasUpsampling1D
Keras Upsampling1D layer support
|
class |
KerasUpsampling2D
Keras Upsampling2D layer support
|
class |
KerasUpsampling3D
Keras Upsampling3D layer support
|
class |
KerasZeroPadding1D
Imports a Keras ZeroPadding 1D layer.
|
class |
KerasZeroPadding2D
Imports a Keras ZeroPadding 2D layer.
|
class |
KerasZeroPadding3D
Imports a Keras ZeroPadding 3D layer.
|
| Constructor and Description |
|---|
KerasDepthwiseConvolution2D(Map<String,Object> layerConfig,
Map<String,? extends KerasLayer> previousLayers)
Constructor from parsed Keras layer configuration dictionary.
|
KerasDepthwiseConvolution2D(Map<String,Object> layerConfig,
Map<String,? extends KerasLayer> previousLayers,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasDepthwiseConvolution2D(Map<String,Object> layerConfig,
Map<String,? extends KerasLayer> previousLayers,
List<String> layerNamesToCheck,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
| Modifier and Type | Class and Description |
|---|---|
class |
KerasActivation |
class |
KerasDense
Imports a Dense layer from Keras.
|
class |
KerasDropout
Imports a Dropout layer from Keras.
|
class |
KerasFlatten |
class |
KerasLambda
Wraps a DL4J SameDiffLambda into a KerasLayer
|
class |
KerasMasking
Imports Keras masking layers.
|
class |
KerasMerge |
class |
KerasPermute
Imports Permute layer from Keras
|
class |
KerasRepeatVector |
class |
KerasReshape
Imports Reshape layer from Keras
|
class |
KerasSpatialDropout
Keras wrapper for DL4J dropout layer with SpatialDropout, works 1D-3D.
|
| Modifier and Type | Class and Description |
|---|---|
class |
KerasLRN |
class |
KerasPoolHelper |
| Modifier and Type | Class and Description |
|---|---|
class |
Keras2DEmbedding
Imports an Embedding layer from Keras.
|
class |
KerasEmbedding
Imports an Embedding layer from Keras.
|
| Modifier and Type | Class and Description |
|---|---|
class |
KerasLocallyConnected1D |
class |
KerasLocallyConnected2D |
| Modifier and Type | Class and Description |
|---|---|
class |
KerasAlphaDropout
Keras wrapper for DL4J dropout layer with AlphaDropout.
|
class |
KerasGaussianDropout
Keras wrapper for DL4J dropout layer with GaussianDropout.
|
class |
KerasGaussianNoise
Keras wrapper for DL4J dropout layer with GaussianNoise.
|
| Modifier and Type | Class and Description |
|---|---|
class |
KerasBatchNormalization |
| Constructor and Description |
|---|
KerasBatchNormalization(Map<String,Object> layerConfig,
boolean enforceTrainingConfig,
Map<String,? extends KerasLayer> previousLayers)
Constructor from parsed Keras layer configuration dictionary.
|
| Modifier and Type | Class and Description |
|---|---|
class |
KerasGlobalPooling
Imports a Keras Pooling layer as a DL4J Subsampling layer.
|
class |
KerasPooling1D
Imports a Keras 1D Pooling layer as a DL4J Subsampling layer.
|
class |
KerasPooling2D
Imports a Keras 2D Pooling layer as a DL4J Subsampling layer.
|
class |
KerasPooling3D
Imports a Keras 3D Pooling layer as a DL4J Subsampling3D layer.
|
| Modifier and Type | Class and Description |
|---|---|
class |
KerasLSTM
Imports a Keras LSTM layer as a DL4J LSTM layer.
|
class |
KerasSimpleRnn
Imports a Keras SimpleRNN layer as a DL4J SimpleRnn layer.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
KerasRnnUtils.isRnnLayer(KerasLayer kerasLayer)
|
| Constructor and Description |
|---|
KerasLSTM(Map<String,Object> layerConfig,
boolean enforceTrainingConfig,
Map<String,? extends KerasLayer> previousLayers)
Constructor from parsed Keras layer configuration dictionary.
|
KerasLSTM(Map<String,Object> layerConfig,
Map<String,? extends KerasLayer> previousLayers)
Constructor from parsed Keras layer configuration dictionary.
|
KerasSimpleRnn(Map<String,Object> layerConfig,
boolean enforceTrainingConfig,
Map<String,? extends KerasLayer> previousLayers)
Constructor from parsed Keras layer configuration dictionary.
|
KerasSimpleRnn(Map<String,Object> layerConfig,
Map<String,? extends KerasLayer> previousLayers)
Constructor from parsed Keras layer configuration dictionary.
|
| Modifier and Type | Class and Description |
|---|---|
class |
KerasBidirectional |
| Constructor and Description |
|---|
KerasBidirectional(Map<String,Object> layerConfig,
boolean enforceTrainingConfig,
Map<String,? extends KerasLayer> previousLayers)
Constructor from parsed Keras layer configuration dictionary.
|
KerasBidirectional(Map<String,Object> layerConfig,
Map<String,? extends KerasLayer> previousLayers)
Constructor from parsed Keras layer configuration dictionary.
|
| Modifier and Type | Method and Description |
|---|---|
static KerasLayer |
KerasLayerUtils.getKerasLayerFromConfig(Map<String,Object> layerConfig,
boolean enforceTrainingConfig,
KerasLayerConfiguration conf,
Map<String,Class<? extends KerasLayer>> customLayers,
Map<String,SameDiffLambdaLayer> lambdaLayers,
Map<String,? extends KerasLayer> previousLayers)
Build KerasLayer from a Keras layer configuration.
|
static KerasLayer |
KerasLayerUtils.getKerasLayerFromConfig(Map<String,Object> layerConfig,
KerasLayerConfiguration conf,
Map<String,Class<? extends KerasLayer>> customLayers,
Map<String,SameDiffLambdaLayer> lambdaLayers,
Map<String,? extends KerasLayer> previousLayers)
Build KerasLayer from a Keras layer configuration.
|
| Modifier and Type | Method and Description |
|---|---|
static Model |
KerasModelUtils.copyWeightsToModel(Model model,
Map<String,KerasLayer> kerasLayers)
Helper function to import weights from nested Map into existing model.
|
static KerasLayer |
KerasLayerUtils.getKerasLayerFromConfig(Map<String,Object> layerConfig,
boolean enforceTrainingConfig,
KerasLayerConfiguration conf,
Map<String,Class<? extends KerasLayer>> customLayers,
Map<String,SameDiffLambdaLayer> lambdaLayers,
Map<String,? extends KerasLayer> previousLayers)
Build KerasLayer from a Keras layer configuration.
|
static KerasLayer |
KerasLayerUtils.getKerasLayerFromConfig(Map<String,Object> layerConfig,
boolean enforceTrainingConfig,
KerasLayerConfiguration conf,
Map<String,Class<? extends KerasLayer>> customLayers,
Map<String,SameDiffLambdaLayer> lambdaLayers,
Map<String,? extends KerasLayer> previousLayers)
Build KerasLayer from a Keras layer configuration.
|
static KerasLayer |
KerasLayerUtils.getKerasLayerFromConfig(Map<String,Object> layerConfig,
KerasLayerConfiguration conf,
Map<String,Class<? extends KerasLayer>> customLayers,
Map<String,SameDiffLambdaLayer> lambdaLayers,
Map<String,? extends KerasLayer> previousLayers)
Build KerasLayer from a Keras layer configuration.
|
static KerasLayer |
KerasLayerUtils.getKerasLayerFromConfig(Map<String,Object> layerConfig,
KerasLayerConfiguration conf,
Map<String,Class<? extends KerasLayer>> customLayers,
Map<String,SameDiffLambdaLayer> lambdaLayers,
Map<String,? extends KerasLayer> previousLayers)
Build KerasLayer from a Keras layer configuration.
|
static org.nd4j.common.primitives.Pair<Boolean,Double> |
KerasLayerUtils.getMaskingConfiguration(List<String> inboundLayerNames,
Map<String,? extends KerasLayer> previousLayers) |
static void |
KerasModelUtils.importWeights(Hdf5Archive weightsArchive,
String weightsRoot,
Map<String,KerasLayer> layers,
int kerasVersion,
String backend)
Store weights to import with each associated Keras layer.
|
Copyright © 2021. All rights reserved.