[RLlib] Removed config["sample_async"] restriction for A3C-torch. (#8617)

This commit is contained in:
Sven Mika
2020-05-27 10:22:49 +02:00
committed by GitHub
parent 6d196197bc
commit c7a2e3f309
-5
View File
@@ -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):