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: funccode: error-codedata: stringerror>[method]error.code: funcReturn the error code.
-self: borrow<error>error-code[method]error.data: funcErrors can propagated with backend specific status through a string value.
-record errorself: borrow<error>stringcode: 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: funcCompute the inference on the given inputs.
@@ -210,7 +190,7 @@ https://github.com/WebAssembly/wasi-nn/issues/43.[method]graph-execution-context.get-output: funcExtract 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: funcLoad a graph from an opaque sequence of bytes to use for inference.
load-by-name: funcLoad a graph by name.