Class PointwiseFeedForwardBlock

  • All Implemented Interfaces:
    Block

    public class PointwiseFeedForwardBlock
    extends SequentialBlock
    Fully connected Feed-Forward network, only applied to the last dimension of the input.
    • Constructor Detail

      • PointwiseFeedForwardBlock

        public PointwiseFeedForwardBlock​(java.util.List<java.lang.Integer> hiddenSizes,
                                         int outputSize,
                                         java.util.function.Function<NDList,​NDList> activationFunction)
        Creates a pointwise feed-forward block.
        Parameters:
        hiddenSizes - the sizes of the hidden layers
        outputSize - the output size
        activationFunction - the activation function to use for the hidden layers (not applied to output)