Class SpaceToBatchLayer.Builder<T extends SpaceToBatchLayer.Builder<T>>

    • Field Detail

      • blocks

        protected int[] blocks
        Block size for SpaceToBatch layer. Should be a length 2 array for the height and width dimensions
      • padding

        protected int[][] padding
        A 2d array, with format [[padTop, padBottom], [padLeft, padRight]]
    • Constructor Detail

      • Builder

        public Builder​(int[] blocks)
        Parameters:
        blocks - Block size for SpaceToBatch layer. Should be a length 2 array for the height and width dimensions
      • Builder

        public Builder​(int[] blocks,
                       int[][] padding)
        Parameters:
        blocks - Block size for SpaceToBatch layer. Should be a length 2 array for the height and width dimensions
        padding - Padding - should be a 2d array, with format [[padTop, padBottom], [padLeft, padRight]]
    • Method Detail

      • setBlocks

        public void setBlocks​(int... blocks)
        Parameters:
        blocks - Block size for SpaceToBatch layer. Should be a length 2 array for the height and width dimensions
      • setPadding

        public void setPadding​(int[][] padding)
        Parameters:
        padding - Padding - should be a 2d array, with format [[padTop, padBottom], [padLeft, padRight]]
      • dataFormat

        public T 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)
      • blocks

        public T blocks​(int... blocks)
        Parameters:
        blocks - Block size for SpaceToBatch layer. Should be a length 2 array for the height and width dimensions
      • padding

        public T padding​(int[][] padding)
        Parameters:
        padding - Padding - should be a 2d array, with format [[padTop, padBottom], [padLeft, padRight]]