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.NN
Assembly:  SiaNet (in SiaNet.dll)

Syntax


public static Function Dense(
	int shape,
	int dim,
	string activation,
	bool useBias,
	string weightInitializer,
	string biasInitializer
)
Public Shared Function Dense ( _
	shape As Integer, _
	dim As Integer, _
	activation As String, _
	useBias As Boolean, _
	weightInitializer As String, _
	biasInitializer As String _
) As Function
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

Return Value