Basic..::..Dense Method (Int32, Int32, String, Boolean, String, String)
Dense implements the operation: output = activation(dot(input, kernel) + bias) where activation is the element-wise activation function passed as the activation argument, kernel is a weights matrix created by the layer, and bias is a bias vector created by the layer (only applicable if use_bias is True).
Namespace:
SiaNet.NNAssembly: SiaNet (in SiaNet.dll)
Syntax
public static Function Dense( int shape, int dim, string activation, bool useBias, string weightInitializer, string biasInitializer )
Parameters
- shape
- Type: Int32
The input shape.
- 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