Class BaseInitializer
Base class for the initializer. Initializes the tensor weights or bias with values based on the type of the initializer selected.
Inheritance
System.Object
BaseInitializer
Namespace: SiaNet.Initializers
Assembly: SiaNet.dll
Syntax
public abstract class BaseInitializer
Constructors
| Improve this Doc View SourceBaseInitializer(String)
Initializes a new instance of the BaseInitializer class.
Declaration
public BaseInitializer(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the initializer. |
Properties
| Improve this Doc View SourceName
Gets or sets the name of the initializer.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name. |
Methods
| Improve this Doc View SourceGenerate(Int64[])
Generates a tensor with specified shape.
Declaration
public abstract Tensor Generate(params long[] shape)
Parameters
Type | Name | Description |
---|---|---|
System.Int64[] | shape | The shape of the tensor. |
Returns
Type | Description |
---|---|
Tensor |