class_docstr: Updater for kvstore.
docstr: Gets updater states.
  
  Parameters
  ----------
  dump_optimizer : bool, default False
      Whether to also save the optimizer itself. This would also save optimizer
      information such as learning rate and weight decay schedules.
docstr_tok: ["Gets","updater","states",".","Parameters","--","--","--","--","--","dump_optimizer",":","bool",",","default","False","Whether","to","also","save","the","optimizer","itself",".","This","would","also","save","optimizer","information","such","as","learning","rate","and","weight","decay","schedules","."]
code: def get_states(self, dump_optimizer=False):
      """Gets updater states.
  
      Parameters
      ----------
      dump_optimizer : bool, default False
          Whether to also save the optimizer itself. This would also save optimizer
          information such as learning rate and weight decay schedules.
      """
      return pickle.dumps(
          (self.states, self.optimizer)
          if dump_optimizer
          else self.states
      )
  
file_path: mxnet/python/mxnet/optimizer/updater.py
imports: from __future__ import absolute_import
  import pickle
  import numpy
  from ..base import py_str
  from ..ndarray import NDArray
  from ..profiler import scope
  from ..util import is_np_array
  from .utils import _as_classic
label_desc: Use image node_id 5 for calling the Updater obj's underlying member method code with example usage: obj.get_states(dump_optimizer) and returns: pickle