class_docstr: Class to track progress during the loop. Includes state_dict/load_state_dict for convenience for checkpointing.
class_docstr_tok: ["Class","to","track","progress","during","the","loop",".","Includes","state_dict\/load_state_dict","for","convenience","for","checkpointing","."]
docstr: Restores a Progress instance from a state_dict in accordance with Stateful protocol.
docstr_tok: ["Restores","a","Progress","instance","from","a","state_dict","in","accordance","with","Stateful","protocol","."]
code: def load_state_dict(self, state_dict: Dict[str, Any]) -> None:
      """Restores a Progress instance from a state_dict in accordance with Stateful protocol."""
      self._num_epochs_completed = state_dict["num_epochs_completed"]
      self._num_steps_completed = state_dict["num_steps_completed"]
      self._num_steps_completed_in_epoch = state_dict[
          "num_steps_completed_in_epoch"
      ]
  
file_path: tnt/torchtnt/utils/progress.py
imports: from collections.abc import Sized
  from typing import Any, Dict, Iterable, Optional
label_desc: Use image node_id 8 for calling the Progress obj's underlying member method code with example usage: obj.load_state_dict(state_dict) without return types