public static class DepthwiseConvolution2D.Builder extends ConvolutionLayer.BaseConvBuilder<DepthwiseConvolution2D.Builder>
Modifier and Type | Field and Description |
---|---|
int |
depthMultiplier |
convolutionDim, convolutionMode, cudnnAlgoMode, cudnnAllowFallback, cudnnBwdDataAlgo, cudnnBwdFilterAlgo, cudnnFwdAlgo, dilation, hasBias, kernelSize, padding, stride
nIn, nOut
activationFn, biasInit, biasUpdater, dist, gradientNormalization, gradientNormalizationThreshold, iupdater, l1, l1Bias, l2, l2Bias, weightInit, 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) |
DepthwiseConvolution2D.Builder |
stride(int... stride) |
convolutionMode, cudnnAlgoMode, cudnnAllowFallback, cudnnBwdDataMode, cudnnBwdFilterMode, cudnnFwdMode, dilation, hasBias
nIn, nOut, units
activation, activation, biasInit, biasUpdater, dist, gradientNormalization, gradientNormalizationThreshold, l1, l1Bias, l2, l2Bias, updater, updater, weightInit, weightInit, weightNoise
constrainAllParameters, constrainBias, constrainWeights, dropOut, dropOut, name
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
- the height and width of the
kernelpublic DepthwiseConvolution2D.Builder stride(int... stride)
public DepthwiseConvolution2D.Builder padding(int... padding)
public DepthwiseConvolution2D build()
build
in class Layer.Builder<DepthwiseConvolution2D.Builder>
Copyright © 2018. All rights reserved.