quantize#
- class diffsptk.UniformQuantization(abs_max=1, n_bit=8, quantizer='mid-rise')[source]#
See this page for details. The gradient is copied from the next module.
- Parameters:
- abs_maxfloat > 0 [scalar]
Absolute maximum value of input.
- n_bitint >= 1 [scalar]
Number of quantization bits.
- quantizer[‘mid-rise’, ‘mid-tread’]
Quantizer.
See also