code: def __init__(self, args, params):
      super().__init__(args)
      self._optimizer = AdagradWithGradClip(
          params, **self.optimizer_config
      )
  
file_path: fairseq/examples/adaptive_span/adagrad_with_grad_clip.py
imports: from torch.optim import Adagrad
  from fairseq.optim import LegacyFairseqOptimizer, register_optimizer
label_desc: Use image node_id 1 to create a new FairseqAdagradWithGradClip object from inherited base classes: LegacyFairseqOptimizer with example: obj = FairseqAdagradWithGradClip(args, params)