Make ApplyPadding work with bool padding tensors:
Make ApplyPadding work with bool padding tensors:

When use_select==true, do the compare only if the padding is not bool.
When use_select==false, cast the tensor to float32 before subtracting.

PiperOrigin-RevId: 383880262

tensorflow/lingvo,tensorflow/lingvo,tensorflow/lingvo,tensorflow/lingvo