[RLlib] DDPG and SAC eager support (preparation for tf2.x) (#9204)

This commit is contained in:
Sven Mika
2020-07-08 16:12:20 +02:00
committed by GitHub
parent 42f8f16c04
commit 4da0e542d5
30 changed files with 383 additions and 370 deletions
+20 -20
View File
@@ -205,16 +205,16 @@ def update_backend_config(backend_tag, config_options):
backend_tag(str): A registered backend.
config_options(dict): Backend config options to update.
Supported options:
- "num_replicas": number of worker processes to start up that \
will handle requests to this backend.
- "max_batch_size": the maximum number of requests that will \
be processed in one batch by this backend.
- "batch_wait_timeout": time in seconds that backend replicas \
will wait for a full batch of requests before \
processing a partial batch.
- "max_concurrent_queries": the maximum number of queries \
that will be sent to a replica of this backend \
without receiving a response.
- "num_replicas": number of worker processes to start up that
will handle requests to this backend.
- "max_batch_size": the maximum number of requests that will
be processed in one batch by this backend.
- "batch_wait_timeout": time in seconds that backend replicas
will wait for a full batch of requests before
processing a partial batch.
- "max_concurrent_queries": the maximum number of queries
that will be sent to a replica of this backend
without receiving a response.
"""
if not isinstance(config_options, dict):
raise ValueError("config_options must be a dictionary.")
@@ -252,16 +252,16 @@ def create_backend(backend_tag,
@ray.remote decorator for the backend actor.
config (optional): configuration options for this backend.
Supported options:
- "num_replicas": number of worker processes to start up that \
will handle requests to this backend.
- "max_batch_size": the maximum number of requests that will \
be processed in one batch by this backend.
- "batch_wait_timeout": time in seconds that backend replicas \
will wait for a full batch of requests before \
processing a partial batch.
- "max_concurrent_queries": the maximum number of queries \
that will be sent to a replica of this backend \
without receiving a response.
- "num_replicas": number of worker processes to start up that will
handle requests to this backend.
- "max_batch_size": the maximum number of requests that will
be processed in one batch by this backend.
- "batch_wait_timeout": time in seconds that backend replicas
will wait for a full batch of requests before processing a
partial batch.
- "max_concurrent_queries": the maximum number of queries that will
be sent to a replica of this backend without receiving a
response.
"""
if config is None:
config = {}