Dense Constructor (Int32, Int32, String, Boolean, String, String)

Initializes a new instance of the Dense class.

Namespace:  SiaNet.Model.Layers
Assembly:  SiaNet (in SiaNet.dll)

Syntax


public Dense(
	int dim,
	int shape,
	string act,
	bool useBias,
	string weightInitializer,
	string biasInitializer
)
Public Sub New ( _
	dim As Integer, _
	shape As Integer, _
	act As String, _
	useBias As Boolean, _
	weightInitializer As String, _
	biasInitializer As String _
)
public:
Dense(
	int^ dim, 
	int^ shape, 
	String^ act, 
	bool^ useBias, 
	String^ weightInitializer, 
	String^ biasInitializer
)

Parameters

dim
Type: Int32
Positive integer, dimensionality of the output space..
shape
Type: Int32
The input shape.
act
Type: String
Activation function to use. If you don't specify anything, no activation is applied (ie. "linear" activation: a(x) = x). OptActivations
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