Skip to content

Commit

Permalink
[RLlib] Removed config["sample_async"] restriction for A3C-torch. (ra…
Browse files Browse the repository at this point in the history
  • Loading branch information
sven1977 authored May 27, 2020
1 parent 6d19619 commit c7a2e3f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions rllib/agents/a3c/a3c.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,6 @@ def get_policy_class(config):
def validate_config(config):
if config["entropy_coeff"] < 0:
raise DeprecationWarning("entropy_coeff must be >= 0")
if config["sample_async"] and config["use_pytorch"]:
config["sample_async"] = False
logger.warning(
"The sample_async option is not supported with use_pytorch: "
"Multithreading can be lead to crashes if used with pytorch.")


def execution_plan(workers, config):
Expand Down

0 comments on commit c7a2e3f

Please sign in to comment.