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

Function fn

imperative/python/megengine/quantization/quantize.py:173–175  ·  view source on GitHub ↗
(mod: Module)

Source from the content-addressed store, hash-verified

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

Callers 3

applyMethod · 0.50
_apply_fn_to_hxMethod · 0.50
_apply_fn_to_hxMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected