class_docstr: An abstract key-value store interface for data parallel training.
class_docstr_tok: ["An","abstract","key-value","store","interface","for","data","parallel","training","."]
docstr: Saves the optimizer (updater) state to a file. This is often used when checkpointing
  the model during training.
  
  Parameters
  ----------
  fname : str
      Path to the output states file.
  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: ["Saves","the","optimizer","(","updater",")","state","to","a","file",".","This","is","often","used","when","checkpointing","the","model","during","training",".","Parameters","--","--","--","--","--","fname",":","str","Path","to","the","output","states","file",".","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 save_optimizer_states(self, fname, dump_optimizer=False):
      """Saves the optimizer (updater) state to a file. This is often used when checkpointing
      the model during training.
  
      Parameters
      ----------
      fname : str
          Path to the output states file.
      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.
      """
      raise NotImplementedError()
  
imports: from array import array
  import ctypes
  import warnings
  from ..ndarray import NDArray
  from ..base import _LIB, c_str_array, c_handle_array, c_array, c_array_buf, c_str
  from ..base import check_call, string_types
  from ..base import KVStoreHandle
  from ..profiler import set_kvstore_handle
label_desc: Use image node_id 5 for calling the KVStoreBase obj's underlying member method code with example usage: obj.save_optimizer_states(fname, dump_optimizer) without return types