Documentation
¶
Index ¶
Constants ¶
View Source
const ( // MaxInputFloats bounds the size of a single inference input to avoid OOMs. MaxInputFloats = 1 << 20 // ~4 MiB of float32 // MaxOutputFloats bounds the size of a single inference output. MaxOutputFloats = 1 << 20 // ~4 MiB of float32 )
Variables ¶
View Source
var ( ErrInvalidModule = errors.New("wasm: invalid module") ErrMissingExport = errors.New("wasm: missing required export") ErrMemoryBounds = errors.New("wasm: memory bounds exceeded") ErrInferenceFailed = errors.New("wasm: inference failed") ErrModuleClosed = errors.New("wasm: module closed") ErrInputTooLarge = errors.New("wasm: input too large") ErrOutputTooLarge = errors.New("wasm: output too large") )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.