Skip to content

Commit 917c369

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 479ce17 commit 917c369

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
@@ -3843,6 +3843,7 @@ The {{MLLayerNormalizationOptions}} members are:
38433843
The <dfn method for=MLGraphBuilder>layerNormalization(|input|, |options|)</dfn> method steps are:
38443844
</summary>
38453845
<div class=algorithm-steps>
3846+
1. If |options|.{{MLLayerNormalizationOptions/axes}} does not [=map/exist=], set |options|.{{MLLayerNormalizationOptions/axes}} to the [=/list=] « 1, 2, 3 ».
38463847
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}}.
38473848
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}}.
38483849
1. [=list/For each=] |index| in [=the range=] 0 to the [=list/size=] of |options|.{{MLLayerNormalizationOptions/axes}}, exclusive:

0 commit comments

Comments
 (0)