public static class ZeroPaddingLayer.Builder extends Layer.Builder<ZeroPaddingLayer.Builder>
allParamConstraints, biasConstraints, iDropout, layerName, weightConstraints| Constructor and Description |
|---|
Builder(int[] padding) |
Builder(int padHeight,
int padWidth) |
Builder(int padTop,
int padBottom,
int padLeft,
int padRight) |
| Modifier and Type | Method and Description |
|---|---|
ZeroPaddingLayer |
build() |
ZeroPaddingLayer.Builder |
dataFormat(CNN2DFormat format)
Set the data format for the CNN activations - NCHW (channels first) or NHWC (channels last).
|
void |
setPadding(int... padding) |
constrainAllParameters, constrainBias, constrainWeights, dropOut, dropOut, namepublic Builder(int padHeight,
int padWidth)
padHeight - Padding for both the top and bottompadWidth - Padding for both the left and rightpublic Builder(int padTop,
int padBottom,
int padLeft,
int padRight)
padTop - Top padding valuepadBottom - Bottom padding valuepadLeft - Left padding valuepadRight - Right padding valuepublic Builder(int[] padding)
padding - Must be a length 1 array with values [paddingAll], a length 2 array with values
[padTopBottom, padLeftRight], or a length 4 array with
values [padTop, padBottom, padLeft, padRight]public ZeroPaddingLayer.Builder dataFormat(CNN2DFormat format)
CNN2DFormat for more details.format - Format for activations (in and out)public void setPadding(int... padding)
padding - Padding value for top, bottom, left, and right. Must be length 4 arraypublic ZeroPaddingLayer build()
build in class Layer.Builder<ZeroPaddingLayer.Builder>Copyright © 2022. All rights reserved.