Basic..::..Dense Method (Variable, Int32, String, Boolean, String, String)

Denses the specified layer.

Namespace:  SiaNet.NN
Assembly:  SiaNet (in SiaNet.dll)

Syntax


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

Return Value