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

Method FromAqtWeight

lingvo/core/quant_utils.py:477–495  ·  view source on GitHub ↗

Rescales the output corresponding to AQT style quantized matmul's weight. Uses the same scale used by `ToAqtWeight` and apply its inverse to rescale. w_name must have been previously created via TrackQWeight. Args: w_name: Previously created w_name QWeight to quantize weight.

(self, w_name, out, merge_feature_axes=False)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 3

_ValidateWeightMethod · 0.95
_GetQDomainMethod · 0.95
FromAqtWeightMethod · 0.45

Tested by

no test coverage detected