class_docstr: For uncompressed gradients
class_docstr_tok: ["For","uncompressed","gradients"]
docstr: Add nesterov momentum for uncompressed gradients
docstr_tok: ["Add","nesterov","momentum","for","uncompressed","gradients"]
code: def decompress(self, tensor, ctx, *args, **kwargs):
      """Add nesterov momentum for uncompressed gradients"""
      tensor = self.compressor.decompress(tensor, ctx, *args, **kwargs)
  
      # uncompressed gradients need to do nag explicitly
      if not self.inited:
          if size(tensor.shape) < self.threshold:
              self.mom = nd.zeros_like(tensor)
              self.nag = True
          self.inited = True
  
      if self.nag:
          self.mom += tensor
          nd._internal._mul_scalar(self.mom, self.mu, out=self.mom)
          tensor += self.mom
  
      return tensor
  
imports: from functools import reduce
  import mxnet.ndarray
label_desc: Use image node_id 3 for calling the NagAdapter obj's underlying member method code with example usage: obj.decompress(tensor, ctx) and returns: tensor