Using the soft loss dtype instead of hardcoding bfloat16.
Using the soft loss dtype instead of hardcoding bfloat16.

hard-coded bfloat16 will cause error when running the code locally on CPU.

PiperOrigin-RevId: 386937636

tensorflow/mesh,tensorflow/mesh