Class DenseLayer

    • Method Detail

      • isPretrainLayer

        public boolean isPretrainLayer()
        Description copied from interface: Layer
        Returns true if the layer can be trained in an unsupervised/pretrain manner (AE, VAE, etc)
        Returns:
        true if the layer can be pretrained (using fit(INDArray), false otherwise
      • hasBias

        public boolean hasBias()
        Description copied from class: BaseLayer
        Does this layer have no bias term? Many layers (dense, convolutional, output, embedding) have biases by default, but no-bias versions are possible via configuration
        Overrides:
        hasBias in class BaseLayer<DenseLayer>
        Returns:
        True if a bias term is present, false otherwise
      • hasLayerNorm

        public boolean hasLayerNorm()
        Description copied from class: BaseLayer
        Does this layer support and is it enabled layer normalization? Only Dense and SimpleRNN Layers support layer normalization.
        Overrides:
        hasLayerNorm in class BaseLayer<DenseLayer>
        Returns:
        True if layer normalization is enabled on this layer, false otherwise