From 0ca1633464afa0387796876e3c5f79c4e198e8b8 Mon Sep 17 00:00:00 2001 From: Surya <116063290+SuryanarayanaY@users.noreply.github.com> Date: Mon, 22 Jan 2024 08:58:12 -0800 Subject: [PATCH] PR #723: Fix page rendering for SidecarEvaluatorModelExport Imported from GitHub PR https://github.com/keras-team/tf-keras/pull/723 In the tensorflow.org the documentation page of tf.keras.callbacks.SidecarEvaluatorModelExport showing content of raw HTML pages. The reason may be that the Python code fence was not closed causing the page view breaking. Hence correcting the mistake. Fixes TF ticket [61375](https://github.com/tensorflow/tensorflow/issues/61375). Discussed in #657. Copybara import of the project: -- b2c785096bde1d91362340c83256d40021e00d2b by SuryanarayanaY : Code fencing for SidecarEvaluatorModelExport Merging this change closes #723 FUTURE_COPYBARA_INTEGRATE_REVIEW=https://github.com/keras-team/tf-keras/pull/723 from SuryanarayanaY:side_car b2c785096bde1d91362340c83256d40021e00d2b PiperOrigin-RevId: 600471892 --- tf_keras/utils/sidecar_evaluator.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tf_keras/utils/sidecar_evaluator.py b/tf_keras/utils/sidecar_evaluator.py index 17c3e8b66..014db0215 100644 --- a/tf_keras/utils/sidecar_evaluator.py +++ b/tf_keras/utils/sidecar_evaluator.py @@ -381,6 +381,7 @@ class SidecarEvaluatorModelExport(ModelCheckpoint): ) sidecar_evaluator.start() # Model weights are saved if evaluator deems it's the best seen so far. + ``` Args: export_filepath: Path where best models should be saved by this