public class KerasDepthwiseConvolution2D extends KerasConvolution
KerasLayer.DimOrder
hasBias, numTrainableParams
className, conf, dimOrder, dropout, inboundLayerNames, inputShape, kerasMajorVersion, layer, layerName, vertex, weightL1Regularization, weightL2Regularization, weights
Constructor and Description |
---|
KerasDepthwiseConvolution2D(java.lang.Integer kerasVersion)
Pass-through constructor from KerasLayer
|
KerasDepthwiseConvolution2D(java.util.Map<java.lang.String,java.lang.Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasDepthwiseConvolution2D(java.util.Map<java.lang.String,java.lang.Object> layerConfig,
java.util.Map<java.lang.String,? extends KerasLayer> previousLayers)
Constructor from parsed Keras layer configuration dictionary.
|
KerasDepthwiseConvolution2D(java.util.Map<java.lang.String,java.lang.Object> layerConfig,
java.util.Map<java.lang.String,? extends KerasLayer> previousLayers,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasDepthwiseConvolution2D(java.util.Map<java.lang.String,java.lang.Object> layerConfig,
java.util.Map<java.lang.String,? extends KerasLayer> previousLayers,
java.util.List<java.lang.String> layerNamesToCheck,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
Modifier and Type | Method and Description |
---|---|
DepthwiseConvolution2D |
getDepthwiseConvolution2DLayer()
Get DL4J DepthwiseConvolution2D.
|
InputType |
getOutputType(InputType... inputType)
Get layer output type.
|
void |
setWeights(java.util.Map<java.lang.String,INDArray> weights)
Set weights for layer.
|
getConvParameterValues, getNumParams
clearCustomLayers, clearLambdaLayers, copyWeightsToLayer, getClassName, getDimOrder, getInboundLayerNames, getInputPreprocessor, getInputShape, getKerasMajorVersion, getLayer, getLayerName, getNInFromConfig, getVertex, getWeights, isInputPreProcessor, isLayer, isValidInboundLayer, isVertex, registerCustomLayer, registerLambdaLayer, setInboundLayerNames, usesRegularization
public KerasDepthwiseConvolution2D(java.lang.Integer kerasVersion) throws UnsupportedKerasConfigurationException
kerasVersion
- major keras versionUnsupportedKerasConfigurationException
- Unsupported Keras configurationpublic KerasDepthwiseConvolution2D(java.util.Map<java.lang.String,java.lang.Object> layerConfig) throws InvalidKerasConfigurationException, UnsupportedKerasConfigurationException
layerConfig
- dictionary containing Keras layer configurationInvalidKerasConfigurationException
- Invalid Keras configurationUnsupportedKerasConfigurationException
- Unsupported Keras configurationpublic KerasDepthwiseConvolution2D(java.util.Map<java.lang.String,java.lang.Object> layerConfig, java.util.Map<java.lang.String,? extends KerasLayer> previousLayers) throws InvalidKerasConfigurationException, UnsupportedKerasConfigurationException
layerConfig
- dictionary containing Keras layer configurationInvalidKerasConfigurationException
- Invalid Keras configurationUnsupportedKerasConfigurationException
- Unsupported Keras configurationpublic KerasDepthwiseConvolution2D(java.util.Map<java.lang.String,java.lang.Object> layerConfig, java.util.Map<java.lang.String,? extends KerasLayer> previousLayers, boolean enforceTrainingConfig) throws InvalidKerasConfigurationException, UnsupportedKerasConfigurationException
layerConfig
- dictionary containing Keras layer configurationenforceTrainingConfig
- whether to enforce training-related configuration optionsInvalidKerasConfigurationException
- Invalid Keras configurationUnsupportedKerasConfigurationException
- Unsupported Keras configurationpublic KerasDepthwiseConvolution2D(java.util.Map<java.lang.String,java.lang.Object> layerConfig, java.util.Map<java.lang.String,? extends KerasLayer> previousLayers, java.util.List<java.lang.String> layerNamesToCheck, boolean enforceTrainingConfig) throws InvalidKerasConfigurationException, UnsupportedKerasConfigurationException
layerConfig
- dictionary containing Keras layer configurationenforceTrainingConfig
- whether to enforce training-related configuration optionsInvalidKerasConfigurationException
- Invalid Keras configurationUnsupportedKerasConfigurationException
- Unsupported Keras configurationpublic void setWeights(java.util.Map<java.lang.String,INDArray> weights) throws InvalidKerasConfigurationException
setWeights
in class KerasConvolution
weights
- Map of weightsInvalidKerasConfigurationException
public DepthwiseConvolution2D getDepthwiseConvolution2DLayer()
public InputType getOutputType(InputType... inputType) throws InvalidKerasConfigurationException
getOutputType
in class KerasLayer
inputType
- Array of InputTypesInvalidKerasConfigurationException
- Invalid Keras config