Documentation
¶
Index ¶
- func CompileWithStats(CompileOptions) (*Kernel, CompileStats, error)
- func CopyOutputChannelsToInput(*Kernel, int, int, *Kernel, int, int, int) error
- func CopyOutputRangeToInput(*Kernel, int, int, int, *Kernel, int, int, int, int, int) error
- type CompileOptions
- type CompileStats
- type EvalStats
- type Kernel
- func (k *Kernel) Close()
- func (k *Kernel) Diagnostics() xanetelemetry.Diagnostics
- func (k *Kernel) Eval() error
- func (k *Kernel) EvalBidirectional(uint32, uint64, uint32, uint64, xane.SharedEventEvalOptions) error
- func (k *Kernel) EvalHWExecutionNS() (uint64, error)
- func (k *Kernel) EvalWithSignalEvent(uint32, uint64, xane.SharedEventEvalOptions) error
- func (k *Kernel) EvalWithStats() (EvalStats, error)
- func (k *Kernel) InputBytes(int) int
- func (k *Kernel) InputLayout(int) xane.TensorLayout
- func (k *Kernel) InputSurface(int) coregraphics.IOSurfaceRef
- func (k *Kernel) Model() *xane.Model
- func (k *Kernel) NewRequestPool(int) (*KernelRequestPool, error)
- func (k *Kernel) NumInputs() int
- func (k *Kernel) NumOutputs() int
- func (k *Kernel) OutputBytes(int) int
- func (k *Kernel) OutputLayout(int) xane.TensorLayout
- func (k *Kernel) OutputSurface(int) coregraphics.IOSurfaceRef
- func (k *Kernel) ReadOutput(int, []byte) error
- func (k *Kernel) ReadOutputF32(int, []float32) error
- func (k *Kernel) ReadOutputFP16(int, []float32) error
- func (k *Kernel) ReadOutputFP16Channels(int, int, []float32) error
- func (k *Kernel) WithLockedInput(int, func(xane.TensorLayout, []byte) error) error
- func (k *Kernel) WithLockedOutput(int, func(xane.TensorLayout, []byte) error) error
- func (k *Kernel) WriteInput(int, []byte) error
- func (k *Kernel) WriteInputF32(int, []float32) error
- func (k *Kernel) WriteInputFP16(int, []float32) error
- func (k *Kernel) WriteInputFP16Channels(int, int, []float32) error
- type KernelPooledRequest
- type KernelRequestPool
- type WeightFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompileWithStats ¶
func CompileWithStats(CompileOptions) (*Kernel, CompileStats, error)
Types ¶
type CompileOptions ¶
type CompileStats ¶
type Kernel ¶
type Kernel struct{}
func Compile ¶
func Compile(CompileOptions) (*Kernel, error)
func (*Kernel) Diagnostics ¶
func (k *Kernel) Diagnostics() xanetelemetry.Diagnostics
func (*Kernel) EvalBidirectional ¶
func (*Kernel) EvalHWExecutionNS ¶
func (*Kernel) EvalWithSignalEvent ¶
func (*Kernel) EvalWithStats ¶
func (*Kernel) InputBytes ¶
func (*Kernel) InputLayout ¶
func (k *Kernel) InputLayout(int) xane.TensorLayout
func (*Kernel) InputSurface ¶
func (k *Kernel) InputSurface(int) coregraphics.IOSurfaceRef
func (*Kernel) NewRequestPool ¶ added in v0.3.4
func (k *Kernel) NewRequestPool(int) (*KernelRequestPool, error)
func (*Kernel) NumOutputs ¶
func (*Kernel) OutputBytes ¶
func (*Kernel) OutputLayout ¶
func (k *Kernel) OutputLayout(int) xane.TensorLayout
func (*Kernel) OutputSurface ¶
func (k *Kernel) OutputSurface(int) coregraphics.IOSurfaceRef
func (*Kernel) ReadOutputFP16Channels ¶
func (*Kernel) WithLockedInput ¶ added in v0.3.4
func (*Kernel) WithLockedOutput ¶ added in v0.3.4
type KernelPooledRequest ¶ added in v0.3.4
type KernelPooledRequest struct{}
func (*KernelPooledRequest) Eval ¶ added in v0.3.4
func (r *KernelPooledRequest) Eval() error
func (*KernelPooledRequest) Release ¶ added in v0.3.4
func (r *KernelPooledRequest) Release()
type KernelRequestPool ¶ added in v0.3.4
type KernelRequestPool struct{}
func (*KernelRequestPool) Acquire ¶ added in v0.3.4
func (p *KernelRequestPool) Acquire() *KernelPooledRequest
func (*KernelRequestPool) Close ¶ added in v0.3.4
func (p *KernelRequestPool) Close() error
type WeightFile ¶
Click to show internal directories.
Click to hide internal directories.