"vscode:/vscode.git/clone" did not exist on "b07fb946e0b409bc88590247b5a40f31d94254aa"
Simply LayerNorm mixed precision logic.
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
Showing
Please register or sign in to comment