-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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> | ||
|
@@ -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> | ||
|
@@ -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 "session" 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 /> | ||
|
@@ -193,7 +193,7 @@ graph inputs and outputs.</p> | |
<ul> | ||
<li><a name="method_graph_execution_context_compute.0"></a> result<list<<a href="#named_tensor"><a href="#named_tensor"><code>named-tensor</code></a></a>>, own<<a href="#error"><a href="#error"><code>error</code></a></a>>></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 /> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters