tf.quantization.quantize_and_dequantize

View source on GitHub

Quantizes then dequantizes a tensor.

tf.quantization.quantize_and_dequantize(
    input, input_min, input_max, signed_input=True, num_bits=8, range_given=False,
    round_mode='HALF_TO_EVEN', name=None, narrow_range=False, axis=None
)

Args:

Returns:

A Tensor. Each element is the result of quantizing and dequantizing the corresponding element of input.