Skip to content

Commit

Permalink
amend
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens committed Mar 23, 2024
1 parent 24d2a25 commit 69ac3d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torchrl/collectors/collectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ def __init__(
elif torch.backends.mps.is_available():
self._sync_env = torch.mps.synchronize
elif self.env_device.type == "cpu":
self._sync_storage = _do_nothing
self._sync_env = _do_nothing
else:
raise RuntimeError("Non supported device")
else:
Expand All @@ -507,7 +507,7 @@ def __init__(
elif torch.backends.mps.is_available():
self._sync_policy = torch.mps.synchronize
elif self.policy_device.type == "cpu":
self._sync_storage = _do_nothing
self._sync_policy = _do_nothing
else:
raise RuntimeError("Non supported device")
else:
Expand Down

0 comments on commit 69ac3d2

Please sign in to comment.