Interface Layer<O extends Tensor>
- Type Parameters:
O- specific type of output tensor
- All Known Implementing Classes:
AbstractLayer, CBOWEmbeddingLayer, ConvolutionalLayer, EmbeddingLayer, FlatEmbeddingLayer, FlattenLayer, FullyConnectedLayer, InputLayer, LayerNorm, MaxPoolingLayer, OutputLayer, SkipGramEmbeddingLayer, SoftmaxOutputLayer
Common base interface for all types of neural network layers.
Layer is a basic building block of a neural network.
Neural network typically consists of a sequence of layers.
Layer performs mathematical operations on it's inputs, and provides output which is used as an input for the next layer.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidbackward()Performs weight parameters adjustment in backward pass during training of a neural network.voidforward()Performs calculation of layer outputs in forward pass of a neural network .Returns layer deltas/errors (as a tensor).Returns output of this layer (as a tensor).
-
Method Details
-
forward
-
backward
-
getOutputs
-
getDeltas
O getDeltas()Returns layer deltas/errors (as a tensor). Deltas are accumulated errors propagated from the next layer.- Returns:
- layer deltas tensor
-