View source on GitHub |
Checkpoints training state, policy state, and replay_buffer state.
tf_agents.utils.common.Checkpointer(
ckpt_dir, max_to_keep=20, **kwargs
)
Used in the notebooks
Used in the tutorials |
---|
Attributes | |
---|---|
checkpoint_exists
|
|
manager
|
Returns the underlying tf.train.CheckpointManager. |
Methods
initialize_or_restore
initialize_or_restore(
session=None
)
Initialize or restore graph (based on checkpoint if exists).
save
save(
global_step: tf.Tensor, options: tf.train.CheckpointOptions = None
)
Save state to checkpoint.