public interface Layer
extends scala.Serializable
| Modifier and Type | Method and Description | 
|---|---|
| LayerModel | createModel(breeze.linalg.DenseVector<Object> initialWeights)Returns the instance of the layer based on weights provided. | 
| int | getOutputSize(int inputSize)Returns the output size given the input size (not counting the stack size). | 
| LayerModel | initModel(breeze.linalg.DenseVector<Object> weights,
         java.util.Random random)Returns the instance of the layer with random generated weights. | 
| boolean | inPlace()If true, the memory is not allocated for the output of this layer. | 
| int | weightSize()Number of weights that is used to allocate memory for the weights vector | 
LayerModel createModel(breeze.linalg.DenseVector<Object> initialWeights)
initialWeights - vector with layer weightsint getOutputSize(int inputSize)
inputSize - input sizeboolean inPlace()
LayerModel initModel(breeze.linalg.DenseVector<Object> weights, java.util.Random random)
weights - vector for weights initialization, must be equal to weightSizerandom - random number generatorint weightSize()