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

Method fn

imperative/python/megengine/module/module.py:406–407  ·  view source on GitHub ↗
(module: Module)

Source from the content-addressed store, hash-verified

404 return
405
406 def fn(module: Module) -> None:
407 module.train(mode, recursive=False)
408
409 self.apply(fn)
410

Callers

nothing calls this directly

Calls 1

trainMethod · 0.45

Tested by

no test coverage detected