net

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Net

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

func New

func New() *Net

func (*Net) Add

func (n *Net) Add(layer layer.Layer)

func (*Net) Backward

func (n *Net) Backward(grad mat.Matrix, ctx [][]mat.Matrix) []*params.Params

func (*Net) Forward

func (n *Net) Forward(input mat.Matrix, isTraining bool) (ret mat.Matrix, context [][]mat.Matrix)

func (*Net) Layers

func (n *Net) Layers() []layer.Layer

func (*Net) LoadLayers

func (n *Net) LoadLayers(layers []*pb.Layer)

func (*Net) ParamCount

func (n *Net) ParamCount() uint64

func (*Net) Params

func (n *Net) Params() []*params.Params

func (*Net) Print

func (n *Net) Print()

func (*Net) SaveLayers

func (n *Net) SaveLayers() []*pb.Layer

func (*Net) Set

func (n *Net) Set(layer ...layer.Layer)

Jump to

Keyboard shortcuts

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