public static class Cropping2D.Builder extends Layer.Builder<Cropping2D.Builder>
allParamConstraints, biasConstraints, iDropout, layerName, weightConstraints| Constructor and Description |
|---|
Builder() |
Builder(@NonNull int[] cropping) |
Builder(int cropTopBottom,
int cropLeftRight) |
Builder(int cropTop,
int cropBottom,
int cropLeft,
int cropRight) |
| Modifier and Type | Method and Description |
|---|---|
Cropping2D |
build() |
Cropping2D.Builder |
dataFormat(CNN2DFormat format)
Set the data format for the CNN activations - NCHW (channels first) or NHWC (channels last).
|
void |
setCropping(int... cropping) |
constrainAllParameters, constrainBias, constrainWeights, dropOut, dropOut, namepublic Builder()
public Builder(@NonNull
@NonNull int[] cropping)
cropping - Cropping amount for top/bottom/left/right (in that order). Must be length 4 array.public Builder(int cropTopBottom,
int cropLeftRight)
cropTopBottom - Amount of cropping to apply to both the top and the bottom of the input activationscropLeftRight - Amount of cropping to apply to both the left and the right of the input activationspublic Builder(int cropTop,
int cropBottom,
int cropLeft,
int cropRight)
cropTop - Amount of cropping to apply to the top of the input activationscropBottom - Amount of cropping to apply to the bottom of the input activationscropLeft - Amount of cropping to apply to the left of the input activationscropRight - Amount of cropping to apply to the right of the input activationspublic Cropping2D.Builder dataFormat(CNN2DFormat format)
CNN2DFormat for more details.format - Format for activations (in and out)public void setCropping(int... cropping)
cropping - Cropping amount for top/bottom/left/right (in that order). Must be length 1, 2, or 4 array.public Cropping2D build()
build in class Layer.Builder<Cropping2D.Builder>Copyright © 2022. All rights reserved.