Class PointwiseFeedForwardBlock

All Implemented Interfaces:
StreamingBlock, Block

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

    • PointwiseFeedForwardBlock

      public PointwiseFeedForwardBlock(List<Integer> hiddenSizes, int outputSize, 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)