public abstract class KerasConvolution extends KerasLayer
KerasLayer.DimOrder| Modifier and Type | Field and Description |
|---|---|
protected boolean |
hasBias |
protected int |
numTrainableParams |
className, conf, dimOrder, dropout, inboundLayerNames, inputShape, kerasMajorVersion, layer, layerName, originalLayerConfig, outboundLayerNames, vertex, weightL1Regularization, weightL2Regularization, weights| Constructor and Description |
|---|
KerasConvolution() |
KerasConvolution(Integer kerasVersion)
Pass-through constructor from KerasLayer
|
KerasConvolution(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasConvolution(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
| Modifier and Type | Method and Description |
|---|---|
INDArray |
getConvParameterValues(INDArray kerasParamValue)
Return processed parameter values obtained from Keras convolutional layers.
|
int |
getNumParams()
Returns number of trainable parameters in layer.
|
void |
setWeights(Map<String,INDArray> weights)
Set weights for layer.
|
clearCustomLayers, clearLambdaLayers, copyWeightsToLayer, getClassName, getDimOrder, getInboundLayerNames, getInputPreprocessor, getInputShape, getKerasMajorVersion, getLayer, getLayerName, getNInFromConfig, getOutputType, getVertex, getWeights, isInputPreProcessor, isLayer, isValidInboundLayer, isVertex, registerCustomLayer, registerLambdaLayer, setInboundLayerNames, setLayer, usesRegularizationpublic KerasConvolution()
throws UnsupportedKerasConfigurationException
public KerasConvolution(Integer kerasVersion) throws UnsupportedKerasConfigurationException
kerasVersion - major keras versionUnsupportedKerasConfigurationException - Unsupported Keras configpublic KerasConvolution(Map<String,Object> layerConfig) throws InvalidKerasConfigurationException, UnsupportedKerasConfigurationException
layerConfig - dictionary containing Keras layer configurationInvalidKerasConfigurationException - Invalid Keras configUnsupportedKerasConfigurationException - Unsupported Keras configpublic KerasConvolution(Map<String,Object> layerConfig, boolean enforceTrainingConfig) throws InvalidKerasConfigurationException, UnsupportedKerasConfigurationException
layerConfig - dictionary containing Keras layer configurationenforceTrainingConfig - whether to enforce training-related configuration optionsInvalidKerasConfigurationException - Invalid Keras configUnsupportedKerasConfigurationException - Unsupported Keras configpublic int getNumParams()
getNumParams in class KerasLayerpublic void setWeights(Map<String,INDArray> weights) throws InvalidKerasConfigurationException
setWeights in class KerasLayerweights - Map from parameter name to INDArray.InvalidKerasConfigurationExceptionpublic INDArray getConvParameterValues(INDArray kerasParamValue) throws InvalidKerasConfigurationException
kerasParamValue - INDArray containing raw Keras weights to be processedInvalidKerasConfigurationException - Invalid Keras configuration exception.Copyright © 2021. All rights reserved.