Class LeNet.Builder

  • Enclosing class:
    LeNet

    public static final class LeNet.Builder
    extends java.lang.Object
    The Builder to construct a LeNet object.
    • Method Detail

      • setNumChannels

        public LeNet.Builder setNumChannels​(int[] numChannels)
        Sets the number of channels for the LeNet blocks.
        Parameters:
        numChannels - the number of channels for every LeNet block.
        Returns:
        this Builder
      • setOutSize

        public LeNet.Builder setOutSize​(long outSize)
        Sets the size of the output.
        Parameters:
        outSize - the output size
        Returns:
        this Builder
      • build

        public ai.djl.nn.Block build()
        Builds a LeNet block.
        Returns:
        the LeNet block