Package deepnetts.net.layers
Interface Layer<O extends TensorBase>
- All Known Implementing Classes:
AbstractLayer
,ConvolutionalLayer
,FlattenLayer
,FullyConnectedLayer
,InputLayer
,MaxPoolingLayer
,OutputLayer
,SoftmaxOutputLayer
public interface Layer<O extends TensorBase>
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 to yhe next layer as an input.
invalid reference
NeuralNetwork
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
backward()
Performs weight parameters adjustment in backward pass during training of a neural network.void
forward()
Performs layer calculation in forward pass of a neural network.Returns layer deltas/errors (as a tensor).Returns layer outputs (as a tensor).
-
Method Details
-
forward
void forward()Performs layer calculation in forward pass of a neural network. -
backward
void backward()Performs weight parameters adjustment in backward pass during training of a neural network. -
getOutputs
-
getDeltas
O getDeltas()Returns layer deltas/errors (as a tensor). Deltas are accumulated errors propagated from the next layer.- Returns:
- layer deltas tensor
-