public static class Cropping2D.Builder extends Layer.Builder<Cropping2D.Builder>
allParamConstraints, biasConstraints, iDropout, layerName, weightConstraints
Constructor and Description |
---|
Builder() |
Builder(int[] cropping) |
Builder(int cropTopBottom,
int cropLeftRight) |
Builder(int cropTop,
int cropBottom,
int cropLeft,
int cropRight) |
Modifier and Type | Method and Description |
---|---|
Cropping2D |
build() |
constrainAllParameters, constrainBias, constrainWeights, dropOut, dropOut, name
public Builder()
public Builder(@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 build()
build
in class Layer.Builder<Cropping2D.Builder>
Copyright © 2018. All rights reserved.