swapper

package
v0.0.0-...-98db5b7 Latest Latest
Warning

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

Go to latest
Published: May 7, 2020 License: CC-BY-4.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Swapper

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

Swapper holds kernels that do swap functions

func CreateSwapper

func CreateSwapper(handle *cudnn.Handler) (*Swapper, error)

CreateSwapper returns a Swapper

func (*Swapper) EveryOther

func (s *Swapper) EveryOther(handle *cudnn.Handler, A, B *tensor.Volume, start, stride int32) error

EveryOther swaps either the even or odd of every other batch between two tensors supports float and int8

func (*Swapper) UpperLower

func (s *Swapper) UpperLower(handle *cudnn.Handler, A, B *tensor.Volume, Aupper, Bupper, inverse bool) error

UpperLower swaps either the upper or lower half of the batches between to tensors supports float and int8

Jump to

Keyboard shortcuts

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