class_docstr: Optimizer hook for distributed training.
class_docstr_tok: ["Optimizer","hook","for","distributed","training","."]
code: def __init__(
      self,
      update_interval=1,
      grad_clip=None,
      coalesce=True,
      bucket_size_mb=-1,
      use_fp16=False,
  ):
      self.grad_clip = grad_clip
      self.coalesce = coalesce
      self.bucket_size_mb = bucket_size_mb
      self.update_interval = update_interval
      self.use_fp16 = use_fp16
  
imports: from mmcv.runner import OptimizerHook, HOOKS
label_desc: Use image node_id 1 to create a new DistOptimizerHook object from inherited base classes: OptimizerHook with example: obj = DistOptimizerHook(update_interval, grad_clip, coalesce, bucket_size_mb, use_fp16)