diff --git a/ml.md b/ml.md index bce656f..c1cd24f 100644 --- a/ml.md +++ b/ml.md @@ -135,38 +135,18 @@ e.g., cannot access a hardware feature requested
The operation failed for an unspecified reason. -
resource error
[constructor]error: func
code
: error-code
data
: string
error
>[method]error.code: func
Return the error code.
-self
: borrow<error
>error-code
[method]error.data: func
Errors can propagated with backend specific status through a string value.
-record error
self
: borrow<error
>string
code
: error-code
The error code identifies the general reason the operation failed. +
The data field propagates the backend failure context as a string for easier +troubleshooting. +
An inference "session" is encapsulated by a graph-execution-context
. This structure binds a
@@ -197,7 +177,7 @@ e.g., cannot access a hardware feature requested
[method]graph-execution-context.compute: func
Compute the inference on the given inputs.
@@ -210,7 +190,7 @@ https://github.com/WebAssembly/wasi-nn/issues/43.[method]graph-execution-context.get-output: func
Extract the outputs after inference.
@@ -221,7 +201,7 @@ https://github.com/WebAssembly/wasi-nn/issues/43.A graph
is a loaded instance of a specific ML model (e.g., MobileNet) for a specific ML
@@ -274,7 +254,7 @@ graph IR in parts (e.g., OpenVINO stores its IR and weights separately).
graph-execution-context
>, own<error
>>graph-execution-context
>, error
>load: func
Load a graph
from an opaque sequence of bytes to use for inference.
load-by-name: func
Load a graph
by name.