Skip to content

Commit

Permalink
Uppercase the TensorType variants (#53)
Browse files Browse the repository at this point in the history
This simplifies the naming of the types, which otherwise resulted in
some rather strange `up8` and `ip32` names.
  • Loading branch information
abrown committed Aug 15, 2023
1 parent a9a6852 commit c1f8b87
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions ml.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ Then, the user passes <em>tensor</em> inputs to the <em>graph</em>, computes the
<p>The type of the elements in a tensor.</p>
<h5>Enum Cases</h5>
<ul>
<li><a name="tensor_type.fp16"><code>fp16</code></a></li>
<li><a name="tensor_type.fp32"><code>fp32</code></a></li>
<li><a name="tensor_type.bf16"><code>bf16</code></a></li>
<li><a name="tensor_type.up8"><code>up8</code></a></li>
<li><a name="tensor_type.ip32"><code>ip32</code></a></li>
<li><a name="tensor_type.fp16"><code>FP16</code></a></li>
<li><a name="tensor_type.fp32"><code>FP32</code></a></li>
<li><a name="tensor_type.bf16"><code>BF16</code></a></li>
<li><a name="tensor_type.u8"><code>U8</code></a></li>
<li><a name="tensor_type.i32"><code>I32</code></a></li>
</ul>
<h4><a name="tensor_dimensions"><code>type tensor-dimensions</code></a></h4>
<p><a href="#tensor_dimensions"><a href="#tensor_dimensions"><code>tensor-dimensions</code></a></a></p>
Expand Down
10 changes: 5 additions & 5 deletions wit/wasi-nn.wit
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ interface tensor {

/// The type of the elements in a tensor.
enum tensor-type {
fp16,
fp32,
bf16,
up8,
ip32
FP16,
FP32,
BF16,
U8,
I32
}

/// The tensor data.
Expand Down

0 comments on commit c1f8b87

Please sign in to comment.