code: def __init__(
      self,
      larc_config: Dict[str, Any] = None,
      lr: float = 0.1,
      momentum: float = 0.0,
      weight_decay: float = 0.0,
      nesterov: bool = False,
      use_larc: bool = False,
  ):
      super().__init__()
  
      self._lr = lr
      self._momentum = momentum
      self._weight_decay = weight_decay
      self._nesterov = nesterov
      self._use_larc = use_larc
      self._larc_config = larc_config
  
file_path: ClassyVision/classy_vision/optim/sgd.py
imports: from typing import Any, Dict
  import torch.optim
  from .None import ClassyOptimizer, register_optimizer
label_desc: Use image node_id 1 to create a new SGD object from inherited base classes: ClassyOptimizer with example: obj = SGD(larc_config, lr, momentum, weight_decay, nesterov, use_larc)