Rate this Page

calculate_qmin_qmax#

classtorch.ao.quantization.utils.calculate_qmin_qmax(quant_min,quant_max,has_customized_qrange,dtype,reduce_range)[source]#

Calculates actual qmin and qmax based on the quantization range,observer datatype and if range is reduced.

Return type:

tuple[int,int]