class_docstr: A module that wraps another layer in which some weights will be replaced by 0 during training.
class_docstr_tok: ["A","module","that","wraps","another","layer","in","which","some","weights","will","be","replaced","by","0","during","training","."]
code: def forward(self, *args):
      self._setweights()
      with warnings.catch_warnings():
          # To avoid the warning that comes because the weights aren't flattened.
          warnings.simplefilter("ignore", category=UserWarning)
          return self.module(*args)
  
imports: from __future__ import annotations
  from ...data.all import *
  from ..core import *
label_desc: Use image node_id 3 for calling the WeightDropout obj's underlying member method code with example usage: obj.forward() and returns: self