calculate_qmin_qmax
-
class torch.ao.quantization.utils.calculate_qmin_qmax(quant_min, quant_max, has_customized_qrange, dtype, reduce_range)[исходный код] -
Вычисляет фактические значения qmin и qmax на основе диапазона квантования, типа данных наблюдателя и того, сокращён ли диапазон.
© 2026, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://docs.pytorch.org/docs/2.14/generated/torch.ao.quantization.utils.calculate_qmin_qmax.html