MCPcopy Index your code
hub / github.com/MoonInTheRiver/DiffSinger / save_checkpoint

Method save_checkpoint

utils/pl_utils.py:739–741  ·  view source on GitHub ↗
(self, filepath)

Source from the content-addressed store, hash-verified

737 os.replace(tmp_path, filepath)
738
739 def save_checkpoint(self, filepath):
740 checkpoint = self.dump_checkpoint()
741 self._atomic_save(checkpoint, filepath)
742
743 def dump_checkpoint(self):
744

Callers

nothing calls this directly

Calls 2

dump_checkpointMethod · 0.95
_atomic_saveMethod · 0.95

Tested by

no test coverage detected