-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Fix formatting issues in the Orbax guide #2170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -49,10 +49,12 @@ | |
| ## Orbax Callback | ||
| We need to create two main utilities to manage Orbax checkpointing in Keras: | ||
| 1. `KerasOrbaxCheckpointManager`: A wrapper around | ||
| `orbax.checkpoint.CheckpointManager` for Keras models. | ||
| `KerasOrbaxCheckpointManager` uses `Model`'s `get_state_tree` and | ||
| `set_state_tree` APIs to save and restore the model variables. | ||
| 2. `OrbaxCheckpointCallback`: A Keras callback that uses | ||
| `KerasOrbaxCheckpointManager` to automatically save and restore model states | ||
| during training. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While the added spacing here improves readability, it appears the corresponding Jupyter notebook file (
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The formatting issue doesn't appear on the |
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need that newline? Won't that cause Markdown to restart the count to 1. ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looked fine when I locally brought it up but we probably don't need it, let me render it again without a newline between numbers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed