megengine.module.SiLU.train¶
- SiLU.train(mode=True, recursive=True)¶
Sets training mode of all the modules within this module (including itself) to
mode
. This effectively sets thetraining
attributes of those modules tomode
, but only has effect on certain modules (e.g.BatchNorm2d
,Dropout
,Observer
)