class_docstr: `SGD <http://www.cs.toronto.edu/%7Ehinton/absps/momentum.pdf>`_ optimizer
  
  Args:
      opts: Command-line arguments
      model_params: Model parameters
code: def __init__(
      self,
      opts: argparse.Namespace,
      model_params: Iterable[Union[Tensor, Dict]],
      *args,
      **kwargs,
  ) -> None:
      BaseOptim.__init__(self, opts=opts)
      nesterov = getattr(opts, "optim.sgd.nesterov")
      momentum = getattr(opts, "optim.sgd.momentum")
  
      SGD.__init__(
          self,
          params=model_params,
          lr=self.lr,
          momentum=momentum,
          weight_decay=self.weight_decay,
          nesterov=nesterov,
      )
  
file_path: ml-cvnets/optim/sgd.py
imports: import argparse
  from typing import Dict, Iterable, Union
  from torch import Tensor
  from torch.optim import SGD
  from optim import OPTIM_REGISTRY
  from optim.base_optim import BaseOptim
label_desc: Use image node_id 1 to create a new SGDOptimizer object from inherited base classes: BaseOptim, SGD with example: obj = SGDOptimizer(opts, model_params)