Update documentation to use proper tf.train.CheckpointOptions.
PiperOrigin-RevId: 355202310 Change-Id: Ied4328f9b71cc1ba4872a284d2eb2e0367ca1227
This commit is contained in:
parent
0df420bebd
commit
937a4232b1
@ -2132,7 +2132,8 @@ class Checkpoint(tracking.AutoTrackable):
|
|||||||
|
|
||||||
# You can also pass options to read(). For example this
|
# You can also pass options to read(). For example this
|
||||||
# runs the IO ops on the localhost:
|
# 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)
|
checkpoint.read(path, options=options)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user