Show / Hide Table of Contents

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.

Inheritance
System.Object
BaseInitializer
VarianceScaling
GlorotUniform
Inherited Members
VarianceScaling.Scale
VarianceScaling.Mode
VarianceScaling.Distribution
VarianceScaling.Seed
VarianceScaling.Generate(Int64[])
BaseInitializer.Name
Namespace: SiaNet.Initializers
Assembly: SiaNet.dll
Syntax
public class GlorotUniform : VarianceScaling

Constructors

| Improve this Doc View Source

GlorotUniform(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.

See Also

VarianceScaling
  • Improve this Doc
  • View Source
Back to top Generated by DocFX