Skip to content

Commit 77e0977

Browse files
Bugfix: Provide default for MLLayerNormalizationOptions axes in steps
This adds an explicit algorithm step in layerNormalization() to provide a default described only in prose for the axes option. For #211
1 parent c9d2dd7 commit 77e0977

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.bs

+1
Original file line numberDiff line numberDiff line change
@@ -3823,6 +3823,7 @@ partial interface MLGraphBuilder {
38233823
The <dfn method for=MLGraphBuilder>layerNormalization(|input|, |options|)</dfn> method steps are:
38243824
</summary>
38253825
<div class=algorithm-steps>
3826+
1. If |options|.{{MLLayerNormalizationOptions/axes}} does not [=map/exist=], set |options|.{{MLLayerNormalizationOptions/axes}} to the [=/list=] « 1, 2, 3 ».
38263827
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}}.
38273828
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}}.
38283829
1. [=list/For each=] |index| in [=the range=] 0 to the [=list/size=] of |options|.{{MLLayerNormalizationOptions/axes}}, exclusive:

0 commit comments

Comments
 (0)