2019-08-05 23:33:14 -07:00
|
|
|
Ray Package Reference
|
|
|
|
=====================
|
2017-02-27 21:14:31 -08:00
|
|
|
|
2020-07-13 17:59:22 -07:00
|
|
|
Python API
|
|
|
|
----------
|
|
|
|
|
|
|
|
.. _ray-init-ref:
|
|
|
|
|
|
|
|
ray.init
|
|
|
|
~~~~~~~~
|
|
|
|
|
2017-03-17 16:48:25 -07:00
|
|
|
.. autofunction:: ray.init
|
|
|
|
|
2020-07-13 17:59:22 -07:00
|
|
|
.. _ray-is_initialized-ref:
|
|
|
|
|
|
|
|
ray.is_initialized
|
|
|
|
~~~~~~~~~~~~~~~~~~
|
|
|
|
|
2018-09-06 21:20:59 -07:00
|
|
|
.. autofunction:: ray.is_initialized
|
|
|
|
|
2020-07-13 17:59:22 -07:00
|
|
|
.. _ray-remote-ref:
|
|
|
|
|
|
|
|
ray.remote
|
|
|
|
~~~~~~~~~~
|
|
|
|
|
2017-02-27 21:14:31 -08:00
|
|
|
.. autofunction:: ray.remote
|
2017-03-17 16:48:25 -07:00
|
|
|
|
2020-07-13 17:59:22 -07:00
|
|
|
.. _ray-get-ref:
|
|
|
|
|
|
|
|
ray.get
|
|
|
|
~~~~~~~
|
|
|
|
|
2017-03-17 16:48:25 -07:00
|
|
|
.. autofunction:: ray.get
|
|
|
|
|
2020-07-13 17:59:22 -07:00
|
|
|
.. _ray-wait-ref:
|
|
|
|
|
|
|
|
ray.wait
|
|
|
|
~~~~~~~~
|
|
|
|
|
2018-07-12 14:00:00 -05:00
|
|
|
.. autofunction:: ray.wait
|
2017-03-17 16:48:25 -07:00
|
|
|
|
2020-07-13 17:59:22 -07:00
|
|
|
.. _ray-put-ref:
|
|
|
|
|
|
|
|
ray.put
|
|
|
|
~~~~~~~
|
|
|
|
|
2017-03-17 16:48:25 -07:00
|
|
|
.. autofunction:: ray.put
|
|
|
|
|
2020-07-13 17:59:22 -07:00
|
|
|
.. _ray-kill-ref:
|
|
|
|
|
|
|
|
ray.kill
|
|
|
|
~~~~~~~~
|
|
|
|
|
2020-02-28 11:55:14 -06:00
|
|
|
.. autofunction:: ray.kill
|
|
|
|
|
2020-07-13 17:59:22 -07:00
|
|
|
.. _ray-cancel-ref:
|
|
|
|
|
|
|
|
ray.cancel
|
|
|
|
~~~~~~~~~~
|
|
|
|
|
2020-04-27 17:06:08 -07:00
|
|
|
.. autofunction:: ray.cancel
|
|
|
|
|
2020-07-13 17:59:22 -07:00
|
|
|
.. _ray-get_gpu_ids-ref:
|
|
|
|
|
|
|
|
ray.get_gpu_ids
|
|
|
|
~~~~~~~~~~~~~~~
|
|
|
|
|
2018-07-12 14:00:00 -05:00
|
|
|
.. autofunction:: ray.get_gpu_ids
|
2017-03-17 16:48:25 -07:00
|
|
|
|
2020-07-13 17:59:22 -07:00
|
|
|
.. _ray-get_resource_ids-ref:
|
|
|
|
|
|
|
|
ray.get_resource_ids
|
|
|
|
~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
2018-07-12 14:00:00 -05:00
|
|
|
.. autofunction:: ray.get_resource_ids
|
2017-03-17 16:48:25 -07:00
|
|
|
|
2020-07-13 17:59:22 -07:00
|
|
|
.. _ray-get_webui_url-ref:
|
|
|
|
|
|
|
|
ray.get_webui_url
|
|
|
|
~~~~~~~~~~~~~~~~~
|
|
|
|
|
2018-07-12 14:00:00 -05:00
|
|
|
.. autofunction:: ray.get_webui_url
|
2017-03-17 16:48:25 -07:00
|
|
|
|
2020-07-13 17:59:22 -07:00
|
|
|
.. _ray-shutdown-ref:
|
|
|
|
|
|
|
|
ray.shutdown
|
|
|
|
~~~~~~~~~~~~
|
|
|
|
|
2018-07-12 14:00:00 -05:00
|
|
|
.. autofunction:: ray.shutdown
|
2017-03-17 16:48:25 -07:00
|
|
|
|
2020-07-13 17:59:22 -07:00
|
|
|
|
|
|
|
.. _ray-register_custom_serializer-ref:
|
|
|
|
|
|
|
|
ray.register_custom_serializer
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
2018-07-12 14:00:00 -05:00
|
|
|
.. autofunction:: ray.register_custom_serializer
|
2017-03-17 16:48:25 -07:00
|
|
|
|
2020-07-13 17:59:22 -07:00
|
|
|
.. _ray-profile-ref:
|
|
|
|
|
|
|
|
ray.profile
|
|
|
|
~~~~~~~~~~~
|
|
|
|
|
2018-07-12 14:00:00 -05:00
|
|
|
.. autofunction:: ray.profile
|
2017-03-17 16:48:25 -07:00
|
|
|
|
2020-07-13 17:59:22 -07:00
|
|
|
.. _ray-method-ref:
|
|
|
|
|
|
|
|
ray.method
|
|
|
|
~~~~~~~~~~
|
|
|
|
|
2018-07-12 14:00:00 -05:00
|
|
|
.. autofunction:: ray.method
|
2017-03-17 16:48:25 -07:00
|
|
|
|
2020-07-13 17:59:22 -07:00
|
|
|
ray.util.ActorPool
|
|
|
|
~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
.. autoclass:: ray.util.ActorPool
|
|
|
|
:members:
|
|
|
|
|
|
|
|
.. _ray-nodes-ref:
|
|
|
|
|
|
|
|
ray.nodes
|
|
|
|
~~~~~~~~~
|
2019-05-26 11:27:53 -07:00
|
|
|
|
2019-08-05 23:33:14 -07:00
|
|
|
.. autofunction:: ray.nodes
|
2019-05-26 11:27:53 -07:00
|
|
|
|
2020-07-13 17:59:22 -07:00
|
|
|
.. _ray-objects-ref:
|
|
|
|
|
|
|
|
ray.objects
|
|
|
|
~~~~~~~~~~~
|
|
|
|
|
2019-08-05 23:33:14 -07:00
|
|
|
.. autofunction:: ray.objects
|
2019-05-26 11:27:53 -07:00
|
|
|
|
2020-07-13 17:59:22 -07:00
|
|
|
.. _ray-timeline-ref:
|
|
|
|
|
|
|
|
ray.timeline
|
|
|
|
~~~~~~~~~~~~
|
|
|
|
|
2019-08-05 23:33:14 -07:00
|
|
|
.. autofunction:: ray.timeline
|
2019-05-26 11:27:53 -07:00
|
|
|
|
2020-07-13 17:59:22 -07:00
|
|
|
.. _ray-object_transfer_timeline-ref:
|
|
|
|
|
|
|
|
ray.object_transfer_timeline
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
2019-08-05 23:33:14 -07:00
|
|
|
.. autofunction:: ray.object_transfer_timeline
|
2019-05-26 11:27:53 -07:00
|
|
|
|
2020-07-13 17:59:22 -07:00
|
|
|
.. _ray-cluster_resources-ref:
|
|
|
|
|
|
|
|
ray.cluster_resources
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
2019-08-05 23:33:14 -07:00
|
|
|
.. autofunction:: ray.cluster_resources
|
2019-05-26 11:27:53 -07:00
|
|
|
|
2020-07-13 17:59:22 -07:00
|
|
|
.. _ray-available_resources-ref:
|
|
|
|
|
|
|
|
ray.available_resources
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
2019-08-05 23:33:14 -07:00
|
|
|
.. autofunction:: ray.available_resources
|
2019-05-26 11:27:53 -07:00
|
|
|
|
2020-07-13 17:59:22 -07:00
|
|
|
.. _ray-errors-ref:
|
|
|
|
|
|
|
|
ray.errors
|
|
|
|
~~~~~~~~~~
|
|
|
|
|
2019-08-05 23:33:14 -07:00
|
|
|
.. autofunction:: ray.errors
|
2019-05-26 11:27:53 -07:00
|
|
|
|
2019-10-27 17:58:04 -07:00
|
|
|
Experimental APIs
|
|
|
|
-----------------
|
|
|
|
|
|
|
|
.. automodule:: ray.experimental
|
2019-12-26 14:35:10 -08:00
|
|
|
:members:
|
2019-05-26 11:27:53 -07:00
|
|
|
|
2018-07-12 14:00:00 -05:00
|
|
|
The Ray Command Line API
|
|
|
|
------------------------
|
2017-03-17 16:48:25 -07:00
|
|
|
|
2020-06-26 09:29:22 -07:00
|
|
|
.. _ray-start-doc:
|
|
|
|
|
2018-07-12 14:00:00 -05:00
|
|
|
.. click:: ray.scripts.scripts:start
|
|
|
|
:prog: ray start
|
|
|
|
:show-nested:
|
2017-03-17 16:48:25 -07:00
|
|
|
|
2020-06-26 09:29:22 -07:00
|
|
|
.. _ray-stop-doc:
|
|
|
|
|
2018-07-12 14:00:00 -05:00
|
|
|
.. click:: ray.scripts.scripts:stop
|
|
|
|
:prog: ray stop
|
|
|
|
:show-nested:
|
2017-03-17 16:48:25 -07:00
|
|
|
|
2020-06-26 09:29:22 -07:00
|
|
|
.. _ray-up-doc:
|
|
|
|
|
2020-06-27 12:56:56 -07:00
|
|
|
.. click:: ray.scripts.scripts:up
|
2018-08-15 14:31:50 -07:00
|
|
|
:prog: ray up
|
2018-07-12 14:00:00 -05:00
|
|
|
:show-nested:
|
2017-03-17 16:48:25 -07:00
|
|
|
|
2020-06-26 09:29:22 -07:00
|
|
|
.. _ray-down-doc:
|
|
|
|
|
2020-06-27 12:56:56 -07:00
|
|
|
.. click:: ray.scripts.scripts:down
|
2018-08-15 14:31:50 -07:00
|
|
|
:prog: ray down
|
|
|
|
:show-nested:
|
|
|
|
|
2020-06-26 09:29:22 -07:00
|
|
|
.. _ray-exec-doc:
|
|
|
|
|
2020-06-27 12:56:56 -07:00
|
|
|
.. click:: ray.scripts.scripts:exec
|
2018-08-15 14:31:50 -07:00
|
|
|
:prog: ray exec
|
|
|
|
:show-nested:
|
|
|
|
|
2020-06-26 09:29:22 -07:00
|
|
|
.. _ray-submit-doc:
|
|
|
|
|
2019-12-26 14:35:10 -08:00
|
|
|
.. click:: ray.scripts.scripts:submit
|
|
|
|
:prog: ray submit
|
|
|
|
:show-nested:
|
|
|
|
|
2020-06-26 09:29:22 -07:00
|
|
|
.. _ray-attach-doc:
|
|
|
|
|
2018-08-15 14:31:50 -07:00
|
|
|
.. click:: ray.scripts.scripts:attach
|
|
|
|
:prog: ray attach
|
2018-07-12 14:00:00 -05:00
|
|
|
:show-nested:
|
2017-03-17 16:48:25 -07:00
|
|
|
|
2020-06-26 09:29:22 -07:00
|
|
|
.. _ray-get_head_ip-doc:
|
|
|
|
|
2018-07-12 14:00:00 -05:00
|
|
|
.. click:: ray.scripts.scripts:get_head_ip
|
|
|
|
:prog: ray get_head_ip
|
|
|
|
:show-nested:
|
2019-03-05 16:28:00 -08:00
|
|
|
|
2020-06-26 09:29:22 -07:00
|
|
|
.. _ray-stack-doc:
|
|
|
|
|
2019-03-05 16:28:00 -08:00
|
|
|
.. click:: ray.scripts.scripts:stack
|
|
|
|
:prog: ray stack
|
|
|
|
:show-nested:
|
|
|
|
|
2020-06-26 09:29:22 -07:00
|
|
|
.. _ray-stat-doc:
|
|
|
|
|
2020-06-27 12:56:56 -07:00
|
|
|
.. click:: ray.scripts.scripts:statistics
|
|
|
|
:prog: ray statistics
|
2019-12-28 14:40:32 -08:00
|
|
|
:show-nested:
|
|
|
|
|
2020-06-26 09:29:22 -07:00
|
|
|
.. _ray-memory-doc:
|
|
|
|
|
2020-03-17 20:45:07 -07:00
|
|
|
.. click:: ray.scripts.scripts:memory
|
|
|
|
:prog: ray memory
|
|
|
|
:show-nested:
|
|
|
|
|
2020-06-26 09:29:22 -07:00
|
|
|
.. _ray-globalgc-doc:
|
|
|
|
|
2020-03-17 20:45:07 -07:00
|
|
|
.. click:: ray.scripts.scripts:globalgc
|
|
|
|
:prog: ray globalgc
|
|
|
|
:show-nested:
|
|
|
|
|
2020-06-26 09:29:22 -07:00
|
|
|
.. _ray-timeline-doc:
|
|
|
|
|
2019-03-05 16:28:00 -08:00
|
|
|
.. click:: ray.scripts.scripts:timeline
|
|
|
|
:prog: ray timeline
|
|
|
|
:show-nested:
|