initializers

package
v0.0.0-...-2fe1034 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Constant

type Constant struct {
	InitializerBase
	// contains filtered or unexported fields
}

func NewConstant

func NewConstant(args ...interface{}) *Constant

func (*Constant) ClassName

func (n *Constant) ClassName() string

func (*Constant) Fill

func (n *Constant) Fill(param backends.Tensor)

func (*Constant) Init

func (n *Constant) Init(self base.Object, args base.Args)

type Gaussian

type Gaussian struct {
	InitializerBase
	// contains filtered or unexported fields
}

func NewGaussian

func NewGaussian(args ...interface{}) *Gaussian

func (*Gaussian) ClassName

func (n *Gaussian) ClassName() string

func (*Gaussian) Fill

func (n *Gaussian) Fill(param backends.Tensor)

func (*Gaussian) Init

func (n *Gaussian) Init(self base.Object, args base.Args)

type GlorotUniform

type GlorotUniform struct {
	InitializerBase
}

func NewGlorotUniform

func NewGlorotUniform(args ...interface{}) *GlorotUniform

func (*GlorotUniform) ClassName

func (n *GlorotUniform) ClassName() string

func (*GlorotUniform) Fill

func (n *GlorotUniform) Fill(param backends.Tensor)

func (*GlorotUniform) Init

func (n *GlorotUniform) Init(self base.Object, args base.Args)

type Identity

type Identity struct {
	InitializerBase
	// contains filtered or unexported fields
}

func NewIdentity

func NewIdentity(args ...interface{}) *Identity

func (*Identity) ClassName

func (n *Identity) ClassName() string

func (*Identity) Fill

func (n *Identity) Fill(param backends.Tensor)

func (*Identity) Init

func (n *Identity) Init(self base.Object, args base.Args)

type Initializer

type Initializer interface {
	base.Object
	Fill(param backends.Tensor)
}

func ToInitializer

func ToInitializer(v interface{}) Initializer

type InitializerArg

type InitializerArg struct {
	base.ArgDefBase
}

func NewInitializerArg

func NewInitializerArg() *InitializerArg

func NewInitializerArgOpt

func NewInitializerArgOpt(defval Initializer) *InitializerArg

func (*InitializerArg) Expand

func (a *InitializerArg) Expand(v interface{}) (interface{}, bool)

type InitializerBase

type InitializerBase struct {
	base.ObjectBase
}

type Kaiming

type Kaiming struct {
	InitializerBase
	// contains filtered or unexported fields
}

func NewKaiming

func NewKaiming(args ...interface{}) *Kaiming

func (*Kaiming) ClassName

func (n *Kaiming) ClassName() string

func (*Kaiming) Fill

func (n *Kaiming) Fill(param backends.Tensor)

func (*Kaiming) Init

func (n *Kaiming) Init(self base.Object, args base.Args)

type Orthonormal

type Orthonormal struct {
	InitializerBase
	// contains filtered or unexported fields
}

func NewOrthonormal

func NewOrthonormal(args ...interface{}) *Orthonormal

func (*Orthonormal) ClassName

func (n *Orthonormal) ClassName() string

func (*Orthonormal) Fill

func (n *Orthonormal) Fill(param backends.Tensor)

func (*Orthonormal) Init

func (n *Orthonormal) Init(self base.Object, args base.Args)

type Uniform

type Uniform struct {
	InitializerBase
	// contains filtered or unexported fields
}

func NewUniform

func NewUniform(args ...interface{}) *Uniform

func (*Uniform) ClassName

func (n *Uniform) ClassName() string

func (*Uniform) Fill

func (n *Uniform) Fill(param backends.Tensor)

func (*Uniform) Init

func (n *Uniform) Init(self base.Object, args base.Args)

type Xavier

type Xavier struct {
	InitializerBase
	// contains filtered or unexported fields
}

func NewXavier

func NewXavier(args ...interface{}) *Xavier

func (*Xavier) ClassName

func (n *Xavier) ClassName() string

func (*Xavier) Fill

func (n *Xavier) Fill(param backends.Tensor)

func (*Xavier) Init

func (n *Xavier) Init(self base.Object, args base.Args)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL