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
Instead of needing to ensure variables are float32, casting inputs to float32, etc, instead dtype="float32" is passed to the layer constructor, which will do all that logic automatically.
The only difference is the output of LayerNorm is now float32 instead of float16, so an extra cast is needed elsewhere.
PiperOrigin-RevId: 273833286
0 commit comments