Move ray.experimental.multiprocessing to ray.util.multiprocessing (#7149)

This commit is contained in:
Edward Oakes
2020-02-14 16:17:05 -08:00
committed by GitHub
parent 52d9189d5d
commit dc5a27dac0
6 changed files with 724 additions and 694 deletions
+5 -5
View File
@@ -1,5 +1,5 @@
multiprocessing.Pool API (Experimental)
=======================================
multiprocessing.Pool API
========================
.. warning::
@@ -21,14 +21,14 @@ Quickstart
----------
To get started, first `install Ray <installation.html>`__, then use
``ray.experimental.multiprocessing.Pool`` in place of ``multiprocessing.Pool``.
``ray.util.multiprocessing.Pool`` in place of ``multiprocessing.Pool``.
This will start a local Ray cluster the first time you create a ``Pool`` and
distribute your tasks across it. See the `Run on a Cluster`_ section below for
instructions to run on a multi-node Ray cluster instead.
.. code-block:: python
from ray.experimental.multiprocessing import Pool
from ray.util.multiprocessing import Pool
def f(index):
return index
@@ -59,7 +59,7 @@ head node in one of two ways:
.. code-block:: python
from ray.experimental.multiprocessing import Pool
from ray.util.multiprocessing import Pool
# Starts a new local Ray cluster.
pool = Pool()