MCPcopy Create free account
hub / github.com/tensorflow/lingvo / MaybeSave

Method MaybeSave

lingvo/core/checkpointer.py:296–311  ·  view source on GitHub ↗

If it's time to save, save the checkpoint. Args: sess: tf.Session. gsteps: Current global step. sync: Whether to wait for the saving operations to finish. Only applicable when async checkpointing is used. Returns: Whether a checkpoint was saved.

(self, sess=None, gsteps=None, sync=True)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

_LoopMethod · 0.80
_LoopMethod · 0.80
_LoopMethod · 0.80
StartMethod · 0.80

Calls 2

ShouldSaveMethod · 0.95
SaveMethod · 0.95

Tested by

no test coverage detected