|
7 | 7 | <link href="https://www.w3.org/StyleSheets/TR/2021/W3C-ED" rel="stylesheet"> |
8 | 8 | <meta content="Bikeshed version 82ce88815, updated Thu Sep 7 16:33:55 2023 -0700" name="generator"> |
9 | 9 | <link href="https://www.w3.org/TR/webnn/" rel="canonical"> |
10 | | - <meta content="b369a88aa09e4b4c941ff7c3a88240cccf0fdad3" name="document-revision"> |
| 10 | + <meta content="103647c75217b80cf8a3a60192c78e42536fc783" name="document-revision"> |
11 | 11 | <style> |
12 | 12 | /* Make <dl> blocks more distinct from their surroundings. */ |
13 | 13 | main dl:not(.switch) { |
|
905 | 905 | <div class="head"> |
906 | 906 | <p data-fill-with="logo"><a class="logo" href="https://www.w3.org/"> <img alt="W3C" height="48" src="https://www.w3.org/StyleSheets/TR/2021/logos/W3C" width="72"> </a> </p> |
907 | 907 | <h1 class="p-name no-ref" id="title">Web Neural Network API</h1> |
908 | | - <p id="w3c-state"><a href="https://www.w3.org/standards/types#ED">Editor’s Draft</a>, <time class="dt-updated" datetime="2024-05-07">7 May 2024</time></p> |
| 908 | + <p id="w3c-state"><a href="https://www.w3.org/standards/types#ED">Editor’s Draft</a>, <time class="dt-updated" datetime="2024-05-09">9 May 2024</time></p> |
909 | 909 | <details open> |
910 | 910 | <summary>More details about this document</summary> |
911 | 911 | <div data-fill-with="spec-metadata"> |
@@ -2601,7 +2601,6 @@ <h4 class="heading settled" data-level="7.8.8" id="api-mlgraphbuilder-clamp"><sp |
2601 | 2601 | <ol> |
2602 | 2602 | <li data-md> |
2603 | 2603 | <p>If <var>options</var>.<code class="idl"><a data-link-type="idl" href="#dom-mlclampoptions-minvalue" id="ref-for-dom-mlclampoptions-minvalue①">minValue</a></code> is greater than <var>options</var>.<code class="idl"><a data-link-type="idl" href="#dom-mlclampoptions-maxvalue" id="ref-for-dom-mlclampoptions-maxvalue①">maxValue</a></code>, then return false.</p> |
2604 | | - <p class="issue" id="issue-ebd3b60c"><a class="self-link" href="#issue-ebd3b60c"></a> Not all implementations support <code class="idl"><a data-link-type="idl" href="#dom-mlclampoptions-minvalue" id="ref-for-dom-mlclampoptions-minvalue②">minValue</a></code> equal to <code class="idl"><a data-link-type="idl" href="#dom-mlclampoptions-maxvalue" id="ref-for-dom-mlclampoptions-maxvalue②">maxValue</a></code>. <a href="https://github.com/webmachinelearning/webnn/issues/396">[Issue #396]</a></p> |
2605 | 2604 | <li data-md> |
2606 | 2605 | <p>Return true.</p> |
2607 | 2606 | </ol> |
@@ -2634,7 +2633,7 @@ <h5 class="heading settled" data-level="7.8.8.1" id="api-mlgraphbuilder-clamp-op |
2634 | 2633 | <li data-md> |
2635 | 2634 | <p>Let <var>output</var> be the result of <a data-link-type="dfn" href="#copy-an-mloperand" id="ref-for-copy-an-mloperand①">copying an MLOperand</a> given <var>input</var>.</p> |
2636 | 2635 | <li data-md> |
2637 | | - <p>Let <var>operator</var> be an <a data-link-type="dfn" href="#operators" id="ref-for-operators①③">operator</a> for the clamp operation, given <var>options</var>.<code class="idl"><a data-link-type="idl" href="#dom-mlclampoptions-minvalue" id="ref-for-dom-mlclampoptions-minvalue③">minValue</a></code> and <var>options</var>.<code class="idl"><a data-link-type="idl" href="#dom-mlclampoptions-maxvalue" id="ref-for-dom-mlclampoptions-maxvalue③">maxValue</a></code>.</p> |
| 2636 | + <p>Let <var>operator</var> be an <a data-link-type="dfn" href="#operators" id="ref-for-operators①③">operator</a> for the clamp operation, given <var>options</var>.<code class="idl"><a data-link-type="idl" href="#dom-mlclampoptions-minvalue" id="ref-for-dom-mlclampoptions-minvalue②">minValue</a></code> and <var>options</var>.<code class="idl"><a data-link-type="idl" href="#dom-mlclampoptions-maxvalue" id="ref-for-dom-mlclampoptions-maxvalue②">maxValue</a></code>.</p> |
2638 | 2637 | <li data-md> |
2639 | 2638 | <p>Set <var>output</var>.<code class="idl"><a data-link-type="idl" href="#dom-mloperand-operator-slot" id="ref-for-dom-mloperand-operator-slot⑤">[[operator]]</a></code> to <var>operator</var>.</p> |
2640 | 2639 | <li data-md> |
@@ -9655,7 +9654,6 @@ <h2 class="no-num no-ref heading settled" id="issues-index"><span class="content |
9655 | 9654 | <div class="issue"> The maximum number of operand dimensions is not defined, but native ML APIs usually have a maximum supported size. <a href="https://github.com/webmachinelearning/webnn/issues/456">[Issue #456]</a> <a class="issue-return" href="#issue-8054fa8e" title="Jump to section">↵</a></div> |
9656 | 9655 | <div class="issue"> If <code class="idl"><a data-link-type="idl" href="#mlgraphbuilder">MLGraphBuilder</a></code> can’t be re-used, then this can be simplified: enforce uniqueness in <code class="idl"><a data-link-type="idl" href="#dom-mlgraphbuilder-input">input()</a></code> instead, and iteration can be done over all of the graph’s inputs instead of needing this traversal. <a href="https://github.com/webmachinelearning/webnn/issues/567">[Issue #567]</a> <a class="issue-return" href="#issue-91f4b8a3" title="Jump to section">↵</a></div> |
9657 | 9656 | <div class="issue"> If <code class="idl"><a data-link-type="idl" href="#dom-mlgraphbuilder-constant">constants'</a></code> <code class="idl"><a data-link-type="idl" href="https://webidl.spec.whatwg.org/#idl-ArrayBuffer">ArrayBuffer</a></code>s are not <a data-link-type="dfn" href="https://webidl.spec.whatwg.org/#arraybuffer-transfer">transferred</a>, make copies for <a data-link-type="dfn" href="#mlgraphbuilder-graph">graph</a>'s <a data-link-type="dfn" href="#computational-graph-constants">constants</a> here. <a href="https://github.com/webmachinelearning/webnn/issues/566">[Issue #566]</a> <a class="issue-return" href="#issue-6f962d4f" title="Jump to section">↵</a></div> |
9658 | | - <div class="issue"> Not all implementations support <code class="idl"><a data-link-type="idl" href="#dom-mlclampoptions-minvalue">minValue</a></code> equal to <code class="idl"><a data-link-type="idl" href="#dom-mlclampoptions-maxvalue">maxValue</a></code>. <a href="https://github.com/webmachinelearning/webnn/issues/396">[Issue #396]</a> <a class="issue-return" href="#issue-ebd3b60c" title="Jump to section">↵</a></div> |
9659 | 9657 | </div> |
9660 | 9658 | <script>/* Boilerplate: script-dfn-panel */ |
9661 | 9659 | "use strict"; |
@@ -10163,8 +10161,8 @@ <h2 class="no-num no-ref heading settled" id="issues-index"><span class="content |
10163 | 10161 | window.dfnpanelData['dom-mlgraphbuilder-batchnormalization'] = {"dfnID": "dom-mlgraphbuilder-batchnormalization", "url": "#dom-mlgraphbuilder-batchnormalization", "dfnText": "batchNormalization(input, mean, variance, options)", "refSections": [{"refs": [{"id": "ref-for-dom-mlgraphbuilder-batchnormalization"}], "title": "7.8.6. batchNormalization"}, {"refs": [{"id": "ref-for-dom-mlgraphbuilder-batchnormalization\u2460"}], "title": "7.8.24. instanceNormalization"}, {"refs": [{"id": "ref-for-dom-mlgraphbuilder-batchnormalization\u2461"}], "title": "7.8.25. layerNormalization"}], "external": false}; |
10164 | 10162 | window.dfnpanelData['dom-mlgraphbuilder-cast'] = {"dfnID": "dom-mlgraphbuilder-cast", "url": "#dom-mlgraphbuilder-cast", "dfnText": "cast(input, type)", "refSections": [{"refs": [{"id": "ref-for-dom-mlgraphbuilder-cast"}], "title": "7.8.7. cast"}], "external": false}; |
10165 | 10163 | window.dfnpanelData['dictdef-mlclampoptions'] = {"dfnID": "dictdef-mlclampoptions", "url": "#dictdef-mlclampoptions", "dfnText": "MLClampOptions", "refSections": [{"refs": [{"id": "ref-for-dictdef-mlclampoptions"}, {"id": "ref-for-dictdef-mlclampoptions\u2460"}, {"id": "ref-for-dictdef-mlclampoptions\u2461"}], "title": "7.8.8. clamp"}, {"refs": [{"id": "ref-for-dictdef-mlclampoptions\u2462"}], "title": "7.8.8.1. clamp(input, options)"}, {"refs": [{"id": "ref-for-dictdef-mlclampoptions\u2463"}], "title": "7.8.8.2. clamp(options)"}], "external": false}; |
10166 | | -window.dfnpanelData['dom-mlclampoptions-minvalue'] = {"dfnID": "dom-mlclampoptions-minvalue", "url": "#dom-mlclampoptions-minvalue", "dfnText": "minValue", "refSections": [{"refs": [{"id": "ref-for-dom-mlclampoptions-minvalue"}, {"id": "ref-for-dom-mlclampoptions-minvalue\u2460"}, {"id": "ref-for-dom-mlclampoptions-minvalue\u2461"}], "title": "7.8.8. clamp"}, {"refs": [{"id": "ref-for-dom-mlclampoptions-minvalue\u2462"}], "title": "7.8.8.1. clamp(input, options)"}], "external": false}; |
10167 | | -window.dfnpanelData['dom-mlclampoptions-maxvalue'] = {"dfnID": "dom-mlclampoptions-maxvalue", "url": "#dom-mlclampoptions-maxvalue", "dfnText": "maxValue", "refSections": [{"refs": [{"id": "ref-for-dom-mlclampoptions-maxvalue"}, {"id": "ref-for-dom-mlclampoptions-maxvalue\u2460"}, {"id": "ref-for-dom-mlclampoptions-maxvalue\u2461"}], "title": "7.8.8. clamp"}, {"refs": [{"id": "ref-for-dom-mlclampoptions-maxvalue\u2462"}], "title": "7.8.8.1. clamp(input, options)"}], "external": false}; |
| 10164 | +window.dfnpanelData['dom-mlclampoptions-minvalue'] = {"dfnID": "dom-mlclampoptions-minvalue", "url": "#dom-mlclampoptions-minvalue", "dfnText": "minValue", "refSections": [{"refs": [{"id": "ref-for-dom-mlclampoptions-minvalue"}, {"id": "ref-for-dom-mlclampoptions-minvalue\u2460"}], "title": "7.8.8. clamp"}, {"refs": [{"id": "ref-for-dom-mlclampoptions-minvalue\u2461"}], "title": "7.8.8.1. clamp(input, options)"}], "external": false}; |
| 10165 | +window.dfnpanelData['dom-mlclampoptions-maxvalue'] = {"dfnID": "dom-mlclampoptions-maxvalue", "url": "#dom-mlclampoptions-maxvalue", "dfnText": "maxValue", "refSections": [{"refs": [{"id": "ref-for-dom-mlclampoptions-maxvalue"}, {"id": "ref-for-dom-mlclampoptions-maxvalue\u2460"}], "title": "7.8.8. clamp"}, {"refs": [{"id": "ref-for-dom-mlclampoptions-maxvalue\u2461"}], "title": "7.8.8.1. clamp(input, options)"}], "external": false}; |
10168 | 10166 | window.dfnpanelData['check-clamp-options'] = {"dfnID": "check-clamp-options", "url": "#check-clamp-options", "dfnText": "check clamp options", "refSections": [{"refs": [{"id": "ref-for-check-clamp-options"}], "title": "7.8.8.1. clamp(input, options)"}, {"refs": [{"id": "ref-for-check-clamp-options\u2460"}], "title": "7.8.8.2. clamp(options)"}], "external": false}; |
10169 | 10167 | window.dfnpanelData['dom-mlgraphbuilder-clamp'] = {"dfnID": "dom-mlgraphbuilder-clamp", "url": "#dom-mlgraphbuilder-clamp", "dfnText": "clamp(input, options)", "refSections": [{"refs": [{"id": "ref-for-dom-mlgraphbuilder-clamp"}], "title": "7.8.8. clamp"}, {"refs": [{"id": "ref-for-dom-mlgraphbuilder-clamp\u2460"}], "title": "7.8.8.1. clamp(input, options)"}], "external": false}; |
10170 | 10168 | window.dfnpanelData['dom-mlgraphbuilder-clamp-options'] = {"dfnID": "dom-mlgraphbuilder-clamp-options", "url": "#dom-mlgraphbuilder-clamp-options", "dfnText": "clamp(options)", "refSections": [{"refs": [{"id": "ref-for-dom-mlgraphbuilder-clamp-options"}], "title": "7.8.8. clamp"}, {"refs": [{"id": "ref-for-dom-mlgraphbuilder-clamp-options\u2460"}], "title": "7.8.8.2. clamp(options)"}, {"refs": [{"id": "ref-for-dom-mlgraphbuilder-clamp-options\u2461"}], "title": "7.8.17. gather"}], "external": false}; |
|
0 commit comments