Documentation ¶
Overview ¶
Package mkl wraps wraps the Intel MKL DNN functions
Index ¶
- func GetError(err Error) error
- type Attr
- type Buffer
- type Error
- type Layer
- func BatchNorm(attr *Attr, n, c, h, w int, epsilon float64) *Layer
- func Convolution(attr *Attr, n, c, h, w, nFeats, filtSize, stride int, padding, noBias bool) *Layer
- func NewLayer(typ string, inShape, outShape []int) *Layer
- func Pooling(attr *Attr, n, c, h, w, size, stride int, padding, average bool) *Layer
- func (l *Layer) Alloc(typ C.dnnResourceType_t)
- func (l *Layer) BiasShape() []int
- func (l *Layer) FilterShape() []int
- func (l *Layer) InShape() []int
- func (l *Layer) OutShape() []int
- func (l *Layer) Release()
- func (l *Layer) String() string
- func (l *Layer) Type() string
- func (l *Layer) Worksize() int
- type Layout
- type Primitive
- type Resource
- func (r Resource) Dst() Buffer
- func (r Resource) ResPtr() unsafe.Pointer
- func (r Resource) SetDiffDst(p unsafe.Pointer)
- func (r Resource) SetDiffSrc(p unsafe.Pointer)
- func (r Resource) SetParams(W, B, dW, dB unsafe.Pointer)
- func (r Resource) SetSrc(p unsafe.Pointer)
- func (r Resource) SetStatsData(w, dw, runMean, runVar unsafe.Pointer)
- func (r Resource) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
type Error ¶
type Error C.dnnError_t
type Layer ¶
type Layer struct { Resource Fwd, BData *Primitive BFilter, BBias *Primitive // contains filtered or unexported fields }
Layer structure represents a DNN layer definition and associated layouts and primitives
func Convolution ¶
Setup new convolution layer
func (*Layer) Alloc ¶
func (l *Layer) Alloc(typ C.dnnResourceType_t)
func (*Layer) FilterShape ¶
type Layout ¶
type Layout struct { Dims []int // contains filtered or unexported fields }
DNN layout container reprents a n dimensional tensor
type Primitive ¶
type Primitive struct {
// contains filtered or unexported fields
}
DNN primitive type represents an operation such as a convolution or a conversion
func NewPrimitive ¶
func NewPrimitive() *Primitive
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
Resources associated with layer
func (Resource) SetDiffDst ¶
func (Resource) SetDiffSrc ¶
func (Resource) SetStatsData ¶
Click to show internal directories.
Click to hide internal directories.