slicer

package
v0.0.0-...-fff4e01 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BinarySlicer

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

BinarySlicer takes input float32 data and returns a byte with value 0 or 1 depending on the sign of the value.

func NewBinarySlicer

func NewBinarySlicer(invert bool) *BinarySlicer

func (*BinarySlicer) PredictOutputSize

func (b *BinarySlicer) PredictOutputSize(inputSize int) int

func (*BinarySlicer) Work

func (b *BinarySlicer) Work(items []float32) []byte

func (*BinarySlicer) WorkBuffer

func (b *BinarySlicer) WorkBuffer(input []float32, output []byte) int

Jump to

Keyboard shortcuts

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