Skip to content

Commit

Permalink
Fix API documentation formatting. (#8197)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertnishihara committed Apr 27, 2020
1 parent d7da25e commit 4825021
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/ray/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,9 +581,9 @@ def init(address=None,
redis_port (int): The port that the primary Redis shard should listen
to. If None, then a random port will be chosen.
num_cpus (int): Number of CPUs the user wishes to assign to each
raylet.
raylet.
num_gpus (int): Number of GPUs the user wishes to assign to each
raylet.
raylet.
resources: A dictionary mapping the names of custom resources to the
quantities for them available.
memory: The amount of memory (in bytes) that is available for use by
Expand All @@ -606,7 +606,7 @@ def init(address=None,
manner. However, the same ID should not be used for different
drivers.
local_mode (bool): If true, the code will be executed serially. This
is useful for debugging.
is useful for debugging.
driver_object_store_memory (int): Limit the amount of memory the driver
can use in the object store for creating objects. By default, this
is autoset based on available system memory, subject to a 20GB cap.
Expand Down Expand Up @@ -1691,7 +1691,7 @@ def cancel(object_id, force=False):
Args:
id (ActorHandle or ObjectID): Handle for the actor to kill or ObjectID
of the task to kill.
of the task to kill.
"""
worker = ray.worker.global_worker
worker.check_connected()
Expand Down

0 comments on commit 4825021

Please sign in to comment.