From 3a9acd5e72910ce2b793216f39922da48b082305 Mon Sep 17 00:00:00 2001 From: Joshua Bell Date: Mon, 29 Jan 2024 11:54:06 -0800 Subject: [PATCH] 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 --- index.bs | 1 + 1 file changed, 1 insertion(+) diff --git a/index.bs b/index.bs index 3893f415..aeebaa16 100644 --- a/index.bs +++ b/index.bs @@ -3820,6 +3820,7 @@ partial interface MLGraphBuilder { The layerNormalization(|input|, |options|) method steps are:
+ 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: