Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor multi-env / multiprocessing seeding logic to make it uncorrelated across runs #182

Merged
Prev Previous commit
Next Next commit
remove unused lines
  • Loading branch information
Hojin committed Jun 6, 2022
commit 097fe8772b6eb9d026c20f776efb777ecae242ec
9 changes: 0 additions & 9 deletions torchrl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,6 @@ def _check_for_faulty_process(processes):
)


# def seed_generator(seed, repeat):
# max_seed_val = (
# 2 ** 32 - 1
# ) # https://discuss.pytorch.org/t/what-is-the-max-seed-you-can-set-up/145688
# rng = np.random.default_rng(seed)
# for i in range(repeat):
# yield int.from_bytes(rng.bytes(8), "big") % max_seed_val


def seed_generator(seed):
max_seed_val = (
2 ** 32 - 1
Expand Down