From 774fbc855a7869877f915754e36e23546d70ab39 Mon Sep 17 00:00:00 2001 From: Mark Daoust Date: Wed, 11 Sep 2024 15:23:12 -0700 Subject: [PATCH] Update site/en/tutorials/distribute/keras.ipynb Make names sortable. --- site/en/tutorials/distribute/keras.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/en/tutorials/distribute/keras.ipynb b/site/en/tutorials/distribute/keras.ipynb index 7a598ed4a8..2aa3f0a45f 100644 --- a/site/en/tutorials/distribute/keras.ipynb +++ b/site/en/tutorials/distribute/keras.ipynb @@ -363,7 +363,7 @@ "# Define the checkpoint directory to store the checkpoints.\n", "checkpoint_dir = './training_checkpoints'\n", "# Define the name of the checkpoint files.\n", - "checkpoint_prefix = os.path.join(checkpoint_dir, \"ckpt_{epoch}.weights.h5\")" + "checkpoint_prefix = os.path.join(checkpoint_dir, \"ckpt_{epoch:04d}.weights.h5\")" ] }, {