forward

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvEval

func ConvEval(k *model.Kernel, x []float32, s, inDim, outDim int) ([]float32, error)

ConvEval transposes row-major [S, inDim] to channel-first [inDim, S], evaluates the kernel, and transposes the output back to row-major.

func ConvEvalWithStats

func ConvEvalWithStats(k *model.Kernel, x []float32, s, inDim, outDim int) ([]float32, model.EvalStats, error)

ConvEvalWithStats is ConvEval plus kernel eval stats from EvalWithStats.

func FromChannelFirst

func FromChannelFirst(x []float32, s, d int) ([]float32, error)

FromChannelFirst transposes channel-first [d, s] to row-major [s, d].

func ToChannelFirst

func ToChannelFirst(x []float32, s, d int) ([]float32, error)

ToChannelFirst transposes row-major [s, d] to channel-first [d, s].

Types

This section is empty.

Jump to

Keyboard shortcuts

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