Class Cropping1D.Builder
- java.lang.Object
-
- org.deeplearning4j.nn.conf.layers.Layer.Builder<Cropping1D.Builder>
-
- org.deeplearning4j.nn.conf.layers.convolutional.Cropping1D.Builder
-
- Enclosing class:
- Cropping1D
public static class Cropping1D.Builder extends Layer.Builder<Cropping1D.Builder>
-
-
Field Summary
-
Fields inherited from class org.deeplearning4j.nn.conf.layers.Layer.Builder
allParamConstraints, biasConstraints, iDropout, layerName, weightConstraints
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Cropping1D
build()
void
setCropping(int... cropping)
-
Methods inherited from class org.deeplearning4j.nn.conf.layers.Layer.Builder
constrainAllParameters, constrainBias, constrainWeights, dropOut, dropOut, name
-
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(@NonNull @lombok.NonNull int[] cropping)
- Parameters:
cropping
- Cropping amount for top/bottom (in that order). Must be length 1 or 2 array.
-
Builder
public Builder(int cropTopBottom)
- Parameters:
cropTopBottom
- Amount of cropping to apply to both the top and the bottom of the input activations
-
Builder
public Builder(int cropTop, int cropBottom)
- Parameters:
cropTop
- Amount of cropping to apply to the top of the input activationscropBottom
- Amount of cropping to apply to the bottom of the input activations
-
-
Method Detail
-
setCropping
public void setCropping(int... cropping)
- Parameters:
cropping
- Cropping amount for top/bottom (in that order). Must be length 1 or 2 array.
-
build
public Cropping1D build()
- Specified by:
build
in classLayer.Builder<Cropping1D.Builder>
-
-