Commit d9cf45ba authored by A. Unique TensorFlower's avatar A. Unique TensorFlower Committed by TensorFlower Gardener
Browse files

Fix support for batch_normalization with mixed precision

When the type of the input tensor `x` is not the same as the type of
the parameters `mean`, `variance` and `offset` a cast is
required.

This mixed precision case occurs when using the BatchNormalization
layer with a data type of float16 or bfloat16.

PiperOrigin-RevId: 204318176
parent cd00681e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment