vector

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Vector3D

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

func NewVector3D

func NewVector3D(batch, rows, cols int) *Vector3D

func ReshapeMatrix

func ReshapeMatrix(d mat.Matrix, rows, cols int) *Vector3D

func ReshapeVector

func ReshapeVector(vec mat.Vector, rows, cols int) *Vector3D

func (*Vector3D) BatchSize

func (v *Vector3D) BatchSize() int

func (*Vector3D) ConvAdd

func (v *Vector3D) ConvAdd(a *Vector3D, strideM, strideN int)

ConvAdd add gradient to each channel

func (*Vector3D) Cut

func (v *Vector3D) Cut(rows, cols int) *Vector3D

Cut cut matrix to (rows, cols)

func (*Vector3D) Dims

func (v *Vector3D) Dims() (int, int)

func (*Vector3D) Get

func (v *Vector3D) Get(batch int) mat.Matrix

func (*Vector3D) Im2Col

func (v *Vector3D) Im2Col(kernelM, kernelN, strideM, strideN, channelSize int) *mat.Dense

Im2Col get convolution matrix, output shape is (batch * conved.rows * conved.cols, kernelM * kernelN * channelSize)

func (*Vector3D) Pad

func (v *Vector3D) Pad(m, n int)

Pad padding matrix on right and bottom

func (*Vector3D) ToMatrix

func (v *Vector3D) ToMatrix() mat.Matrix

Jump to

Keyboard shortcuts

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