def switch_to_deploy(self):
        """switch the model to deploy mode, which has smaller amount of
        parameters and calculations."""
        for m in self.modules():
            if isinstance(m, MobileOneBlock):
                m.switch_to_deploy()
        self.deploy = True
switch the model to deploy mode, which has smaller amount of
        parameters and calculations.
mmpretrain/models/backbones/mobileone.py