Skip to content

Commit 5c23ab6

Browse files
Merge pull request #1589 from ymodak:patch-9
PiperOrigin-RevId: 314171655
2 parents 5b66895 + 90c063f commit 5c23ab6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

site/en/tutorials/distribute/multi_worker_with_keras.ipynb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@
273273
"id": "N0iv7SyyAohc"
274274
},
275275
"source": [
276-
"Note: `TF_CONFIG` is parsed and TensorFlow's GRPC servers are started at the time `MultiWorkerMirroredStrategy.__init__()` is called, so `TF_CONFIG` environment variable must be set before a `tf.distribute.Strategy` instance is created."
276+
"Note: `TF_CONFIG` is parsed and TensorFlow's GRPC servers are started at the time `MultiWorkerMirroredStrategy()` is called, so `TF_CONFIG` environment variable must be set before a `tf.distribute.Strategy` instance is created."
277277
]
278278
},
279279
{
@@ -433,8 +433,7 @@
433433
"source": [
434434
"If a worker gets preempted, the whole cluster pauses until the preempted worker is restarted. Once the worker rejoins the cluster, other workers will also restart. Now, every worker reads the checkpoint file that was previously saved and picks up its former state, thereby allowing the cluster to get back in sync. Then the training continues.\n",
435435
"\n",
436-
"If you inspect the directory containing the `filepath` you specified in `ModelCheckpoint`, you may notice some temporarily generated checkpoint files. Those files are needed for recovering the previously lost instances, and they will be removed by the library at the end of `tf.keras.Model.fit()` upon successful exiting of your multi-worker training.\n",
437-
"\n"
436+
"If you inspect the directory containing the `filepath` you specified in `ModelCheckpoint`, you may notice some temporarily generated checkpoint files. Those files are needed for recovering the previously lost instances, and they will be removed by the library at the end of `tf.keras.Model.fit()` upon successful exiting of your multi-worker training.\n"
438437
]
439438
},
440439
{

0 commit comments

Comments
 (0)