You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fromtorchrl.dataimportLazyTensorStorage, RandomSampler, TensorDictReplayBufferfromtorchrl.envsimportMeltingpotEnvif__name__=="__main__":
env=MeltingpotEnv(substrate="commons_harvest__open")
td=env.rollout(max_steps=100, break_when_any_done=False)
buffer=TensorDictReplayBuffer(
storage=LazyTensorStorage(1_000_000, device="cpu"),
sampler=RandomSampler(),
batch_size=10,
)
buffer.extend(td) # Hangs and then -> Process finished with exit code 137 (interrupted by signal 9:SIGKILL)
This is where it hangs (specifically on expand().clone()
The buffer hangs on the extend operation and then crashes with
Process finished with exit code 137 (interrupted by signal 9:SIGKILL)
To reproduce, check out #2054
This is where it hangs (specifically on
expand().clone()
rl/torchrl/data/replay_buffers/storages.py
Lines 929 to 942 in cf685b7
PS these are 2 indentical if branches?
The text was updated successfully, but these errors were encountered: