public class DepthwiseConvolution2D extends ConvolutionLayer
Performs a channels-wise convolution, which operates on each of the input maps separately. A channel multiplier is used to specify the number of outputs per input map. This convolution is carried out with the specified kernel sizes, stride and padding values.
Modifier and Type | Class and Description |
---|---|
static class |
DepthwiseConvolution2D.Builder |
ConvolutionLayer.AlgoMode, ConvolutionLayer.BaseConvBuilder<T extends ConvolutionLayer.BaseConvBuilder<T>>, ConvolutionLayer.BwdDataAlgo, ConvolutionLayer.BwdFilterAlgo, ConvolutionLayer.FwdAlgo
Modifier and Type | Field and Description |
---|---|
protected int |
depthMultiplier |
cnn2dDataFormat, convolutionMode, cudnnAlgoMode, cudnnAllowFallback, cudnnBwdDataAlgo, cudnnBwdFilterAlgo, cudnnFwdAlgo, dilation, hasBias, kernelSize, padding, stride
nIn, nOut, timeDistributedFormat
activationFn, biasInit, biasUpdater, gainInit, gradientNormalization, gradientNormalizationThreshold, iUpdater, regularization, regularizationBias, weightInitFn, weightNoise
constraints, iDropout, layerName
Modifier | Constructor and Description |
---|---|
protected |
DepthwiseConvolution2D(DepthwiseConvolution2D.Builder builder) |
Modifier and Type | Method and Description |
---|---|
DepthwiseConvolution2D |
clone() |
InputType |
getOutputType(int layerIndex,
InputType inputType)
For a given type of input to this layer, what is the type of the output?
|
ParamInitializer |
initializer() |
Layer |
instantiate(NeuralNetConfiguration conf,
Collection<TrainingListener> trainingListeners,
int layerIndex,
INDArray layerParamsView,
boolean initializeParams,
DataType networkDataType) |
void |
setNIn(InputType inputType,
boolean override)
Set the nIn value (number of inputs, or input channels for CNNs) based on the given input
type
|
getMemoryReport, getPreProcessorForInputType, hasBias
isPretrainParam
getGradientNormalization, getRegularizationByParam, getUpdaterByParam, resetLayerDefaultConfig
initializeConstraints, setDataType
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getGradientNormalizationThreshold, getLayerName
protected DepthwiseConvolution2D(DepthwiseConvolution2D.Builder builder)
public DepthwiseConvolution2D clone()
clone
in class ConvolutionLayer
public Layer instantiate(NeuralNetConfiguration conf, Collection<TrainingListener> trainingListeners, int layerIndex, INDArray layerParamsView, boolean initializeParams, DataType networkDataType)
instantiate
in class ConvolutionLayer
public ParamInitializer initializer()
initializer
in class ConvolutionLayer
public InputType getOutputType(int layerIndex, InputType inputType)
Layer
getOutputType
in class ConvolutionLayer
layerIndex
- Index of the layerinputType
- Type of input for the layerpublic void setNIn(InputType inputType, boolean override)
Layer
setNIn
in class ConvolutionLayer
inputType
- Input type for this layeroverride
- If false: only set the nIn value if it's not already set. If true: set it
regardless of whether it's already set or not.Copyright © 2020. All rights reserved.