Create a new util function that computes precision for floating-point quantization.
Create a new util function that computes precision for floating-point quantization.

PiperOrigin-RevId: 395302655

google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research,google-research/google-research