Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CScalartoFloat64 ¶
CScalartoFloat64 changes a CScalar to a float64 value so it could be read or debugging.
Types ¶
type CDouble ¶
CDouble is a double in C
type CFloat ¶
CFloat is a float in C
type CScalar ¶
CScalar is used for scalar multiplications with cudnn. They have to be Ctypes. It could have easily been called voider
func CScalarConversion ¶
func CScalarConversion(gotype interface{}) CScalar
CScalarConversion takes a go type and converts it to a CScalar interface. golang type int and int32 will both be converted to a CInt type. If a go type is not supported then it will return a nil. Current support is float64,float32,int, int32, int8,uint32, uint, uint8(byte)
type CSizet ¶
CSizet is a wrapper for C.size_t
type CUInt ¶
CUInt is an unsigned int in C
type Wrapper ¶
type Wrapper struct {
// contains filtered or unexported fields
}
Wrapper is a wrapper around some golang memory
func CreateUnsafeWrapper ¶
CreateUnsafeWrapper creates Wrapper from an unsafe.Pointer