MCPcopy Index your code
hub / github.com/tensorflow/models / save_checkpoint

Method save_checkpoint

orbit/controller.py:471–482  ·  view source on GitHub ↗

Saves the model to a checkpoint. This method will save a checkpoint containing the current state of the model. Raises: ValueError: If no `checkpoint_manager` was provided to `Controller.__init__`.

(self)

Source from the content-addressed store, hash-verified

469 return checkpoint_path
470
471 def save_checkpoint(self):
472 """Saves the model to a checkpoint.
473
474 This method will save a checkpoint containing the current state of the
475 model.
476
477 Raises:
478 ValueError: If no `checkpoint_manager` was provided to
479 `Controller.__init__`.
480 """
481 self._require("checkpoint_manager", for_method="save_checkpoint")
482 self._maybe_save_checkpoint(check_interval=False)
483
484 @property
485 def steps_per_loop(self):

Callers

nothing calls this directly

Calls 2

_requireMethod · 0.95

Tested by

no test coverage detected