| 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
Builds a DL4J LossLayer from a Keras training loss function.
|
| Modifier and Type | Class and Description |
|---|---|
class |
KerasLeakyReLU
Imports LeakyReLU layer from Keras
|
class |
KerasPReLU
Imports PReLU layer from Keras
|
class |
KerasThresholdedReLU
Imports ThresholdedReLU layer from Keras
|
| Modifier and Type | Class and Description |
|---|---|
class |
KerasAtrousConvolution1D
Keras 1D atrous / dilated convolution layer.
|
class |
KerasAtrousConvolution2D
Keras 1D atrous / dilated convolution layer.
|
class |
KerasConvolution
Keras Convolution base layer
|
class |
KerasConvolution1D
Imports a 1D Convolution layer from Keras.
|
class |
KerasConvolution2D
Imports a 2D Convolution layer from Keras.
|
class |
KerasConvolution3D
Imports a 3D Convolution layer from Keras.
|
class |
KerasCropping1D
Imports a Keras Cropping 1D layer.
|
class |
KerasCropping2D
Imports a Keras Cropping 2D layer.
|
class |
KerasCropping3D
Imports a Keras Cropping 3D layer.
|
class |
KerasDeconvolution2D
Imports a 2D Deconvolution layer from Keras.
|
class |
KerasDepthwiseConvolution2D
Keras depth-wise convolution 2D layer support
|
class |
KerasSeparableConvolution2D
Keras separable convolution 2D layer support
|
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
Imports an Activation layer from Keras.
|
class |
KerasDense
Imports a Dense layer from Keras.
|
class |
KerasDropout
Imports a Dropout layer from Keras.
|
class |
KerasFlatten
Imports a Keras Flatten layer as a DL4J {Cnn,Rnn}ToFeedForwardInputPreProcessor.
|
class |
KerasLambda
Wraps a DL4J SameDiffLambda into a KerasLayer
|
class |
KerasMerge
Imports a Keras Merge layer as a DL4J Merge (graph) vertex.
|
class |
KerasPermute
Imports Permute layer from Keras
|
class |
KerasRepeatVector
Imports a Keras RepeatVector layer
|
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
Keras does not have an official LRN layer.
|
class |
KerasPoolHelper
Custom PoolHelper layer developed for importing GoogLeNet.
|
| Modifier and Type | Class and Description |
|---|---|
class |
KerasEmbedding
Imports an Embedding layer from Keras.
|
| Modifier and Type | Class and Description |
|---|---|
class |
KerasLocallyConnected1D
Imports a 1D locally connected layer from Keras.
|
class |
KerasLocallyConnected2D
Imports a 2D locally connected layer from Keras.
|
| 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
Imports a BatchNormalization layer from Keras.
|
| 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.
|
| 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.
|
| Modifier and Type | Class and Description |
|---|---|
class |
KerasBidirectional
Builds a DL4J Bidirectional layer from a Keras Bidirectional layer wrapper
|
| 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 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 © 2018. All rights reserved.