MCPcopy Create free account
hub / github.com/tensorflow/lingvo / QuantizeNaturalRange

Method QuantizeNaturalRange

lingvo/core/quant_utils.py:1016–1027  ·  view source on GitHub ↗

Quantizes a tensor with a known, natural range. Args: t: Tensor to quantize. min_value: Min value of the range. max_value: Max value of the range. Returns: Quantized tensor.

(self, t, min_value, max_value)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

QRActMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected