View source on GitHub |
Options for constructing a Checkpoint.
tf.train.CheckpointOptions(
experimental_io_device=None
)
Used as the options
argument to either tf.train.Checkpoint.save()
or
tf.train.Checkpoint.restore()
methods to adjust how variables are
saved/restored.
Example: Run IO ops on "localhost" while saving a checkpoint:
step = tf.Variable(0, name="step")
checkpoint = tf.train.Checkpoint(step=step)
options = tf.train.CheckpointOptions(experimental_io_device="/job:localhost")
checkpoint.save("/tmp/ckpt", options=options)
Attributes | |
---|---|
experimental_io_device
|