public static class DepthwiseConvolution2D.Builder extends ConvolutionLayer.BaseConvBuilder<DepthwiseConvolution2D.Builder>
| Modifier and Type | Field and Description |
|---|---|
protected CNN2DFormat |
cnn2DFormat |
protected int |
depthMultiplier
Set channels multiplier for depth-wise convolution
|
convolutionDim, convolutionMode, cudnnAlgoMode, cudnnAllowFallback, cudnnBwdDataAlgo, cudnnBwdFilterAlgo, cudnnFwdAlgo, dilation, hasBias, kernelSize, padding, stridenIn, nOutactivationFn, biasInit, biasUpdater, gainInit, gradientNormalization, gradientNormalizationThreshold, iupdater, regularization, regularizationBias, weightInitFn, weightNoiseallParamConstraints, 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 |
|---|---|
protected boolean |
allowCausal() |
DepthwiseConvolution2D |
build() |
DepthwiseConvolution2D.Builder |
dataFormat(CNN2DFormat format)
Set the data format for the CNN activations - NCHW (channels first) or NHWC (channels last).
|
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, setConvolutionModenIn, nIn, nOut, nOut, unitsactivation, activation, biasInit, biasUpdater, dist, gainInit, gradientNormalization, gradientNormalizationThreshold, l1, l1Bias, l2, l2Bias, regularization, regularizationBias, updater, updater, weightDecay, weightDecay, weightDecayBias, weightDecayBias, weightInit, weightInit, weightInit, weightNoiseconstrainAllParameters, constrainBias, constrainWeights, dropOut, dropOut, nameprotected int depthMultiplier
protected CNN2DFormat cnn2DFormat
public Builder(int[] kernelSize,
int[] stride,
int[] padding)
public Builder(int[] kernelSize,
int[] stride)
public Builder(int... kernelSize)
public Builder()
protected boolean allowCausal()
allowCausal in class ConvolutionLayer.BaseConvBuilder<DepthwiseConvolution2D.Builder>public DepthwiseConvolution2D.Builder dataFormat(CNN2DFormat format)
CNN2DFormat for more details.format - Format for activations (in and out)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 © 2020. All rights reserved.