reduce

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Flags flagsforop

Flags are the reduce op

Functions

This section is empty.

Types

type Ops

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

Ops contains the reduce ops information

func Stage

func Stage(reduceop gocudnn.ReduceTensorOp, dtype gocudnn.DataType, nanprop gocudnn.NANProp, reducetensorinds gocudnn.ReduceTensorIndices, indicietype gocudnn.IndiciesType) (*Ops, error)

Stage stages the Reduce Operation

func (*Ops) GetIndiciesSize

func (o *Ops) GetIndiciesSize(handle *cudnn.Handler, x, y *tensor.Volume) (uint, error)

GetIndiciesSize returns the size of indicies

func (*Ops) GetWorkSpaceSize

func (o *Ops) GetWorkSpaceSize(handle *cudnn.Handler, x, y *tensor.Volume) (uint, error)

GetWorkSpaceSize returns the workspace size for the two tensors

func (*Ops) Reduce

func (o *Ops) Reduce(handle *cudnn.Handler, indicies *nvidia.Malloced, workspace *nvidia.Malloced, alpha float64, x *tensor.Volume, beta float64, y *tensor.Volume) error

Reduce performs the reduce operation with input/output being y where y= alpha* Op(x) +beta*y

Jump to

Keyboard shortcuts

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