Show / Hide Table of Contents

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
Constant
RandomNormal
RandomUniform
TruncatedNormal
VarianceScaling
Namespace: SiaNet.Initializers
Assembly: SiaNet.dll
Syntax
public abstract class BaseInitializer

Constructors

| Improve this Doc View Source

BaseInitializer(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 Source

Name

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 Source

Generate(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
  • Improve this Doc
  • View Source
Back to top Generated by DocFX