code: def __init__(self, drop_prob, block_size, c, h, w):
      super(DropBlock, self).__init__()
      self.drop_prob = drop_prob
      self.block_size = block_size
      self.c, self.h, self.w = c, h, w
      self.numel = c * h * w
      pad_h = max((block_size - 1), 0)
      pad_w = max((block_size - 1), 0)
      self.padding = (
          pad_h // 2,
          pad_h - pad_h // 2,
          pad_w // 2,
          pad_w - pad_w // 2,
      )
      self.dtype = "float32"
  
file_path: gluon-cv/gluoncv/nn/dropblock.py
imports: from functools import partial
  import mxnet
  from mxnet.gluon.nn import HybridBlock
label_desc: Use image node_id 1 to create a new DropBlock object from inherited base classes: HybridBlock with example: obj = DropBlock(drop_prob, block_size, c, h, w)