Skip to content

Commit

Permalink
Bugfix: Provide default for MLLayerNormalizationOptions axes in steps
Browse files Browse the repository at this point in the history
This adds an explicit algorithm step in layerNormalization() to
provide a default described only in prose for the axes option.

For webmachinelearning#211
  • Loading branch information
inexorabletash committed Feb 7, 2024
1 parent d1a02f2 commit 3a9acd5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -3820,6 +3820,7 @@ partial interface MLGraphBuilder {
The <dfn method for=MLGraphBuilder>layerNormalization(|input|, |options|)</dfn> method steps are:
</summary>
<div class=algorithm-steps>
1. If |options|.{{MLLayerNormalizationOptions/axes}} does not [=map/exist=], set |options|.{{MLLayerNormalizationOptions/axes}} to the [=/list=] « 1, 2, 3 ».
1. If the [=rank=] of |options|.{{MLLayerNormalizationOptions/scale}} is not equal to the [=list/size=] of |options|.{{MLLayerNormalizationOptions/axes}}, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. If the [=rank=] of |options|.{{MLLayerNormalizationOptions/bias}} is not equal to the [=list/size=] of |options|.{{MLLayerNormalizationOptions/axes}}, then [=exception/throw=] a "{{DataError}}" {{DOMException}}.
1. [=list/For each=] |index| in [=the range=] 0 to the [=list/size=] of |options|.{{MLLayerNormalizationOptions/axes}}, exclusive:
Expand Down

0 comments on commit 3a9acd5

Please sign in to comment.