Class GlorotUniform
Glorot uniform initializer, also called Xavier uniform initializer.
It draws samples from a uniform distribution within[-limit, limit] where limit is sqrt(6 / (fan_in + fan_out)) where fan_in is the number of input units in the weight tensor and fan_out is the number of output units in the weight tensor.
Inherited Members
Namespace: SiaNet.Initializers
Assembly: SiaNet.dll
Syntax
public class GlorotUniform : VarianceScaling
Constructors
| Improve this Doc View SourceGlorotUniform(Nullable<Int32>)
Initializes a new instance of the GlorotUniform class.
Declaration
public GlorotUniform(int? seed = default(int? ))
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.Int32> | seed | Used to seed the random generator. |