convolution

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2021 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	KernelSizeX    int
	KernelSizeY    int
	XStride        int
	YStride        int
	InputChannels  int
	OutputChannels int
	Mask           []int
	Activation     ag.OpName
}

Config provides configuration settings for a convolution Model.

type Model

type Model struct {
	nn.BaseModel
	Config Config
	K      []nn.Param `spago:"type:weights"`
	B      []nn.Param `spago:"type:biases"`
}

Model contains the serializable parameters for a convolutional neural network model.

func New

func New(config Config) *Model

New returns a new convolution Model, initialized according to the given configuration.

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