net

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: May 8, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterLoadFunc added in v1.0.2

func RegisterLoadFunc(class string, fn loadFunc)

Types

type Net

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

func New

func New(device consts.DeviceType) *Net

func (*Net) Add

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

func (*Net) Clear added in v1.0.2

func (n *Net) Clear()

func (*Net) GetOptimizer added in v1.0.2

func (n *Net) GetOptimizer() optimizer.Optimizer

func (*Net) Layers

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

func (*Net) Load added in v1.0.0

func (n *Net) Load(dir string) error

func (*Net) ParamCount

func (n *Net) ParamCount() uint64

func (*Net) Params

func (n *Net) Params() []*tensor.Tensor

func (*Net) ReadFrom added in v1.0.0

func (n *Net) ReadFrom(r io.ReaderAt, size int64) (int64, error)

func (*Net) Save added in v1.0.0

func (n *Net) Save(dir string) error

func (*Net) SetDevice added in v1.0.2

func (n *Net) SetDevice(device consts.DeviceType)

func (*Net) SetOptimizer added in v1.0.2

func (n *Net) SetOptimizer(optm optimizer.Optimizer)

func (*Net) ToScalarType added in v1.0.2

func (n *Net) ToScalarType(t consts.ScalarType)

func (*Net) WriteTo added in v1.0.0

func (n *Net) WriteTo(w io.Writer) (int64, error)

Jump to

Keyboard shortcuts

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