Skip to content

Commit 44a8674

Browse files
Bug fix: Drop "... have been checked..." notes (#620)
A smattering of methods on MLGraphBuilder (build, buildSync, concat, constant, expand, and input) had a note about permissions and context validity at the start of the steps. This is implicit, and applies to all methods so it was confusing - was there something special about these methods? Nope. So remove the notes. Fixes #501
1 parent 2f32429 commit 44a8674

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

index.bs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1261,9 +1261,6 @@ Create a named {{MLOperand}} based on a descriptor, that can be used as an input
12611261
<summary>
12621262
The <dfn method for=MLGraphBuilder>input(|name|, |descriptor|)</dfn> method steps are:
12631263
</summary>
1264-
<div class="note">
1265-
The permissions and context validity have been checked by [[#api-mlgraphbuilder-constructor]] steps.
1266-
</div>
12671264
1. If |name| is empty, then [=exception/throw=] a {{TypeError}}.
12681265
1. If [=MLOperandDescriptor/checking dimensions=] given |descriptor| returns false, then [=exception/throw=] a {{TypeError}}.
12691266
1. *Make graph connections:*
@@ -1290,9 +1287,6 @@ Create a constant {{MLOperand}} of the specified data type and shape that contai
12901287
<summary>
12911288
The <dfn method for=MLGraphBuilder>constant(|descriptor|, |bufferView|)</dfn> method steps are:
12921289
</summary>
1293-
<div class="note">
1294-
The permissions and context validity have been checked by [[#api-mlgraphbuilder-constructor]] steps.
1295-
</div>
12961290
1. If [=MLOperandDescriptor/checking dimensions=] given |descriptor| returns false, then [=exception/throw=] a {{TypeError}}.
12971291
1. If [=validating buffer with descriptor=] given |bufferView| and |descriptor| returns false, then [=exception/throw=] a {{TypeError}}.
12981292
1. *Make graph connections:*
@@ -1320,9 +1314,6 @@ Data truncation will occur when the specified value exceeds the range of the spe
13201314
<summary>
13211315
The <dfn method for=MLGraphBuilder>constant(|value|, |type|)</dfn> method steps are:
13221316
</summary>
1323-
<div class="note">
1324-
The permissions and context validity have been checked by [[#api-mlgraphbuilder-constructor]] steps.
1325-
</div>
13261317
1. Let |descriptor| be a new {{MLOperandDescriptor}}.
13271318
1. Set |descriptor|.{{MLOperandDescriptor/dataType}} to |type|.
13281319
1. Set |descriptor|.{{MLOperandDescriptor/dimensions}} to an empty [=/list=].
@@ -1352,9 +1343,6 @@ Data truncation will occur when the values in the range exceed the range of the
13521343
<summary>
13531344
The <dfn method for=MLGraphBuilder>constant(|start|, |end|, |step|, |type|)</dfn> method steps are:
13541345
</summary>
1355-
<div class="note">
1356-
The permissions and context validity have been checked by [[#api-mlgraphbuilder-constructor]] steps.
1357-
</div>
13581346
1. Let |descriptor| be a new {{MLOperandDescriptor}}.
13591347
1. Set |descriptor|.{{MLOperandDescriptor/dataType}} to |type|.
13601348
1. Let |size| be max(0, ceil((|end| - |start|)/|step|)).
@@ -1741,9 +1729,6 @@ partial interface MLGraphBuilder {
17411729
<summary>
17421730
The <dfn method for=MLGraphBuilder>concat(|inputs|, |axis|)</dfn> method steps are:
17431731
</summary>
1744-
<div class="note">
1745-
The permissions and context validity have been checked by [[#api-mlgraphbuilder-constructor]] steps.
1746-
</div>
17471732
1. If [=MLGraphBuilder/validating operand=] with [=this=] and any [=list/item=] in |inputs| returns false, then [=exception/throw=] a {{TypeError}}.
17481733
1. If |inputs| [=list/is empty=], then [=exception/throw=] a {{TypeError}}.
17491734
1. Let |first| be |inputs|[0].
@@ -2663,9 +2648,6 @@ partial interface MLGraphBuilder {
26632648
<summary>
26642649
The <dfn method for=MLGraphBuilder>expand(|input|, |newShape|)</dfn> method steps are:
26652650
</summary>
2666-
<div class="note">
2667-
The permissions and context validity have been checked by [[#api-mlgraphbuilder-constructor]] steps.
2668-
</div>
26692651
1. If [=MLGraphBuilder/validating operand=] with [=this=] and |input| returns false, then [=exception/throw=] a {{TypeError}}.
26702652
1. Let |outputDescriptor| be a new {{MLOperandDescriptor}}.
26712653
1. Set |outputDescriptor|.{{MLOperandDescriptor/dataType}} to |input|'s [=MLOperand/dataType=].

0 commit comments

Comments
 (0)