Skip to content

Commit

Permalink
Merge pull request #517 from inexorabletash/wording-infra-let-set
Browse files Browse the repository at this point in the history
SHA: 120e697
Reason: push, by huningxin

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
huningxin and github-actions[bot] committed Jan 23, 2024
1 parent 36af66d commit f3405c5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<link href="https://www.w3.org/StyleSheets/TR/2021/W3C-ED" rel="stylesheet">
<meta content="Bikeshed version 82ce88815, updated Thu Sep 7 16:33:55 2023 -0700" name="generator">
<link href="https://www.w3.org/TR/webnn/" rel="canonical">
<meta content="c604f70e7896705f9a737c49af3d4471ea3958e7" name="document-revision">
<meta content="120e69753b21d52691a8ae2dad97ae256b379060" name="document-revision">
<style>
/* Make <dl> blocks more distinct from their surroundings. */
main dl:not(.switch) {
Expand Down Expand Up @@ -2912,7 +2912,7 @@ <h4 class="heading settled" data-level="7.7.7" id="api-mlgraphbuilder-concat"><s
<li data-md>
<p>If <var>axis</var> is greater than or equal to the <a data-link-type="dfn" href="#mloperand-rank" id="ref-for-mloperand-rank⑤">rank</a> of <var>desc</var>, then <a data-link-type="dfn" href="https://webidl.spec.whatwg.org/#dfn-throw" id="ref-for-dfn-throw⑤①">throw</a> a "<code class="idl"><a data-link-type="idl" href="https://webidl.spec.whatwg.org/#dataerror" id="ref-for-dataerror⑨">DataError</a></code>" <code class="idl"><a data-link-type="idl" href="https://webidl.spec.whatwg.org/#idl-DOMException" id="ref-for-idl-DOMException③③">DOMException</a></code>.</p>
<li data-md>
<p>Let <var>desc</var>.<code class="idl"><a data-link-type="idl" href="#dom-mloperanddescriptor-dimensions" id="ref-for-dom-mloperanddescriptor-dimensions①③">dimensions</a></code>[<var>axis</var>] be 0.</p>
<p>Set <var>desc</var>.<code class="idl"><a data-link-type="idl" href="#dom-mloperanddescriptor-dimensions" id="ref-for-dom-mloperanddescriptor-dimensions①③">dimensions</a></code>[<var>axis</var>] to 0.</p>
<li data-md>
<p><a data-link-type="dfn" href="https://infra.spec.whatwg.org/#map-iterate" id="ref-for-map-iterate①⓪">For each</a> <var>index</var> in <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#the-range" id="ref-for-the-range②">the range</a> 0 to the <a data-link-type="dfn" href="#mloperand-rank" id="ref-for-mloperand-rank⑥">rank</a> of <var>inputs</var>, exclusive:</p>
<ol>
Expand Down Expand Up @@ -3633,7 +3633,7 @@ <h4 class="heading settled" data-level="7.7.11" id="api-mlgraphbuilder-binary"><
<li data-md>
<p>Set <var>descriptor</var>.<code class="idl"><a data-link-type="idl" href="#dom-mloperanddescriptor-datatype" id="ref-for-dom-mloperanddescriptor-datatype②③">dataType</a></code> to <var>a</var>.<code class="idl"><a data-link-type="idl" href="#dom-mloperand-descriptor-slot" id="ref-for-dom-mloperand-descriptor-slot③⑥">[[descriptor]]</a></code>.<code class="idl"><a data-link-type="idl" href="#dom-mloperanddescriptor-datatype" id="ref-for-dom-mloperanddescriptor-datatype②④">dataType</a></code>.</p>
<li data-md>
<p>Let <var>descriptor</var>.<code class="idl"><a data-link-type="idl" href="#dom-mloperanddescriptor-dimensions" id="ref-for-dom-mloperanddescriptor-dimensions③③">dimensions</a></code> be the result of running the <a data-link-type="dfn" href="#mlgraphbuilder-broadcast-shapes" id="ref-for-mlgraphbuilder-broadcast-shapes">broadcast-shapes</a> steps given <var>a</var>.<code class="idl"><a data-link-type="idl" href="#dom-mloperand-descriptor-slot" id="ref-for-dom-mloperand-descriptor-slot③⑦">[[descriptor]]</a></code>.<code class="idl"><a data-link-type="idl" href="#dom-mloperanddescriptor-dimensions" id="ref-for-dom-mloperanddescriptor-dimensions③④">dimensions</a></code> and <var>b</var>.<code class="idl"><a data-link-type="idl" href="#dom-mloperand-descriptor-slot" id="ref-for-dom-mloperand-descriptor-slot③⑧">[[descriptor]]</a></code>.<code class="idl"><a data-link-type="idl" href="#dom-mloperanddescriptor-dimensions" id="ref-for-dom-mloperanddescriptor-dimensions③⑤">dimensions</a></code>.</p>
<p>Set <var>descriptor</var>.<code class="idl"><a data-link-type="idl" href="#dom-mloperanddescriptor-dimensions" id="ref-for-dom-mloperanddescriptor-dimensions③③">dimensions</a></code> to the result of running the <a data-link-type="dfn" href="#mlgraphbuilder-broadcast-shapes" id="ref-for-mlgraphbuilder-broadcast-shapes">broadcast-shapes</a> steps given <var>a</var>.<code class="idl"><a data-link-type="idl" href="#dom-mloperand-descriptor-slot" id="ref-for-dom-mloperand-descriptor-slot③⑦">[[descriptor]]</a></code>.<code class="idl"><a data-link-type="idl" href="#dom-mloperanddescriptor-dimensions" id="ref-for-dom-mloperanddescriptor-dimensions③④">dimensions</a></code> and <var>b</var>.<code class="idl"><a data-link-type="idl" href="#dom-mloperand-descriptor-slot" id="ref-for-dom-mloperand-descriptor-slot③⑧">[[descriptor]]</a></code>.<code class="idl"><a data-link-type="idl" href="#dom-mloperanddescriptor-dimensions" id="ref-for-dom-mloperanddescriptor-dimensions③⑤">dimensions</a></code>.</p>
<ol>
<li data-md>
<p>If that <a data-link-type="dfn" href="https://webidl.spec.whatwg.org/#dfn-throw" id="ref-for-dfn-throw⑨③">throws</a> an error, re-<a data-link-type="dfn" href="https://webidl.spec.whatwg.org/#dfn-throw" id="ref-for-dfn-throw⑨④">throw</a> the error.</p>
Expand Down Expand Up @@ -3844,7 +3844,7 @@ <h4 class="heading settled" data-level="7.7.12" id="api-mlgraphbuilder-logical">
<li data-md>
<p>Set <var>descriptor</var>.<code class="idl"><a data-link-type="idl" href="#dom-mloperanddescriptor-datatype" id="ref-for-dom-mloperanddescriptor-datatype②⑧">dataType</a></code> to <code class="idl"><a data-link-type="idl" href="#dom-mloperanddatatype-uint8" id="ref-for-dom-mloperanddatatype-uint8①">"uint8"</a></code>.</p>
<li data-md>
<p>Let <var>descriptor</var>.<code class="idl"><a data-link-type="idl" href="#dom-mloperanddescriptor-dimensions" id="ref-for-dom-mloperanddescriptor-dimensions③⑥">dimensions</a></code> be the result of running the <a data-link-type="dfn" href="#mlgraphbuilder-broadcast-shapes" id="ref-for-mlgraphbuilder-broadcast-shapes①">broadcast-shapes</a> steps given <var>a</var>.<code class="idl"><a data-link-type="idl" href="#dom-mloperand-descriptor-slot" id="ref-for-dom-mloperand-descriptor-slot④②">[[descriptor]]</a></code>.<code class="idl"><a data-link-type="idl" href="#dom-mloperanddescriptor-dimensions" id="ref-for-dom-mloperanddescriptor-dimensions③⑦">dimensions</a></code> and <var>b</var>.<code class="idl"><a data-link-type="idl" href="#dom-mloperand-descriptor-slot" id="ref-for-dom-mloperand-descriptor-slot④③">[[descriptor]]</a></code>.<code class="idl"><a data-link-type="idl" href="#dom-mloperanddescriptor-dimensions" id="ref-for-dom-mloperanddescriptor-dimensions③⑧">dimensions</a></code>.</p>
<p>Set <var>descriptor</var>.<code class="idl"><a data-link-type="idl" href="#dom-mloperanddescriptor-dimensions" id="ref-for-dom-mloperanddescriptor-dimensions③⑥">dimensions</a></code> to the result of running the <a data-link-type="dfn" href="#mlgraphbuilder-broadcast-shapes" id="ref-for-mlgraphbuilder-broadcast-shapes①">broadcast-shapes</a> steps given <var>a</var>.<code class="idl"><a data-link-type="idl" href="#dom-mloperand-descriptor-slot" id="ref-for-dom-mloperand-descriptor-slot④②">[[descriptor]]</a></code>.<code class="idl"><a data-link-type="idl" href="#dom-mloperanddescriptor-dimensions" id="ref-for-dom-mloperanddescriptor-dimensions③⑦">dimensions</a></code> and <var>b</var>.<code class="idl"><a data-link-type="idl" href="#dom-mloperand-descriptor-slot" id="ref-for-dom-mloperand-descriptor-slot④③">[[descriptor]]</a></code>.<code class="idl"><a data-link-type="idl" href="#dom-mloperanddescriptor-dimensions" id="ref-for-dom-mloperanddescriptor-dimensions③⑧">dimensions</a></code>.</p>
<ol>
<li data-md>
<p>If that <a data-link-type="dfn" href="https://webidl.spec.whatwg.org/#dfn-throw" id="ref-for-dfn-throw①①③">throws</a> an error, re-<a data-link-type="dfn" href="https://webidl.spec.whatwg.org/#dfn-throw" id="ref-for-dfn-throw①①④">throw</a> the error.</p>
Expand Down Expand Up @@ -6770,7 +6770,7 @@ <h4 class="heading settled" data-level="7.7.31" id="api-mlgraphbuilder-pool2d"><
<p>Make a request to the underlying platform to:</p>
<ol>
<li data-md>
<p>Calculate the output dimensions given <var>input</var> and <var>options</var>. Let <var>desc</var>.<code class="idl"><a data-link-type="idl" href="#dom-mloperanddescriptor-dimensions" id="ref-for-dom-mloperanddescriptor-dimensions⑨⓪">dimensions</a></code> be the result of that.</p>
<p>Calculate the output dimensions given <var>input</var> and <var>options</var>. Set <var>desc</var>.<code class="idl"><a data-link-type="idl" href="#dom-mloperanddescriptor-dimensions" id="ref-for-dom-mloperanddescriptor-dimensions⑨⓪">dimensions</a></code> to that.</p>
<li data-md>
<p>Let <var>output</var> be the result of <a data-link-type="dfn" href="#create-an-mloperand" id="ref-for-create-an-mloperand②③">creating an MLOperand</a> given <a data-link-type="dfn" href="https://webidl.spec.whatwg.org/#this" id="ref-for-this③⑦">this</a> and <var>desc</var>.</p>
<li data-md>
Expand Down Expand Up @@ -6871,7 +6871,7 @@ <h4 class="heading settled" data-level="7.7.32" id="api-mlgraphbuilder-prelu"><s
<li data-md>
<p>Set <var>descriptor</var>.<code class="idl"><a data-link-type="idl" href="#dom-mloperanddescriptor-datatype" id="ref-for-dom-mloperanddescriptor-datatype④②">dataType</a></code> to <var>input</var>.<code class="idl"><a data-link-type="idl" href="#dom-mloperand-descriptor-slot" id="ref-for-dom-mloperand-descriptor-slot⑨①">[[descriptor]]</a></code>.<code class="idl"><a data-link-type="idl" href="#dom-mloperanddescriptor-datatype" id="ref-for-dom-mloperanddescriptor-datatype④③">dataType</a></code>.</p>
<li data-md>
<p>Let <var>descriptor</var>.<code class="idl"><a data-link-type="idl" href="#dom-mloperanddescriptor-dimensions" id="ref-for-dom-mloperanddescriptor-dimensions⑨①">dimensions</a></code> be the result of running the <a data-link-type="dfn" href="#mlgraphbuilder-broadcast-shapes" id="ref-for-mlgraphbuilder-broadcast-shapes②">broadcast-shapes</a> steps given <var>input</var>.<code class="idl"><a data-link-type="idl" href="#dom-mloperand-descriptor-slot" id="ref-for-dom-mloperand-descriptor-slot⑨②">[[descriptor]]</a></code>.<code class="idl"><a data-link-type="idl" href="#dom-mloperanddescriptor-dimensions" id="ref-for-dom-mloperanddescriptor-dimensions⑨②">dimensions</a></code> and <var>slope</var>.<code class="idl"><a data-link-type="idl" href="#dom-mloperand-descriptor-slot" id="ref-for-dom-mloperand-descriptor-slot⑨③">[[descriptor]]</a></code>.<code class="idl"><a data-link-type="idl" href="#dom-mloperanddescriptor-dimensions" id="ref-for-dom-mloperanddescriptor-dimensions⑨③">dimensions</a></code>.</p>
<p>Set <var>descriptor</var>.<code class="idl"><a data-link-type="idl" href="#dom-mloperanddescriptor-dimensions" id="ref-for-dom-mloperanddescriptor-dimensions⑨①">dimensions</a></code> to the result of running the <a data-link-type="dfn" href="#mlgraphbuilder-broadcast-shapes" id="ref-for-mlgraphbuilder-broadcast-shapes②">broadcast-shapes</a> steps given <var>input</var>.<code class="idl"><a data-link-type="idl" href="#dom-mloperand-descriptor-slot" id="ref-for-dom-mloperand-descriptor-slot⑨②">[[descriptor]]</a></code>.<code class="idl"><a data-link-type="idl" href="#dom-mloperanddescriptor-dimensions" id="ref-for-dom-mloperanddescriptor-dimensions⑨②">dimensions</a></code> and <var>slope</var>.<code class="idl"><a data-link-type="idl" href="#dom-mloperand-descriptor-slot" id="ref-for-dom-mloperand-descriptor-slot⑨③">[[descriptor]]</a></code>.<code class="idl"><a data-link-type="idl" href="#dom-mloperanddescriptor-dimensions" id="ref-for-dom-mloperanddescriptor-dimensions⑨③">dimensions</a></code>.</p>
<ol>
<li data-md>
<p>If that <a data-link-type="dfn" href="https://webidl.spec.whatwg.org/#dfn-throw" id="ref-for-dfn-throw②⑤⑨">throws</a> an error, re-<a data-link-type="dfn" href="https://webidl.spec.whatwg.org/#dfn-throw" id="ref-for-dfn-throw②⑥⓪">throw</a> the error.</p>
Expand Down Expand Up @@ -8332,7 +8332,7 @@ <h4 class="heading settled" data-level="7.7.46" id="api-mlgraphbuilder-where"><s
<li data-md>
<p>Set <var>descriptor</var>.<code class="idl"><a data-link-type="idl" href="#dom-mloperanddescriptor-datatype" id="ref-for-dom-mloperanddescriptor-datatype④⑨">dataType</a></code> to <var>input</var>.<code class="idl"><a data-link-type="idl" href="#dom-mloperand-descriptor-slot" id="ref-for-dom-mloperand-descriptor-slot①⓪⑨">[[descriptor]]</a></code>.<code class="idl"><a data-link-type="idl" href="#dom-mloperanddescriptor-datatype" id="ref-for-dom-mloperanddescriptor-datatype⑤⓪">dataType</a></code>.</p>
<li data-md>
<p>Let <var>descriptor</var>.<code class="idl"><a data-link-type="idl" href="#dom-mloperanddescriptor-dimensions" id="ref-for-dom-mloperanddescriptor-dimensions①⓪⑦">dimensions</a></code> be the result of running the <a data-link-type="dfn" href="#mlgraphbuilder-broadcast-shapes" id="ref-for-mlgraphbuilder-broadcast-shapes③">broadcast-shapes</a> steps given <var>input</var>.<code class="idl"><a data-link-type="idl" href="#dom-mloperand-descriptor-slot" id="ref-for-dom-mloperand-descriptor-slot①①⓪">[[descriptor]]</a></code>.<code class="idl"><a data-link-type="idl" href="#dom-mloperanddescriptor-dimensions" id="ref-for-dom-mloperanddescriptor-dimensions①⓪⑧">dimensions</a></code> and <var>other</var>.<code class="idl"><a data-link-type="idl" href="#dom-mloperand-descriptor-slot" id="ref-for-dom-mloperand-descriptor-slot①①①">[[descriptor]]</a></code>.<code class="idl"><a data-link-type="idl" href="#dom-mloperanddescriptor-dimensions" id="ref-for-dom-mloperanddescriptor-dimensions①⓪⑨">dimensions</a></code>.</p>
<p>Set <var>descriptor</var>.<code class="idl"><a data-link-type="idl" href="#dom-mloperanddescriptor-dimensions" id="ref-for-dom-mloperanddescriptor-dimensions①⓪⑦">dimensions</a></code> to the result of running the <a data-link-type="dfn" href="#mlgraphbuilder-broadcast-shapes" id="ref-for-mlgraphbuilder-broadcast-shapes③">broadcast-shapes</a> steps given <var>input</var>.<code class="idl"><a data-link-type="idl" href="#dom-mloperand-descriptor-slot" id="ref-for-dom-mloperand-descriptor-slot①①⓪">[[descriptor]]</a></code>.<code class="idl"><a data-link-type="idl" href="#dom-mloperanddescriptor-dimensions" id="ref-for-dom-mloperanddescriptor-dimensions①⓪⑧">dimensions</a></code> and <var>other</var>.<code class="idl"><a data-link-type="idl" href="#dom-mloperand-descriptor-slot" id="ref-for-dom-mloperand-descriptor-slot①①①">[[descriptor]]</a></code>.<code class="idl"><a data-link-type="idl" href="#dom-mloperanddescriptor-dimensions" id="ref-for-dom-mloperanddescriptor-dimensions①⓪⑨">dimensions</a></code>.</p>
<ol>
<li data-md>
<p>If that <a data-link-type="dfn" href="https://webidl.spec.whatwg.org/#dfn-throw" id="ref-for-dfn-throw③②④">throws</a> an error, re-<a data-link-type="dfn" href="https://webidl.spec.whatwg.org/#dfn-throw" id="ref-for-dfn-throw③②⑤">throw</a> the error.</p>
Expand Down

0 comments on commit f3405c5

Please sign in to comment.