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
Click to show internal directories.
Click to hide internal directories.