initializer

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Initializer

type Initializer interface {
	Rand() float32
	RandN(n int) []float32
	RandShape(shapes ...int64) []float32
}

type XavierUniform

type XavierUniform struct {
	// contains filtered or unexported fields
}

func NewXavierUniform

func NewXavierUniform(gain float64) *XavierUniform

func (*XavierUniform) Rand

func (rand *XavierUniform) Rand() float32

func (*XavierUniform) RandN

func (rand *XavierUniform) RandN(n int) []float32

func (*XavierUniform) RandShape

func (rand *XavierUniform) RandShape(shapes ...int64) []float32

Jump to

Keyboard shortcuts

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