Update documentation to use proper tf.train.CheckpointOptions.

PiperOrigin-RevId: 355202310
Change-Id: Ied4328f9b71cc1ba4872a284d2eb2e0367ca1227
This commit is contained in:
Haitang Hu 2021-02-02 10:44:22 -08:00 committed by TensorFlower Gardener
parent 0df420bebd
commit 937a4232b1

View File

@ -2132,7 +2132,8 @@ class Checkpoint(tracking.AutoTrackable):
# You can also pass options to read(). For example this
# runs the IO ops on the localhost:
options = tf.CheckpointOptions(experimental_io_device="/job:localhost")
options = tf.train.CheckpointOptions(
experimental_io_device="/job:localhost")
checkpoint.read(path, options=options)
```