You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mean, var, and standardize functions in 3.1.6 Normalization layers accept multiple named axes (e.g., two batch,layer axes in BatchNorm and one layer axis in LayerNorm). How can I define Mean and Standardize below so that they can accept different number of bound variables?
This is not (yet) possible with the current implementation of make_funsor, but we'll need something like this if we want to rewrite more of funsor.terms with make_funsor.
A minimal solution would be to define a BoundSet hint
BoundSet=typing.FrozenSet[Bound]
and hard-code support for BoundSet inside make_funsor. Then we could write e.g.
mean
,var
, andstandardize
functions in 3.1.6 Normalization layers accept multiple named axes (e.g., twobatch,layer
axes inBatchNorm
and onelayer
axis inLayerNorm
). How can I defineMean
andStandardize
below so that they can accept different number of bound variables?The text was updated successfully, but these errors were encountered: