mirror of
https://github.com/wassname/ray.git
synced 2026-07-23 13:10:11 +08:00
Enable seeding actors for reproducible experiments (#5197)
* enable graph-level worker-specific seed * lint checked * revised according to eric's suggestions * revised accordingly and added a test case * formated * Update test_reproducibility.py * Update trainer.py * Update rollout_worker.py * Update run_rllib_tests.sh * Update worker_set.py
This commit is contained in:
@@ -211,4 +211,6 @@ class WorkerSet(object):
|
||||
remote_worker_envs=config["remote_worker_envs"],
|
||||
remote_env_batch_wait_ms=config["remote_env_batch_wait_ms"],
|
||||
soft_horizon=config["soft_horizon"],
|
||||
seed=(config["seed"] + worker_index)
|
||||
if config["seed"] is not None else None,
|
||||
_fake_sampler=config.get("_fake_sampler", False))
|
||||
|
||||
Reference in New Issue
Block a user