(self, state: dict, filename: str)
Saving a checkpoint
        Args:
            state (dict): a checkpoint
            filename (str): the filename of a checkpoint
Saving a checkpoint
        Args:
            state (dict): a checkpoint
            filename (str): the filename of a checkpoint
Saving a checkpoint Args : state ( dict ) : a checkpoint filename ( str ) : the filename of a checkpoint
def save_checkpoint(self, state: dict, filename: str) -> None:
        """Saving a checkpoint
        Args:
            state (dict): a checkpoint
            filename (str): the filename of a checkpoint
        """
        torch.save(state, self._model_dir / filename)
def save_checkpoint ( self , state : dict , filename : str ) -> None : torch . save ( state , self . _model_dir / filename )