Documentation ¶
Index ¶
- func DivUp(a, b int32) int32
- func DivUpUint32(a, b uint32) uint32
- func LoadPTXFile(directory, filename string) string
- func MakeMakeFile(directory string, dotCUname string, device Device) string
- func SimpleGridCalculator(blocksize uint32, size uint32) uint32
- type Device
- type XtraKerns
- func (t XtraKerns) AdaDelta() string
- func (t XtraKerns) AdaDeltaFP16() string
- func (t XtraKerns) AdaGrad() string
- func (t XtraKerns) AdaGradFP16() string
- func (t XtraKerns) Adam() string
- func (t XtraKerns) AdamFP16() string
- func (t XtraKerns) ConcatNCHWEX() string
- func (t XtraKerns) ConcatNCHWEXHalf() string
- func (t XtraKerns) ConcatNHWCEX() string
- func (t XtraKerns) ConcatNHWCEXHalf() string
- func (t XtraKerns) L1L2() string
- func (t XtraKerns) L1L2FP16() string
- func (t XtraKerns) LeakyBackward() string
- func (t XtraKerns) LeakyBackwardAlpha() string
- func (t XtraKerns) LeakyBackwardAlphaBeta() string
- func (t XtraKerns) LeakyBackwardAlphaBetaFP16() string
- func (t XtraKerns) LeakyBackwardAlphaFP16() string
- func (t XtraKerns) LeakyBackwardFP16() string
- func (t XtraKerns) LeakyForward() string
- func (t XtraKerns) LeakyForwardAlpha() string
- func (t XtraKerns) LeakyForwardAlphaBeta() string
- func (t XtraKerns) LeakyForwardAlphaBetaFP16() string
- func (t XtraKerns) LeakyForwardAlphaFP16() string
- func (t XtraKerns) LeakyForwardFP16() string
- func (t XtraKerns) MSELoss() string
- func (t XtraKerns) MSELossFP16() string
- func (t XtraKerns) NearestNeighborNCHW() string
- func (t XtraKerns) NearestNeighborNCHWBack() string
- func (t XtraKerns) NearestNeighborNCHWBackFP16() string
- func (t XtraKerns) NearestNeighborNCHWFP16() string
- func (t XtraKerns) NearestNeighborNHWC() string
- func (t XtraKerns) NearestNeighborNHWCBack() string
- func (t XtraKerns) NearestNeighborNHWCBackFP16() string
- func (t XtraKerns) NearestNeighborNHWCFP16() string
- func (t XtraKerns) PreluBackward() string
- func (t XtraKerns) PreluBackwardFP16() string
- func (t XtraKerns) PreluForward() string
- func (t XtraKerns) PreluForwardFP16() string
- func (t XtraKerns) ShapeToBatch4DNCHW() string
- func (t XtraKerns) ShapeToBatch4DNHWC() string
- func (t XtraKerns) ShapetoBatch4DNCHWFP16() string
- func (t XtraKerns) ShapetoBatch4DNHWCFP16() string
- func (t XtraKerns) SoftMaxAverageLoss() string
- func (t XtraKerns) SwapEveryOther() string
- func (t XtraKerns) SwapEveryOtherFP16() string
- func (t XtraKerns) SwapUpperLower() string
- func (t XtraKerns) SwapUpperLowerFP16() string
- func (t XtraKerns) ThreshBackward() string
- func (t XtraKerns) ThreshBackwardFP16() string
- func (t XtraKerns) ThreshForward() string
- func (t XtraKerns) ThreshForwardFP16() string
- func (t XtraKerns) Transpose() string
- func (t XtraKerns) TransposeFP16() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadPTXFile ¶
LoadPTXFile Loads the ptx file
func MakeMakeFile ¶
MakeMakeFile Makes the make file
func SimpleGridCalculator ¶
SimpleGridCalculator will output the size of the grid given the size of the block. size is the number of values. blocksizelllll should be multiples of 32!
Types ¶
type XtraKerns ¶
type XtraKerns struct { }
XtraKerns returns the kernel names through methods
func (XtraKerns) ConcatNCHWEX ¶
ConcatNCHWEX - Does a concat forward with multiple inputs
func (XtraKerns) ConcatNCHWEXHalf ¶
ConcatNCHWEXHalf - Does a concat forward with multiple inputs
func (XtraKerns) ConcatNHWCEX ¶
ConcatNHWCEX - Does a concat backward with multiple outputs
func (XtraKerns) ConcatNHWCEXHalf ¶
ConcatNHWCEXHalf - Does a concat backward with multiple outputs
func (XtraKerns) LeakyBackward ¶
LeakyBackward activation function Relu but negatives get a reduced value
func (XtraKerns) LeakyBackwardAlpha ¶
LeakyBackwardAlpha activation function Relu but negatives get a reduced value and function gets the ----- result = alpha * activationfunc()
func (XtraKerns) LeakyBackwardAlphaBeta ¶
LeakyBackwardAlphaBeta activation function Relu but negatives get a reduced value and function gets the ----- result = alpha * currentresult + beta * previousresult
func (XtraKerns) LeakyBackwardAlphaBetaFP16 ¶
LeakyBackwardAlphaBetaFP16 activation function Relu but negatives get a reduced value and function gets the ----- result = alpha * currentresult + beta * previousresult
func (XtraKerns) LeakyBackwardAlphaFP16 ¶
LeakyBackwardAlphaFP16 activation function Relu but negatives get a reduced value and function gets the ----- result = alpha * activationfunc()
func (XtraKerns) LeakyBackwardFP16 ¶
LeakyBackwardFP16 activation function Relu but negatives get a reduced value
func (XtraKerns) LeakyForward ¶
LeakyForward activation function Relu but negatives get a reduced value
func (XtraKerns) LeakyForwardAlpha ¶
LeakyForwardAlpha activation function Relu but negatives get a reduced value result = alpha * activationfunc()
func (XtraKerns) LeakyForwardAlphaBeta ¶
LeakyForwardAlphaBeta activation function Relu but negatives get a reduced value and function gets the ----- result = alpha * currentresult + beta * previousresult
func (XtraKerns) LeakyForwardAlphaBetaFP16 ¶
LeakyForwardAlphaBetaFP16 activation function Relu but negatives get a reduced value and function gets the ----- result = alpha * currentresult + beta * previousresult
func (XtraKerns) LeakyForwardAlphaFP16 ¶
LeakyForwardAlphaFP16 activation function Relu but negatives get a reduced value result = alpha * activationfunc()
func (XtraKerns) LeakyForwardFP16 ¶
LeakyForwardFP16 activation function Relu but negatives get a reduced value
func (XtraKerns) MSELossFP16 ¶
MSELossFP16 Mean Squared Error Loss
func (XtraKerns) NearestNeighborNCHW ¶
NearestNeighborNCHW Resize NearestNeightbor for NCHW tensors
func (XtraKerns) NearestNeighborNCHWBack ¶
NearestNeighborNCHWBack Resize NearestNeightbor for NCHW tensors and accumulates gradients
func (XtraKerns) NearestNeighborNCHWBackFP16 ¶
NearestNeighborNCHWBackFP16 Resize NearestNeightbor for NCHW tensors and accumulates gradients
func (XtraKerns) NearestNeighborNCHWFP16 ¶
NearestNeighborNCHWFP16 Resize NearestNeightbor for NCHW tensors
func (XtraKerns) NearestNeighborNHWC ¶
NearestNeighborNHWC Resize NearestNeightbor for NHWC tensors
func (XtraKerns) NearestNeighborNHWCBack ¶
NearestNeighborNHWCBack Resize NearestNeightbor for NHWC tensors and accumulates gradients
func (XtraKerns) NearestNeighborNHWCBackFP16 ¶
NearestNeighborNHWCBackFP16 Resize NearestNeightbor for NHWC tensors and accumulates gradients
func (XtraKerns) NearestNeighborNHWCFP16 ¶
NearestNeighborNHWCFP16 Resize NearestNeightbor for NHWC tensors
func (XtraKerns) PreluBackwardFP16 ¶
PreluBackwardFP16 Not tested
func (XtraKerns) PreluForwardFP16 ¶
PreluForwardFP16 Not tested
func (XtraKerns) ShapeToBatch4DNCHW ¶
ShapeToBatch4DNCHW transfers HW to batch and vice versa for NCHW tensors
func (XtraKerns) ShapeToBatch4DNHWC ¶
ShapeToBatch4DNHWC transfer HW to batch and vice versa through windows for NHWC tensors
func (XtraKerns) ShapetoBatch4DNCHWFP16 ¶
ShapetoBatch4DNCHWFP16 transfers HW to batch and vice versa for NCHW tensors
func (XtraKerns) ShapetoBatch4DNHWCFP16 ¶
ShapetoBatch4DNHWCFP16 transfer HW to batch and vice versa through windows for NHWC tensors
func (XtraKerns) SoftMaxAverageLoss ¶
SoftMaxAverageLoss
func (XtraKerns) SwapEveryOther ¶
SwapEveryOther allows the user to swap batches between to tensors Either the even or the odd tensors.
func (XtraKerns) SwapEveryOtherFP16 ¶
SwapEveryOtherFP16 does SwapEveryOther in fp16
func (XtraKerns) SwapUpperLower ¶
SwapUpperLower takes to tensors and swaps the upper or lower batches between the two tensors
func (XtraKerns) SwapUpperLowerFP16 ¶
SwapUpperLowerFP16 takes to tensors and swaps the upper or lower batches between the two tensors
func (XtraKerns) ThreshBackward ¶
ThreshBackward Not tested
func (XtraKerns) ThreshBackwardFP16 ¶
ThreshBackwardFP16 Not tested
func (XtraKerns) ThreshForwardFP16 ¶
ThreshForwardFP16 Not tested
func (XtraKerns) TransposeFP16 ¶
TransposeFP16 switches values around from one dimention to the other