Skip to content

Commit 02c828a

Browse files
lyglstOrbax Authors
authored andcommitted
Temporarily disable proto compilation for orbax/experimental/model in doc serving script.
PiperOrigin-RevId: 838982402
1 parent 0fce161 commit 02c828a

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

docs/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
add these directories to sys.path here. If the directory is relative to the
2525
documentation root, use os.path.abspath to make it absolute, like shown here.
2626
"""
27+
import datetime
2728
import inspect
2829
import os
2930
import sys
@@ -37,7 +38,7 @@
3738
# -- Project information -----------------------------------------------------
3839

3940
project = 'Orbax'
40-
copyright = '2024, Google' # pylint: disable=redefined-builtin
41+
copyright = f'{datetime.datetime.now().year}, Google' # pylint: disable=redefined-builtin
4142
author = 'Orbax Contributors'
4243

4344
# -- General configuration ---------------------------------------------------

docs/guides/checkpoint/orbax_checkpoint_101.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"id": "1Ik2ARq4JaL3"
1616
},
1717
"source": [
18-
"This page serves as a simple overview of common tasks that you may wish to accomplish with Orbax. For more in-depth documentation of the API's, see [API Overview](https://orbax.readthedocs.io/en/latest/guides/checkpoint/orbax_checkpoint_api_overview.html)."
18+
"This page serves as a simple overview of common tasks that you may wish to accomplish with Orbax. For more in-depth documentation of the API's, see {doc}`API Overview</guides/checkpoint/orbax_checkpoint_api_overview>`."
1919
]
2020
},
2121
{
@@ -33,7 +33,7 @@
3333
"id": "VyfEdKvwswys"
3434
},
3535
"source": [
36-
"The following example shows how you can synchronously save and restore a PyTree. See [Checkpointing PyTrees](https://orbax.readthedocs.io/en/latest/guides/checkpoint/checkpointing_pytrees.html) for more detail.\n",
36+
"The following example shows how you can synchronously save and restore a PyTree. See {doc}`Checkpointing PyTrees</guides/checkpoint/checkpointing_pytrees>` for more detail.\n",
3737
"\n"
3838
]
3939
},
@@ -106,7 +106,7 @@
106106
"source": [
107107
"To save and restore, we create a `Checkpointer` object. The `Checkpointer` must be constructed with a `CheckpointHandler` - essentially as a configuration providing the `Checkpointer` with the logic needed to save and restore your object.\n",
108108
"\n",
109-
"For PyTrees, the most common checkpointable object, we can use the convenient shorthand of `StandardCheckpointer`, which is the same as `Checkpointer(StandardCheckpointHandler())` (see [docs](https://orbax.readthedocs.io/en/latest/api_reference/checkpoint.checkpoint_handlers.html#standardcheckpointhandler) for more info)."
109+
"For PyTrees, the most common checkpointable object, we can use the convenient shorthand of `StandardCheckpointer`, which is the same as `Checkpointer(StandardCheckpointHandler())` (see {py:class}`StandardCheckpointHandler <orbax.checkpoint.StandardCheckpointHandler>` for more info)."
110110
]
111111
},
112112
{
@@ -161,7 +161,7 @@
161161
"id": "LI-3bCyMEUCC"
162162
},
163163
"source": [
164-
"It is often necessary to deal with multiple distinct checkpointable objects at once, often with different types. A `Checkpointer` combined with a `CompositeCheckpointHandler` ([docs](https://orbax.readthedocs.io/en/latest/api_reference/checkpoint.checkpoint_handlers.html#compositecheckpointhandler)) can be used to represent a single checkpoint consisting of multiple sub-items, each represented by a sub-directory within the checkpoint."
164+
"It is often necessary to deal with multiple distinct checkpointable objects at once, often with different types. A `Checkpointer` combined with a {py:class}`CompositeCheckpointHandler <orbax.checkpoint.CompositeCheckpointHandler>` can be used to represent a single checkpoint consisting of multiple sub-items, each represented by a sub-directory within the checkpoint."
165165
]
166166
},
167167
{
@@ -274,9 +274,9 @@
274274
"id": "sYxNt2Zrw_Yt"
275275
},
276276
"source": [
277-
"In the context of training a model, it is helpful to deal with a series of steps. The `CheckpointManager` allows you to save steps sequentially, according to a given period, cleaning up after a certain number are stored, and many other [functionalities](https://orbax.readthedocs.io/en/latest/api_reference/checkpoint.checkpoint_manager.html#checkpointmanageroptions).\n",
277+
"In the context of training a model, it is helpful to deal with a series of steps. The `CheckpointManager` allows you to save steps sequentially, according to a given period, cleaning up after a certain number are stored, and many other functionalities(check {py:class}`CheckpointManagerOptions <orbax.checkpoint.CheckpointManagerOptions>` for more info).\n",
278278
"\n",
279-
"**Beware: `CheckpointManager.save(...)` happens in a background thread by default. See [Asynchronous Checkpointing](https://orbax.readthedocs.io/en/latest/guides/checkpoint/async_checkpointing.html) for more details.**\n",
279+
"**Beware: `CheckpointManager.save(...)` happens in a background thread by default. See {doc}`Asynchronous Checkpointing</guides/checkpoint/async_checkpointing>` for more details.**\n",
280280
"\n"
281281
]
282282
},

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ Model
211211
:class-card: sd-text-black sd-bg-light
212212
:link: api_reference/model.html
213213

214-
.. grid-item::
214+
.. grid-item::
215215
:columns: 6 6 6 4
216216

217217
.. card:: Roundtripping between Orbax Model and JAX Model

0 commit comments

Comments
 (0)