Skip to content

Commit 1a308dd

Browse files
authored
Merge pull request #386 from webmachinelearning/float16
Add float16 to MLOperandType and ArrayBufferView compatibility table
2 parents c22a3ac + af8e9c6 commit 1a308dd

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

index.bs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ urlPrefix: https://webidl.spec.whatwg.org/; spec: WEBIDL
6161
type: dfn
6262
text: underlying buffer; url: buffersource-underlying-buffer
6363
text: buffer byte length; url: buffersource-byte-length
64+
urlPrefix: https://tc39.es/proposal-float16array/; spec: float16array
65+
type: interface
66+
text: Float16Array; url: sec-float16array
6467
</pre>
6568
<pre class="biblio">
6669
{
@@ -3152,6 +3155,9 @@ console.log('Output value: ' + result.outputs.output);
31523155
<tr>
31533156
<td>{{MLOperandType/float32}}
31543157
<td>{{Float32Array}}
3158+
<tr>
3159+
<td>{{MLOperandType/float16}}
3160+
<td>{{Float16Array}}
31553161
<tr>
31563162
<td>{{MLOperandType/int32}}
31573163
<td>{{Int32Array}}
@@ -3166,7 +3172,7 @@ console.log('Output value: ' + result.outputs.output);
31663172
<td>{{Uint8Array}}
31673173
</table>
31683174

3169-
Issue(webmachinelearning/webnn#127): clarify the usage of {{ArrayBufferView}} for {{MLOperandType/float16}}.
3175+
<p class="note">{{Float16Array}} is at <a href="https://tc39.es/process-document/">ECMA Stage 3</a> signaling its design is finished. Implementers wanting to enable this type ahead native implementations can emulate the type by passing raw bits via {{Uint16Array}}. <a href="https://github.com/webmachinelearning/webnn/issues/373">[Issue webnn#373]</a></p>
31703176

31713177
<h2 id="acknowledgements">Acknowledgements</h2>
31723178

0 commit comments

Comments
 (0)