Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update snapshot version #82

Merged
merged 1 commit into from
Oct 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions ml.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ Then, the user passes <em>tensor</em> inputs to the <em>graph</em>, computes the
<ul>
<li>Imports:
<ul>
<li>interface <a href="#wasi_nn_tensor_0_2_0_rc_2024_08_19"><code>wasi:nn/[email protected]08-19</code></a></li>
<li>interface <a href="#wasi_nn_errors_0_2_0_rc_2024_08_19"><code>wasi:nn/[email protected]08-19</code></a></li>
<li>interface <a href="#wasi_nn_inference_0_2_0_rc_2024_08_19"><code>wasi:nn/[email protected]08-19</code></a></li>
<li>interface <a href="#wasi_nn_graph_0_2_0_rc_2024_08_19"><code>wasi:nn/[email protected]08-19</code></a></li>
<li>interface <a href="#wasi_nn_tensor_0_2_0_rc_2024_10_28"><code>wasi:nn/[email protected]10-28</code></a></li>
<li>interface <a href="#wasi_nn_errors_0_2_0_rc_2024_10_28"><code>wasi:nn/[email protected]10-28</code></a></li>
<li>interface <a href="#wasi_nn_inference_0_2_0_rc_2024_10_28"><code>wasi:nn/[email protected]10-28</code></a></li>
<li>interface <a href="#wasi_nn_graph_0_2_0_rc_2024_10_28"><code>wasi:nn/[email protected]10-28</code></a></li>
</ul>
</li>
</ul>
<h2><a name="wasi_nn_tensor_0_2_0_rc_2024_08_19"></a>Import interface wasi:nn/[email protected]08-19</h2>
<h2><a name="wasi_nn_tensor_0_2_0_rc_2024_10_28"></a>Import interface wasi:nn/[email protected]10-28</h2>
<p>All inputs and outputs to an ML inference are represented as <a href="#tensor"><code>tensor</code></a>s.</p>
<hr />
<h3>Types</h3>
Expand Down Expand Up @@ -90,7 +90,7 @@ containing a single value, use <code>[1]</code> for the tensor dimensions.</p>
<ul>
<li><a name="method_tensor_data.0"></a> <a href="#tensor_data"><a href="#tensor_data"><code>tensor-data</code></a></a></li>
</ul>
<h2><a name="wasi_nn_errors_0_2_0_rc_2024_08_19"></a>Import interface wasi:nn/[email protected]08-19</h2>
<h2><a name="wasi_nn_errors_0_2_0_rc_2024_10_28"></a>Import interface wasi:nn/[email protected]10-28</h2>
<p>TODO: create function-specific errors (https://github.com/WebAssembly/wasi-nn/issues/42)</p>
<hr />
<h3>Types</h3>
Expand Down Expand Up @@ -158,7 +158,7 @@ e.g., cannot access a hardware feature requested
<ul>
<li><a name="method_error_data.0"></a> <code>string</code></li>
</ul>
<h2><a name="wasi_nn_inference_0_2_0_rc_2024_08_19"></a>Import interface wasi:nn/[email protected]08-19</h2>
<h2><a name="wasi_nn_inference_0_2_0_rc_2024_10_28"></a>Import interface wasi:nn/[email protected]10-28</h2>
<p>An inference &quot;session&quot; is encapsulated by a <a href="#graph_execution_context"><code>graph-execution-context</code></a>. This structure binds a
<a href="#graph"><code>graph</code></a> to input tensors before <code>compute</code>-ing an inference:</p>
<hr />
Expand Down Expand Up @@ -193,7 +193,7 @@ graph inputs and outputs.</p>
<ul>
<li><a name="method_graph_execution_context_compute.0"></a> result&lt;list&lt;<a href="#named_tensor"><a href="#named_tensor"><code>named-tensor</code></a></a>&gt;, own&lt;<a href="#error"><a href="#error"><code>error</code></a></a>&gt;&gt;</li>
</ul>
<h2><a name="wasi_nn_graph_0_2_0_rc_2024_08_19"></a>Import interface wasi:nn/[email protected]08-19</h2>
<h2><a name="wasi_nn_graph_0_2_0_rc_2024_10_28"></a>Import interface wasi:nn/[email protected]10-28</h2>
<p>A <a href="#graph"><code>graph</code></a> is a loaded instance of a specific ML model (e.g., MobileNet) for a specific ML
framework (e.g., TensorFlow):</p>
<hr />
Expand Down
2 changes: 1 addition & 1 deletion wit/wasi-nn.wit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package wasi:[email protected]08-19;
package wasi:[email protected]10-28;

/// `wasi-nn` is a WASI API for performing machine learning (ML) inference. The API is not (yet)
/// capable of performing ML training. WebAssembly programs that want to use a host's ML
Expand Down