code: def updateBoostStrength(m):
    
    if isinstance(m, KWinnersBase):
      if m.training:
        m.boostStrength = m.boostStrength * m.boostStrengthFactor
docs: Function used to update KWinner modules boost strength after each epoch.
  
    Call using :meth:`torch.nn.Module.apply` after each epoch if required
    For example: ``m.apply(updateBoostStrength)``
  
    :param m: KWinner module