Skip to content

Commit 0bd81b1

Browse files
Clarify division operator rounding (#909)
SHA: 94bcacb Reason: push, by fdwr Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 7bc6280 commit 0bd81b1

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

index.html

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
<title>Web Neural Network API</title>
66
<meta content="ED" name="w3c-status">
77
<link href="https://www.w3.org/StyleSheets/TR/2021/W3C-ED" rel="stylesheet">
8-
<meta content="Bikeshed version 3c53a5b02, updated Thu Nov 27 17:03:30 2025 +0000" name="generator">
8+
<meta content="Bikeshed version ac6b08744, updated Wed Dec 10 23:44:49 2025 +0000" name="generator">
99
<link href="https://www.w3.org/TR/webnn/" rel="canonical">
10-
<meta content="a1e0adf6835b6a0c74ad39338fe34a18f0114861" name="revision">
10+
<meta content="94bcacb2ec72c17e7f35e67e5ba4abe6a4724c2f" name="revision">
1111
<meta content="dark light" name="color-scheme">
1212
<link href="https://www.w3.org/StyleSheets/TR/2021/dark.css" media="(prefers-color-scheme: dark)" rel="stylesheet" type="text/css">
1313
<style>
@@ -1022,7 +1022,7 @@
10221022
</p>
10231023
<h1 class="no-ref p-name" id="title">Web Neural Network API</h1>
10241024
<p id="w3c-state"><a href="https://www.w3.org/standards/types/#ED">Editor’s Draft</a>,
1025-
<time class="dt-updated" datetime="2025-12-03">3 December 2025</time></p>
1025+
<time class="dt-updated" datetime="2025-12-12">12 December 2025</time></p>
10261026
<details open>
10271027
<summary>More details about this document</summary>
10281028
<div data-fill-with="spec-metadata">
@@ -4950,7 +4950,7 @@ <h4 class="heading settled" data-level="8.9.13" id="api-mlgraphbuilder-binary"><
49504950
<li data-md>
49514951
<p><em>mul</em>: Multiply the values of the two input tensors, element-wise.</p>
49524952
<li data-md>
4953-
<p><em>div</em>: Divide the values of the first input tensor with the values of the second tensor, element-wise.</p>
4953+
<p><em>div</em>: Divide the values of the first input tensor with the values of the second tensor, element-wise. Integer types are truncated toward zero.</p>
49544954
<li data-md>
49554955
<p><em>max</em>: Select the greater values of the two input tensors, element-wise.</p>
49564956
<li data-md>
@@ -11201,7 +11201,10 @@ <h4 class="heading settled" data-level="8.9.41" id="api-mlgraphbuilder-resample2
1120111201
unclampedCoordinate = (outputCoordinate + 0.5) / scale - 0.5
1120211202
inputCoordinate = clamp(unclampedCoordinate, 0, inputSize - 1)
1120311203
</pre>
11204-
<p>For a given <code>outputCoordinate.x</code> and <code>outputCoordinate.y</code> location in the output tensor, the above equations give a rational <code>inputCoordinate.x</code> and <code>inputCoordinate.y</code>.</p>
11204+
11205+
For a given <code>outputCoordinate.x</code> and <code>outputCoordinate.y</code> location in the output tensor, the above equations give a rational <code>inputCoordinate.x</code> and <code>inputCoordinate.y</code>.
11206+
11207+
1120511208
<dl>
1120611209
<dt data-md><dfn class="dfn-paneled idl-code" data-dfn-for="MLInterpolationMode" data-dfn-type="enum-value" data-export data-lt="&quot;nearest-neighbor&quot;|nearest-neighbor" id="dom-mlinterpolationmode-nearest-neighbor"><code>nearest-neighbor</code></dfn>
1120711210
<dd data-md>

0 commit comments

Comments
 (0)