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)