class_docstr: DropBlock. See https://arxiv.org/pdf/1810.12890.pdf
class_docstr_tok: ["DropBlock",".","See","https",":","\/\/arxiv.org\/pdf\/1810.12890.pdf"]
code: def __init__(
      self,
      drop_prob=0.1,
      block_size=7,
      gamma_scale=1.0,
      with_noise=False,
      inplace=False,
      batchwise=False,
      fast=True,
  ):
      super().__init__()
      self.drop_prob = drop_prob
      self.gamma_scale = gamma_scale
      self.block_size = block_size
      self.with_noise = with_noise
      self.inplace = inplace
      self.batchwise = batchwise
      self.fast = fast
  
imports: import collections.abc
  import math
  import warnings
  from dataclasses import dataclass
  from functools import partial
  from itertools import repeat
  import omegaconf
  import torch
  import torch.nn
  import torch.nn.functional
  from mmf.common.registry import registry
  from mmf.modules.encoders import Encoder
label_desc: Use image node_id 1 to create a new DropBlock2d object from inherited base classes: nn with example: obj = DropBlock2d(drop_prob, block_size, gamma_scale, with_noise, inplace, batchwise, fast)