Basic..::..Dense Method (Variable, Int32, String, Boolean, String, String)
Denses the specified layer.
Namespace:
SiaNet.NNAssembly: SiaNet (in SiaNet.dll)
Syntax
public static Function Dense( Variable layer, int dim, string activation, bool useBias, string weightInitializer, string biasInitializer )
Parameters
- layer
- Type: Variable
The output of the last layer.
- dim
- Type: Int32
Positive integer, dimensionality of the output space.
- activation
- Type: String
- useBias
- Type: Boolean
Boolean, whether the layer uses a bias vector.
- weightInitializer
- Type: String
Initializer for the kernel weights matrix. OptInitializers
- biasInitializer
- Type: String
Initializer for the bias vector. OptInitializers