protected abstract static class ConvolutionLayer.BaseConvBuilder<T extends ConvolutionLayer.BaseConvBuilder<T>> extends FeedForwardLayer.Builder<T>
Modifier and Type | Field and Description |
---|---|
protected int |
convolutionDim |
protected ConvolutionMode |
convolutionMode |
protected ConvolutionLayer.AlgoMode |
cudnnAlgoMode |
protected boolean |
cudnnAllowFallback |
protected ConvolutionLayer.BwdDataAlgo |
cudnnBwdDataAlgo |
protected ConvolutionLayer.BwdFilterAlgo |
cudnnBwdFilterAlgo |
protected ConvolutionLayer.FwdAlgo |
cudnnFwdAlgo |
protected int[] |
dilation |
protected boolean |
hasBias |
int[] |
kernelSize |
protected int[] |
padding |
protected int[] |
stride |
nIn, nOut
activationFn, biasInit, biasUpdater, dist, gradientNormalization, gradientNormalizationThreshold, iupdater, l1, l1Bias, l2, l2Bias, weightInit, weightNoise
allParamConstraints, biasConstraints, iDropout, layerName, weightConstraints
Modifier | Constructor and Description |
---|---|
protected |
BaseConvBuilder() |
protected |
BaseConvBuilder(int... kernelSize) |
protected |
BaseConvBuilder(int[] kernelSize,
int[] stride) |
protected |
BaseConvBuilder(int[] kernelSize,
int[] stride,
int dim) |
protected |
BaseConvBuilder(int[] kernelSize,
int[] stride,
int[] padding) |
protected |
BaseConvBuilder(int[] kernelSize,
int[] stride,
int[] padding,
int dim) |
protected |
BaseConvBuilder(int[] kernelSize,
int[] stride,
int[] padding,
int[] dilation) |
protected |
BaseConvBuilder(int[] kernelSize,
int[] stride,
int[] padding,
int[] dilation,
int dim) |
protected |
BaseConvBuilder(int dim,
int... kernelSize) |
Modifier and Type | Method and Description |
---|---|
T |
convolutionMode(ConvolutionMode convolutionMode)
Set the convolution mode for the Convolution layer.
|
T |
cudnnAlgoMode(ConvolutionLayer.AlgoMode cudnnAlgoMode)
Defaults to "PREFER_FASTEST", but "NO_WORKSPACE" uses less memory.
|
T |
cudnnAllowFallback(boolean allowFallback)
When using CuDNN and an error is encountered, should fallback to the non-CuDNN implementatation be allowed?
If set to false, an exception in CuDNN will be propagated back to the user.
|
T |
cudnnBwdDataMode(ConvolutionLayer.BwdDataAlgo cudnnBwdDataAlgo) |
T |
cudnnBwdFilterMode(ConvolutionLayer.BwdFilterAlgo cudnnBwdFilterAlgo) |
T |
cudnnFwdMode(ConvolutionLayer.FwdAlgo cudnnFwdAlgo) |
T |
dilation(int... dilation)
Kernel dilation.
|
T |
hasBias(boolean hasBias)
If true (default): include bias parameters in the model.
|
nIn, nOut, units
activation, activation, biasInit, biasUpdater, dist, gradientNormalization, gradientNormalizationThreshold, l1, l1Bias, l2, l2Bias, updater, updater, weightInit, weightInit, weightNoise
build, constrainAllParameters, constrainBias, constrainWeights, dropOut, dropOut, name
protected int convolutionDim
protected boolean hasBias
protected ConvolutionMode convolutionMode
protected int[] dilation
public int[] kernelSize
protected int[] stride
protected int[] padding
protected ConvolutionLayer.AlgoMode cudnnAlgoMode
protected ConvolutionLayer.FwdAlgo cudnnFwdAlgo
protected ConvolutionLayer.BwdFilterAlgo cudnnBwdFilterAlgo
protected ConvolutionLayer.BwdDataAlgo cudnnBwdDataAlgo
protected boolean cudnnAllowFallback
protected BaseConvBuilder(int[] kernelSize, int[] stride, int[] padding, int[] dilation, int dim)
protected BaseConvBuilder(int[] kernelSize, int[] stride, int[] padding, int[] dilation)
protected BaseConvBuilder(int[] kernelSize, int[] stride, int[] padding, int dim)
protected BaseConvBuilder(int[] kernelSize, int[] stride, int[] padding)
protected BaseConvBuilder(int[] kernelSize, int[] stride, int dim)
protected BaseConvBuilder(int[] kernelSize, int[] stride)
protected BaseConvBuilder(int dim, int... kernelSize)
protected BaseConvBuilder(int... kernelSize)
protected BaseConvBuilder()
public T hasBias(boolean hasBias)
hasBias
- If true: include bias parameters in this modelpublic T convolutionMode(ConvolutionMode convolutionMode)
ConvolutionMode
for more detailsconvolutionMode
- Convolution mode for layerpublic T dilation(int... dilation)
dilation
- Dilation for kernelpublic T cudnnAlgoMode(ConvolutionLayer.AlgoMode cudnnAlgoMode)
public T cudnnFwdMode(ConvolutionLayer.FwdAlgo cudnnFwdAlgo)
public T cudnnBwdFilterMode(ConvolutionLayer.BwdFilterAlgo cudnnBwdFilterAlgo)
public T cudnnBwdDataMode(ConvolutionLayer.BwdDataAlgo cudnnBwdDataAlgo)
public T cudnnAllowFallback(boolean allowFallback)
allowFallback
- Whether fallback to non-CuDNN implementation should be usedCopyright © 2018. All rights reserved.