class_docstr: Internal wrapper around a deepspeed optimizer.
  
  Args:
      optimizer (`torch.optim.optimizer.Optimizer`):
          The optimizer to wrap.
class_docstr_tok: ["Internal","wrapper","around","a","deepspeed","optimizer",".","Args",":","optimizer","(","`","torch.optim.optimizer.Optimizer","`",")",":","The","optimizer","to","wrap","."]
code: def __init__(self, optimizer):
      super().__init__(optimizer, device_placement=False, scaler=None)
      self.__has_overflow__ = hasattr(self.optimizer, "overflow")
  
imports: import base64
  import io
  import json
  import os
  from copy import deepcopy
  from ..optimizer import AcceleratedOptimizer
  from ..scheduler import AcceleratedScheduler
label_desc: Use image node_id 1 to create a new DeepSpeedOptimizerWrapper object from inherited base classes: AcceleratedOptimizer with example: obj = DeepSpeedOptimizerWrapper(optimizer)