models

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	models.Model
	// contains filtered or unexported fields
}

func NewModel

func NewModel(argLayers interface{}, args ...interface{}) *Model

func (*Model) Bprop

func (m *Model) Bprop(delta []backends.Tensor) []backends.Tensor

func (*Model) ClassName

func (m *Model) ClassName() string

func (*Model) Eval

func (m *Model) Eval(dataset *data.DataIterator, metric transforms.Metric) []backends.Value

func (*Model) Fit

func (m *Model) Fit(
	dataset *data.DataIterator,
	cost layers.Cost,
	optimizer optimizers.Optimizer,
	numEpochs int,
	callbks *callbacks.Callbacks)

func (*Model) Fprop

func (m *Model) Fprop(x []backends.Tensor, inference bool) []backends.Tensor

func (*Model) GetOutputs

func (m *Model) GetOutputs(dataset *data.DataIterator, writer data.DataWriter)

func (*Model) Init

func (m *Model) Init(self base.Object, argLayers interface{}, args base.Args)

func (*Model) Initialize

func (m *Model) Initialize(inObj []int, cost layers.Cost)

func (*Model) LoadParams

func (m *Model) LoadParams(paramPath string)

func (*Model) SaveParams

func (m *Model) SaveParams(paramPath string)

type ParamReader

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

func NewParamReader

func NewParamReader(be generators.Generator, symbol string) *ParamReader

func (*ParamReader) Read

func (r *ParamReader) Read(x backends.Tensor)

type ParamWriter

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

func NewParamWriter

func NewParamWriter(be generators.Generator, symbol string) *ParamWriter

func (*ParamWriter) Write

func (r *ParamWriter) Write(x backends.Tensor)

Jump to

Keyboard shortcuts

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