highway

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2021 License: BSD-2-Clause Imports: 4 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 {
	nn.BaseModel
	WIn        nn.Param `spago:"type:weights"`
	BIn        nn.Param `spago:"type:biases"`
	WT         nn.Param `spago:"type:weights"`
	BT         nn.Param `spago:"type:biases"`
	Activation ag.OpName
}

Model contains the serializable parameters.

func New

func New(in int, activation ag.OpName) *Model

New returns a new model with parameters initialized to zeros.

func (*Model) Forward added in v0.2.0

func (m *Model) Forward(xs ...ag.Node) []ag.Node

Forward performs the forward step for each input node and returns the result.

Jump to

Keyboard shortcuts

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