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

Method QuantizeAct

lingvo/core/quant_utils.py:1068–1079  ·  view source on GitHub ↗

Quantizes a tensor with act_name previously created with TrackQActs. Args: act_name: Activation name. act: Activations to quantize. eval_only: Whether to only apply quantization pressure at eval time. Returns: Quantized tensor.

(self, act_name: str, act: tf.Tensor, eval_only: bool = False)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

QActMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected