public static class DepthwiseConvolution2D.Builder extends ConvolutionLayer.BaseConvBuilder<DepthwiseConvolution2D.Builder>
Modifier and Type | Field and Description |
---|---|
int |
depthMultiplier
Set channels multiplier for depth-wise convolution
|
convolutionDim, convolutionMode, cudnnAlgoMode, cudnnAllowFallback, cudnnBwdDataAlgo, cudnnBwdFilterAlgo, cudnnFwdAlgo, dilation, hasBias, kernelSize, padding, stride
nIn, nOut
activationFn, biasInit, biasUpdater, gainInit, gradientNormalization, gradientNormalizationThreshold, iupdater, regularization, regularizationBias, weightInitFn, weightNoise
allParamConstraints, biasConstraints, iDropout, layerName, weightConstraints
Constructor and Description |
---|
Builder() |
Builder(int... kernelSize) |
Builder(int[] kernelSize,
int[] stride) |
Builder(int[] kernelSize,
int[] stride,
int[] padding) |
Modifier and Type | Method and Description |
---|---|
DepthwiseConvolution2D |
build() |
DepthwiseConvolution2D.Builder |
depthMultiplier(int depthMultiplier)
Set channels multiplier for depth-wise convolution
|
DepthwiseConvolution2D.Builder |
kernelSize(int... kernelSize)
Size of the convolution rows/columns
|
DepthwiseConvolution2D.Builder |
padding(int... padding)
Padding of the convolution in rows/columns (height/width) dimensions
|
void |
setDilation(int... dilation) |
void |
setKernelSize(int... kernelSize) |
void |
setPadding(int... padding) |
void |
setStride(int... stride) |
DepthwiseConvolution2D.Builder |
stride(int... stride)
Stride of the convolution in rows/columns (height/width) dimensions
|
convolutionMode, cudnnAlgoMode, cudnnAllowFallback, cudnnBwdDataMode, cudnnBwdFilterMode, cudnnFwdMode, dilation, hasBias, helperAllowFallback
nIn, nIn, nOut, nOut, units
activation, activation, biasInit, biasUpdater, dist, gainInit, gradientNormalization, gradientNormalizationThreshold, l1, l1Bias, l2, l2Bias, regularization, regularizationBias, updater, updater, weightDecay, weightDecay, weightDecayBias, weightDecayBias, weightInit, weightInit, weightInit, weightNoise
constrainAllParameters, constrainBias, constrainWeights, dropOut, dropOut, name
public int depthMultiplier
public Builder(int[] kernelSize, int[] stride, int[] padding)
public Builder(int[] kernelSize, int[] stride)
public Builder(int... kernelSize)
public Builder()
public DepthwiseConvolution2D.Builder depthMultiplier(int depthMultiplier)
depthMultiplier
- integer value, for each input map we get depthMultiplier outputs in channels-wise
step.public DepthwiseConvolution2D.Builder kernelSize(int... kernelSize)
kernelSize
in class ConvolutionLayer.BaseConvBuilder<DepthwiseConvolution2D.Builder>
kernelSize
- the height and width of the kernelpublic DepthwiseConvolution2D.Builder stride(int... stride)
stride
in class ConvolutionLayer.BaseConvBuilder<DepthwiseConvolution2D.Builder>
stride
- Stride of the layerpublic DepthwiseConvolution2D.Builder padding(int... padding)
padding
in class ConvolutionLayer.BaseConvBuilder<DepthwiseConvolution2D.Builder>
padding
- Padding of the layerpublic void setKernelSize(int... kernelSize)
public void setStride(int... stride)
public void setPadding(int... padding)
public void setDilation(int... dilation)
public DepthwiseConvolution2D build()
build
in class Layer.Builder<DepthwiseConvolution2D.Builder>
Copyright © 2019. All rights reserved.