Documentation
¶
Overview ¶
Package wasinn is the guest side of wasi-nn (preview 1, import module "wasi_ephemeral_nn") for Go programs built with GOOS=wasip1: load a model, set inputs, compute, read outputs. Outside wasip1 every call fails with ErrUnavailable, so code using it still builds and tests natively.
Index ¶
Constants ¶
This section is empty.
Variables ¶
ErrUnavailable is returned outside GOOS=wasip1.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context uint32
Context is one inference.
type Error ¶
type Error uint32
Error is an nn_errno.
type Graph ¶
type Graph uint32
Graph is a loaded model.
func LoadByName ¶
LoadByName loads a model the host registered under name.
func (Graph) NewContext ¶
NewContext starts an inference on g.
Click to show internal directories.
Click to hide internal directories.