Class Cropping2D.Builder

    • Constructor Detail

      • Builder

        public Builder()
      • Builder

        public Builder​(@NonNull
                       @lombok.NonNull int[] cropping)
        Parameters:
        cropping - Cropping amount for top/bottom/left/right (in that order). Must be length 4 array.
      • Builder

        public Builder​(int cropTopBottom,
                       int cropLeftRight)
        Parameters:
        cropTopBottom - Amount of cropping to apply to both the top and the bottom of the input activations
        cropLeftRight - Amount of cropping to apply to both the left and the right of the input activations
      • Builder

        public Builder​(int cropTop,
                       int cropBottom,
                       int cropLeft,
                       int cropRight)
        Parameters:
        cropTop - Amount of cropping to apply to the top of the input activations
        cropBottom - Amount of cropping to apply to the bottom of the input activations
        cropLeft - Amount of cropping to apply to the left of the input activations
        cropRight - Amount of cropping to apply to the right of the input activations
    • Method Detail

      • dataFormat

        public Cropping2D.Builder dataFormat​(CNN2DFormat format)
        Set the data format for the CNN activations - NCHW (channels first) or NHWC (channels last). See CNN2DFormat for more details.
        Default: NCHW
        Parameters:
        format - Format for activations (in and out)
      • setCropping

        public void setCropping​(int... cropping)
        Parameters:
        cropping - Cropping amount for top/bottom/left/right (in that order). Must be length 1, 2, or 4 array.