public class PointwiseFeedForwardBlock extends SequentialBlock
children, inputNames, inputShapes, parameters, version
Constructor and Description |
---|
PointwiseFeedForwardBlock(java.util.List<java.lang.Integer> hiddenSizes,
int outputSize,
java.util.function.Function<NDList,NDList> activationFunction)
Creates a pointwise feed-forward block.
|
add, add, addAll, addAll, addSingleton, forwardInternal, forwardInternal, getOutputShapes, initializeChildBlocks, loadMetadata, removeLastBlock, replaceLastBlock, toString
addChildBlock, addParameter, beforeInitialize, cast, clear, describeInput, forward, forward, getChildren, getDirectParameters, getParameters, initialize, isInitialized, loadParameters, prepare, readInputShapes, saveInputShapes, saveMetadata, saveParameters, setInitializer, setInitializer, setInitializer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forward, validateLayout
public PointwiseFeedForwardBlock(java.util.List<java.lang.Integer> hiddenSizes, int outputSize, java.util.function.Function<NDList,NDList> activationFunction)
hiddenSizes
- the sizes of the hidden layersoutputSize
- the output sizeactivationFunction
- the activation function to use for the hidden layers (not applied
to output)