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, stridenIn, nOut, timeDistributedFormatactivationFn, biasInit, biasUpdater, gainInit, gradientNormalization, gradientNormalizationThreshold, iUpdater, regularization, regularizationBias, weightInitFn, weightNoiseconstraints, 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, hasBiasisPretrainParamgetGradientNormalization, getRegularizationByParam, getUpdaterByParam, resetLayerDefaultConfiginitializeConstraints, setDataTypeequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetGradientNormalizationThreshold, getLayerNameprotected DepthwiseConvolution2D(DepthwiseConvolution2D.Builder builder)
public DepthwiseConvolution2D clone()
clone in class ConvolutionLayerpublic Layer instantiate(NeuralNetConfiguration conf, Collection<TrainingListener> trainingListeners, int layerIndex, INDArray layerParamsView, boolean initializeParams, DataType networkDataType)
instantiate in class ConvolutionLayerpublic ParamInitializer initializer()
initializer in class ConvolutionLayerpublic InputType getOutputType(int layerIndex, InputType inputType)
LayergetOutputType in class ConvolutionLayerlayerIndex - Index of the layerinputType - Type of input for the layerpublic void setNIn(InputType inputType, boolean override)
LayersetNIn in class ConvolutionLayerinputType - 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.