Skip to content

Commit

Permalink
[BugFix] Temporarily set lazy legacy to True (pytorch#1840)
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens authored Jan 26, 2024
1 parent 6f90397 commit 6a42116
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions torchrl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@

import torch

from tensordict import set_lazy_legacy

from torch import multiprocessing as mp

set_lazy_legacy(True).set()

if torch.cuda.device_count() > 1:
n = torch.cuda.device_count() - 1
os.environ["MUJOCO_EGL_DEVICE_ID"] = str(1 + (os.getpid() % n))
Expand Down

0 comments on commit 6a42116

Please sign in to comment.