|  | 
| 427 | 427 |         } | 
| 428 | 428 |       ] | 
| 429 | 429 |     }, | 
| 430 |  | -    { | 
| 431 |  | -      "name": "MLOperand/dataType()", | 
| 432 |  | -      "href": "https://webmachinelearning.github.io/webnn/#dom-mloperand-datatype", | 
| 433 |  | -      "rationale": ".algorithm", | 
| 434 |  | -      "steps": [ | 
| 435 |  | -        { | 
| 436 |  | -          "html": "<p>Return <a data-link-type=\"dfn\" href=\"https://webidl.spec.whatwg.org/#this\" id=\"ref-for-this⑦\">this</a>'s <a data-link-type=\"dfn\" href=\"https://webmachinelearning.github.io/webnn/#mloperand-datatype\" id=\"ref-for-mloperand-datatype①\">dataType</a>.</p>" | 
| 437 |  | -        } | 
| 438 |  | -      ] | 
| 439 |  | -    }, | 
| 440 |  | -    { | 
| 441 |  | -      "name": "MLOperand/shape()", | 
| 442 |  | -      "href": "https://webmachinelearning.github.io/webnn/#dom-mloperand-shape", | 
| 443 |  | -      "rationale": ".algorithm", | 
| 444 |  | -      "steps": [ | 
| 445 |  | -        { | 
| 446 |  | -          "html": "<p>Return <a data-link-type=\"dfn\" href=\"https://webidl.spec.whatwg.org/#this\" id=\"ref-for-this⑧\">this</a>'s <a data-link-type=\"dfn\" href=\"https://webmachinelearning.github.io/webnn/#mloperand-shape\" id=\"ref-for-mloperand-shape①\">shape</a>.</p>" | 
| 447 |  | -        } | 
| 448 |  | -      ] | 
| 449 |  | -    }, | 
| 450 | 430 |     { | 
| 451 | 431 |       "name": "MLGraphBuilder/MLGraphBuilder(context)", | 
| 452 | 432 |       "href": "https://webmachinelearning.github.io/webnn/#dom-mlgraphbuilder-mlgraphbuilder", | 
|  | 
| 475 | 455 |           "html": "<p>If <var>name</var> is empty, 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/#exceptiondef-typeerror\" id=\"ref-for-exceptiondef-typeerror⑧\">TypeError</a></code>.</p>" | 
| 476 | 456 |         }, | 
| 477 | 457 |         { | 
| 478 |  | -          "html": "<p>If any <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://webmachinelearning.github.io/webnn/#mloperand\" id=\"ref-for-mloperand④⑧\">MLOperand</a></code>s in <a data-link-type=\"dfn\" href=\"https://webidl.spec.whatwg.org/#this\" id=\"ref-for-this①③\">this</a>'s <a data-link-type=\"dfn\" href=\"https://webmachinelearning.github.io/webnn/#mlgraphbuilder-graph\" id=\"ref-for-mlgraphbuilder-graph\">graph</a>'s <a data-link-type=\"dfn\" href=\"https://webmachinelearning.github.io/webnn/#computational-graph-input\" id=\"ref-for-computational-graph-input\">inputs</a> have a <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://webmachinelearning.github.io/webnn/#dom-mloperand-name-slot\" id=\"ref-for-dom-mloperand-name-slot③\">[[name]]</a></code> equal to <var>name</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/#exceptiondef-typeerror\" id=\"ref-for-exceptiondef-typeerror⑨\">TypeError</a></code>.</p>" | 
|  | 458 | +          "html": "<p>If any <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://webmachinelearning.github.io/webnn/#mloperand\" id=\"ref-for-mloperand④⑥\">MLOperand</a></code>s in <a data-link-type=\"dfn\" href=\"https://webidl.spec.whatwg.org/#this\" id=\"ref-for-this①③\">this</a>'s <a data-link-type=\"dfn\" href=\"https://webmachinelearning.github.io/webnn/#mlgraphbuilder-graph\" id=\"ref-for-mlgraphbuilder-graph\">graph</a>'s <a data-link-type=\"dfn\" href=\"https://webmachinelearning.github.io/webnn/#computational-graph-input\" id=\"ref-for-computational-graph-input\">inputs</a> have a <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://webmachinelearning.github.io/webnn/#dom-mloperand-name-slot\" id=\"ref-for-dom-mloperand-name-slot③\">[[name]]</a></code> equal to <var>name</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/#exceptiondef-typeerror\" id=\"ref-for-exceptiondef-typeerror⑨\">TypeError</a></code>.</p>" | 
| 479 | 459 |         }, | 
| 480 | 460 |         { | 
| 481 | 461 |           "html": "<p>If <a data-link-type=\"dfn\" href=\"https://webmachinelearning.github.io/webnn/#mloperanddescriptor-check-dimensions\" id=\"ref-for-mloperanddescriptor-check-dimensions\">checking dimensions</a> given <var>descriptor</var> returns false, 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/#exceptiondef-typeerror\" id=\"ref-for-exceptiondef-typeerror①⓪\">TypeError</a></code>.</p>" | 
|  | 
| 4728 | 4708 |           "html": "<p>If <a data-link-type=\"dfn\" href=\"https://webmachinelearning.github.io/webnn/#mlgraphbuilder-validate-operand\" id=\"ref-for-mlgraphbuilder-validate-operand③④\">validating operand</a> with <a data-link-type=\"dfn\" href=\"https://webidl.spec.whatwg.org/#this\" id=\"ref-for-this①②⓪\">this</a> and <var>input</var> returns false, 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/#exceptiondef-typeerror\" id=\"ref-for-exceptiondef-typeerror②②⑤\">TypeError</a></code>.</p>" | 
| 4729 | 4709 |         }, | 
| 4730 | 4710 |         { | 
| 4731 |  | -          "html": "<p>Let <var>outputShape</var> be an empty array of <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://webidl.spec.whatwg.org/#idl-unsigned-long\" id=\"ref-for-idl-unsigned-long⑤④\">unsigned long</a></code>.</p>" | 
|  | 4711 | +          "html": "<p>Let <var>outputShape</var> be an empty array of <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://webidl.spec.whatwg.org/#idl-unsigned-long\" id=\"ref-for-idl-unsigned-long⑤③\">unsigned long</a></code>.</p>" | 
| 4732 | 4712 |         }, | 
| 4733 | 4713 |         { | 
| 4734 | 4714 |           "html": "<p>If <var>newShape</var>’s <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-size\" id=\"ref-for-list-size③⑦\">size</a> is 0, set <var>outputShape</var> to an empty <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list\" id=\"ref-for-list④④\">list</a> for a scalar.</p>" | 
|  | 
| 5013 | 4993 |           "html": "<p>If <var>axis</var> is greater than or equal to <var>input</var>’s <a data-link-type=\"dfn\" href=\"https://webmachinelearning.github.io/webnn/#mloperand-rank\" id=\"ref-for-mloperand-rank⑤④\">rank</a>, 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/#exceptiondef-typeerror\" id=\"ref-for-exceptiondef-typeerror②④④\">TypeError</a></code>.</p>" | 
| 5014 | 4994 |         }, | 
| 5015 | 4995 |         { | 
| 5016 |  | -          "html": "If <var>splits</var> is an <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://webidl.spec.whatwg.org/#idl-unsigned-long\" id=\"ref-for-idl-unsigned-long⑦①\">unsigned long</a></code>:", | 
|  | 4996 | +          "html": "If <var>splits</var> is an <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://webidl.spec.whatwg.org/#idl-unsigned-long\" id=\"ref-for-idl-unsigned-long⑦⓪\">unsigned long</a></code>:", | 
| 5017 | 4997 |           "rationale": "if", | 
| 5018 | 4998 |           "steps": [ | 
| 5019 | 4999 |             { | 
|  | 
| 5025 | 5005 |           ] | 
| 5026 | 5006 |         }, | 
| 5027 | 5007 |         { | 
| 5028 |  | -          "html": "If <var>splits</var> is a <a data-link-type=\"dfn\" href=\"https://webidl.spec.whatwg.org/#idl-sequence\" id=\"ref-for-idl-sequence⑤②\">sequence</a><<code class=\"idl\"><a data-link-type=\"idl\" href=\"https://webidl.spec.whatwg.org/#idl-unsigned-long\" id=\"ref-for-idl-unsigned-long⑦②\">unsigned long</a></code>>:", | 
|  | 5008 | +          "html": "If <var>splits</var> is a <a data-link-type=\"dfn\" href=\"https://webidl.spec.whatwg.org/#idl-sequence\" id=\"ref-for-idl-sequence⑤⓪\">sequence</a><<code class=\"idl\"><a data-link-type=\"idl\" href=\"https://webidl.spec.whatwg.org/#idl-unsigned-long\" id=\"ref-for-idl-unsigned-long⑦①\">unsigned long</a></code>>:", | 
| 5029 | 5009 |           "rationale": "if", | 
| 5030 | 5010 |           "steps": [ | 
| 5031 | 5011 |             { | 
|  | 
| 5057 | 5037 |                   "html": "<p>Let <var>operand</var> be the result of <a data-link-type=\"dfn\" href=\"https://webmachinelearning.github.io/webnn/#copy-an-mloperand\" id=\"ref-for-copy-an-mloperand①⑦\">copying an MLOperand</a> given <var>input</var>.</p>" | 
| 5058 | 5038 |                 }, | 
| 5059 | 5039 |                 { | 
| 5060 |  | -                  "html": "<p>If <var>splits</var> is an <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://webidl.spec.whatwg.org/#idl-unsigned-long\" id=\"ref-for-idl-unsigned-long⑦③\">unsigned long</a></code>, then let <var>newDimension</var> be <var>operand</var>’s <a data-link-type=\"dfn\" href=\"https://webmachinelearning.github.io/webnn/#mloperand-shape\" id=\"ref-for-mloperand-shape⑧⑨\">shape</a>[<var>axis</var>] / <var>splits</var>.</p>" | 
|  | 5040 | +                  "html": "<p>If <var>splits</var> is an <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://webidl.spec.whatwg.org/#idl-unsigned-long\" id=\"ref-for-idl-unsigned-long⑦②\">unsigned long</a></code>, then let <var>newDimension</var> be <var>operand</var>’s <a data-link-type=\"dfn\" href=\"https://webmachinelearning.github.io/webnn/#mloperand-shape\" id=\"ref-for-mloperand-shape⑧⑨\">shape</a>[<var>axis</var>] / <var>splits</var>.</p>" | 
| 5061 | 5041 |                 }, | 
| 5062 | 5042 |                 { | 
| 5063 | 5043 |                   "html": "<p>Otherwise, let <var>newDimension</var> be <var>splits</var>[<var>index</var>].</p>" | 
|  | 
0 commit comments