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, toStringaddChildBlock, addParameter, beforeInitialize, cast, clear, describeInput, forward, forward, getChildren, getDirectParameters, getParameters, initialize, isInitialized, loadParameters, prepare, readInputShapes, saveInputShapes, saveMetadata, saveParameters, setInitializer, setInitializer, setInitializerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforward, validateLayoutpublic 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)