The size of output dimension.
Initialization method for the weights of the layer. Default is Xavier. You can also pass in corresponding string representations such as 'glorot_uniform' or 'normal', etc. for simple init methods in the factory method.
Activation function to use. Default is null. You can also pass in corresponding string representations such as 'relu' or 'sigmoid', etc. for simple activations in the factory method.
An instance of Regularizer, (eg. L1 or L2 regularization), applied to the input weights matrices. Default is null.
An instance of Regularizer, applied to the bias. Default is null.
Whether to include a bias (i.e. make the layer affine rather than linear). Default is true.
A Single Shape, does not include the batch dimension.
Activation function to use.
Activation function to use. Default is null. You can also pass in corresponding string representations such as 'relu' or 'sigmoid', etc. for simple activations in the factory method.
An instance of Regularizer, applied to the bias.
An instance of Regularizer, applied to the bias. Default is null.
Whether to include a bias (i.e.
Whether to include a bias (i.e. make the layer affine rather than linear). Default is true.
Build graph: some other modules point to current module
Build graph: some other modules point to current module
upstream variables
Variable containing current module
Initialization method for the weights of the layer.
Initialization method for the weights of the layer. Default is Xavier. You can also pass in corresponding string representations such as 'glorot_uniform' or 'normal', etc. for simple init methods in the factory method.
A Single Shape, does not include the batch dimension.
A Single Shape, does not include the batch dimension.
The size of output dimension.
The size of output dimension.
An instance of Regularizer, (eg.
An instance of Regularizer, (eg. L1 or L2 regularization), applied to the input weights matrices. Default is null.
(Since version 0.3.0) please use recommended saveModule(path, overWrite)
A densely-connected NN layer. The most common input is 2D.
When you use this layer as the first layer of a model, you need to provide the argument inputShape (a Single Shape, does not include the batch dimension).
Numeric type of parameter(e.g. weight, bias). Only support float/double now.