mirror of
https://github.com/wassname/ray.git
synced 2026-07-01 08:02:33 +08:00
[docs] Fix warnings for sphinx 1.8 (#10476)
* fix-build-for-sphinx18 * jnilit
This commit is contained in:
@@ -161,7 +161,7 @@ def DistributedTrainableCreator(func,
|
||||
|
||||
Example:
|
||||
|
||||
.. code-block::
|
||||
.. code-block:: python
|
||||
|
||||
trainable_cls = DistributedTrainableCreator(
|
||||
train_func, num_workers=2)
|
||||
@@ -211,7 +211,7 @@ def distributed_checkpoint_dir(step, disable=False):
|
||||
again when invoking the training_function.
|
||||
Example:
|
||||
|
||||
.. code-block::
|
||||
.. code-block:: python
|
||||
|
||||
def train_func(config, checkpoint_dir):
|
||||
if checkpoint_dir:
|
||||
|
||||
Reference in New Issue
Block a user