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

Method _sync_on_async_checkpointing

orbit/controller.py:576–581  ·  view source on GitHub ↗

Force to wait for the async checkpoint saving (if any) to finish.

(self)

Source from the content-addressed store, hash-verified

574 f"`Controller.__init__` before calling `{for_method}()`.")
575
576 def _sync_on_async_checkpointing(self):
577 """Force to wait for the async checkpoint saving (if any) to finish."""
578 # pylint: disable=protected-access
579 if self.checkpoint_manager:
580 logging.info("Sync on async checkpoint saving.")
581 self.checkpoint_manager.sync()
582
583
584class StepTimer:

Callers 3

trainMethod · 0.95
train_and_evaluateMethod · 0.95
train_and_evaluateMethod · 0.80

Calls 1

infoMethod · 0.80

Tested by 1

train_and_evaluateMethod · 0.64