google / aqt

Apache License 2.0
262 stars 27 forks source link

Rename `abs_val_mapped_to` to `get_quant_bound`. #715

Closed copybara-service[bot] closed 1 month ago

copybara-service[bot] commented 1 month ago

Rename abs_val_mapped_to to get_quant_bound.

The quant_bound represents the width that the bound corresponds to in the quantization range, and is what the bound needs to be divided by to create the scale.

This name general enough to reflect the function that it serves for both symmetric and asymmetric quantization.

Unrelatedly removes a docstring due to corrosion by a linter blocking submit.