Skip to content

Commit 490e326

Browse files
Bug fix: Link operator names to the MLGraphBuilder methods
For a "reshape" reference a malformed IDL link was present. The other references are linked as appropriately to the builder references rather than just being styled text.
1 parent 479ce17 commit 490e326

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

index.bs

+5-5
Original file line numberDiff line numberDiff line change
@@ -1635,7 +1635,7 @@ partial interface MLGraphBuilder {
16351635
<div class="note">
16361636
<details open>
16371637
<summary>
1638-
The behavior of this operation when the input tensor is 4-D of the {{MLInputOperandLayout/"nchw"}} layout and the activation is of operator type *relu* can be generically emulated from the usage of other operations as follow. However, user agents typically have a more efficient implementation for it, therefore its usage is encouraged from the performance standpoint.
1638+
The behavior of this operation when the input tensor is 4-D of the {{MLInputOperandLayout/"nchw"}} layout and the activation is of operator type {{MLGraphBuilder/relu()}} can be generically emulated from the usage of other operations as follow. However, user agents typically have a more efficient implementation for it, therefore its usage is encouraged from the performance standpoint.
16391639
</summary>
16401640
<pre highlight="js">
16411641
const shape = [1,null,1,1];
@@ -2525,7 +2525,7 @@ partial interface MLGraphBuilder {
25252525
</div>
25262526

25272527
<div class="note">
2528-
Although operations *greaterOrEqual* and *lesserOrEqual* can each be implemented in terms of operations *not*, *lesser*, and *greater* in other words `greater-or-equal(a, b)` is `not(lesser(a, b))`, they are specifically defined to handle NaN cases and for performance reason to avoid double comparisons.
2528+
Although operations {{MLGraphBuilder/greaterOrEqual()}} and {{MLGraphBuilder/lesserOrEqual()}} can each be implemented in terms of operations {{MLGraphBuilder/not()}}, {{MLGraphBuilder/lesser()}}, and {{MLGraphBuilder/greater()}} in other words `greaterOrEqual(a, b)` is `not(lesser(a, b))`, they are specifically defined to handle NaN cases and for performance reason to avoid double comparisons.
25292529
</div>
25302530

25312531
<details open algorithm>
@@ -3386,7 +3386,7 @@ partial interface MLGraphBuilder {
33863386
<div class="note">
33873387
<details open>
33883388
<summary>
3389-
The behavior of this operation can be generically emulated via other operations as shown below, when the weight layout is the default {{MLGruWeightLayout/"zrn"}} layout, and the activation functions of the update/reset gate and new gate are of the operator types *sigmoid* and *tanh* respectively.
3389+
The behavior of this operation can be generically emulated via other operations as shown below, when the weight layout is the default {{MLGruWeightLayout/"zrn"}} layout, and the activation functions of the update/reset gate and new gate are of the operator types {{MLGraphBuilder/sigmoid()}} and {{MLGraphBuilder/tanh()}} respectively.
33903390
</summary>
33913391
<pre highlight="js">
33923392
const one = builder.constant(1);
@@ -4395,7 +4395,7 @@ partial interface MLGraphBuilder {
43954395
<div class="note">
43964396
<details open>
43974397
<summary>
4398-
The behavior of this operation can be generically emulated via other operations as shown below, when the weight layout is the default {{MLLstmWeightLayout/"iofg"}} layout, and the activation functions of the input/forget/output gate and the cell gate/the cell state's filter for the output hidden state are of the operator types *sigmoid* and *tanh* respectively.
4398+
The behavior of this operation can be generically emulated via other operations as shown below, when the weight layout is the default {{MLLstmWeightLayout/"iofg"}} layout, and the activation functions of the input/forget/output gate and the cell gate/the cell state's filter for the output hidden state are of the operator types {{MLGraphBuilder/sigmoid()}} and {{MLGraphBuilder/tanh()}} respectively.
43994399
</summary>
44004400
<pre highlight="js">
44014401
const zero = builder.constant(0);
@@ -5323,7 +5323,7 @@ partial interface MLGraphBuilder {
53235323
<div class="note">
53245324
<details open>
53255325
<summary>
5326-
Many shape-related operations such as [squeeze](https://pytorch.org/docs/stable/generated/torch.squeeze.html), [unsqueeze](https://pytorch.org/docs/stable/generated/torch.unsqueeze.html), and [flatten](https://pytorch.org/docs/stable/generated/torch.flatten.html) can be generically implemented using the *reshape*}} operation as follows:
5326+
Many shape-related operations such as [squeeze](https://pytorch.org/docs/stable/generated/torch.squeeze.html), [unsqueeze](https://pytorch.org/docs/stable/generated/torch.unsqueeze.html), and [flatten](https://pytorch.org/docs/stable/generated/torch.flatten.html) can be generically implemented using the {{MLGraphBuilder/reshape()}} operation as follows:
53275327
</summary>
53285328
<pre highlight="js">
53295329
// Returns a tensor with all specified dimensions of input of size 1 removed.

0 commit comments

Comments
 (0)