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

Method QAct

lingvo/core/quant_utils.py:270–292  ·  view source on GitHub ↗

Quantizes an activation. act_name must have been previously created via TrackQActs. Args: act_name: Previously created act_name to quantize to. act: Activation to quantize. eval_only: Whether to only apply quantization pressure at eval time. Returns: The tensor

(self, act_name, act, eval_only=False)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

WrappedMethod · 0.95
FPropMethod · 0.80
_ComputeMethod · 0.80
FPropMethod · 0.80
FPropMethod · 0.80
SimpleLogitsMethod · 0.80
FPropMethod · 0.80
_PaddedSoftmaxMethod · 0.80
PackSourceMethod · 0.80

Calls 2

_GetQDomainMethod · 0.95
QuantizeActMethod · 0.45

Tested by 2

FPropMethod · 0.64
CheckLayerMethod · 0.64