MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / _propagate

Function _propagate

imperative/python/megengine/quantization/quantize.py:172–177  ·  view source on GitHub ↗
(module: Module, func_str: str, *args, **kargs)

Source from the content-addressed store, hash-verified

170
171
172def _propagate(module: Module, func_str: str, *args, **kargs):
173 def fn(mod: Module):
174 if isinstance(mod, QATModule):
175 getattr(mod, func_str)(*args, **kargs)
176
177 module.apply(fn)
178
179
180def propagate_qconfig(module: QATModule, qconfig: QConfig):

Callers 5

propagate_qconfigFunction · 0.85
disable_fake_quantFunction · 0.85
disable_observerFunction · 0.85
enable_fake_quantFunction · 0.85
enable_observerFunction · 0.85

Calls 1

applyMethod · 0.45

Tested by

no test coverage detected