Skip to content

Commit a8c3190

Browse files
MarkDaoustcopybara-github
authored andcommitted
Fix suptitles.
PiperOrigin-RevId: 447842364
1 parent 27821b6 commit a8c3190

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

site/en/tutorials/images/classification_with_model_garden.ipynb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@
251251
" print('This may be broken in Colab.')\n",
252252
" device = 'TPU'\n",
253253
"else:\n",
254-
" print('This is slow, and doesn\\'t train to convergence.')\n",
254+
" print('Running on CPU is slow, so only train for a few steps.')\n",
255255
" device = 'CPU'\n",
256256
"\n",
257257
"if device=='CPU':\n",
@@ -261,7 +261,6 @@
261261
" train_steps=5000\n",
262262
" exp_config.trainer.steps_per_loop = 100\n",
263263
"\n",
264-
"exp_config.trainer.steps_per_loop = 100\n",
265264
"exp_config.trainer.summary_interval = 100\n",
266265
"exp_config.trainer.checkpoint_interval = train_steps\n",
267266
"exp_config.trainer.validation_interval = 1000\n",
@@ -582,7 +581,7 @@
582581
"show_batch(images, labels, tf.cast(predictions, tf.int32))\n",
583582
"\n",
584583
"if device=='CPU':\n",
585-
" plt.title('The model was only trained for a few steps, so it is not expected to do well.')"
584+
" plt.suptitle('The model was only trained for a few steps, it is not expected to do well.')"
586585
]
587586
},
588587
{
@@ -669,7 +668,7 @@
669668
" show_batch(data['image'], data['label'], predictions)\n",
670669
"\n",
671670
" if device=='CPU':\n",
672-
" plt.title('The model was only trained for a few steps, it is not expected to do well.')"
671+
" plt.suptitle('The model was only trained for a few steps, it is not expected to do well.')"
673672
]
674673
}
675674
],

0 commit comments

Comments
 (0)