From 71320d95b8c6d43f9af7f44e18b1839db85d89b4 Mon Sep 17 00:00:00 2001
From: Andrew Brown All inputs and outputs to an ML inference are represented as
-
-
wasi:nn/tensor@0.2.0-rc-2024-08-19
wasi:nn/errors@0.2.0-rc-2024-08-19
wasi:nn/inference@0.2.0-rc-2024-08-19
wasi:nn/graph@0.2.0-rc-2024-08-19
wasi:nn/tensor@0.2.0-rc-2024-10-28
wasi:nn/errors@0.2.0-rc-2024-10-28
wasi:nn/inference@0.2.0-rc-2024-10-28
wasi:nn/graph@0.2.0-rc-2024-10-28
Import interface wasi:nn/tensor@0.2.0-rc-2024-08-19
+Import interface wasi:nn/tensor@0.2.0-rc-2024-10-28
tensor
s.
Types
@@ -90,7 +90,7 @@ containing a single value, use [1]
for the tensor dimensions.
TODO: create function-specific errors (https://github.com/WebAssembly/wasi-nn/issues/42)
An inference "session" is encapsulated by a graph-execution-context
. This structure binds a
graph
to input tensors before compute
-ing an inference:
named-tensor
>, own<error
>>A graph
is a loaded instance of a specific ML model (e.g., MobileNet) for a specific ML
framework (e.g., TensorFlow):