1f00f834ac44d06dbe7264ca712b8d587b0a60f6,rllib/agents/a3c/a3c.py,,validate_config,#Any#,54
Before Change
def validate_config(config):
if config["entropy_coeff"] < 0:
raise DeprecationWarning("`entropy_coeff` must be >= 0")
if config["sample_async"] and config["framework"] == "torch":
config["sample_async"] = False
logger.warning("`sample_async=True` is not supported for PyTorch! "
"Multithreading can lead to crashes.")
def execution_plan(workers, config):
// For A3C, compute policy gradients remotely on the rollout workers.
grads = AsyncGradients(workers)
After Change
def validate_config(config):
if config["entropy_coeff"] < 0:
raise ValueError("`entropy_coeff` must be >= 0.0!")
if config["num_workers"] <= 0 and config["sample_async"]:
raise ValueError("`num_workers` for A3C must be >= 1!")
def execution_plan(workers, config):
// For A3C, compute policy gradients remotely on the rollout workers.
grads = AsyncGradients(workers)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: ray-project/ray
Commit Name: 1f00f834ac44d06dbe7264ca712b8d587b0a60f6
Time: 2021-01-18
Author: sven@anyscale.io
File Name: rllib/agents/a3c/a3c.py
Class Name:
Method Name: validate_config
Project Name: ray-project/ray
Commit Name: bd245a1c18f3b48b389b7a3abbda7176a63e2326
Time: 2020-08-27
Author: ekhliang@gmail.com
File Name: python/ray/actor.py
Class Name: ActorClass
Method Name: _remote
Project Name: hyperspy/hyperspy
Commit Name: afcab1f41ad35cc02b3b5be376887868e00118a7
Time: 2018-08-28
Author: eric.prestat@gmail.com
File Name: hyperspy/drawing/image.py
Class Name: ImagePlot
Method Name: update