class_docstr: Dropout layer of colossalai.
  
  Args:
      p (float, optional): probability of an element to be zeroed, defaults 0.5.
      inplace (bool, optional): whether to do dropout in-place, default to be False.
code: def __init__(self, p: float = 0.5, inplace: bool = False) -> None:
      tensor_parallel = get_tensor_parallel_mode()
      if tensor_parallel == "1d":
          drop = Dropout1D(p, inplace)
      else:
          drop = nn.Dropout(p, inplace)
      super().__init__(drop, tensor_parallel=tensor_parallel)
  
file_path: colossalai/colossalai/legacy/nn/layer/colossalai_layer/dropout.py
imports: import torch.nn
  from colossalai.legacy.context import ParallelMode, seed
  from ..parallel_1d import *
  from ..utils import get_tensor_parallel_mode
  from ._utils import ColossalaiModule
label_desc: Use image node_id 1 to create a new Dropout object from inherited base classes: ColossalaiModule with example: obj = Dropout(p, inplace)