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

[Version] Updating to torch 1.13 #627

Merged
merged 8 commits into from
Oct 31, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
amend
  • Loading branch information
vmoens committed Oct 30, 2022
commit 51b2a53bc3f907bc9e0c7c5b1182ac1e1a05a24a
5 changes: 2 additions & 3 deletions test/test_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
except ImportError:
_has_tb = False

from torchrl._utils import _CKPT_BACKEND
from torchrl.data import (
TensorDict,
TensorDictPrioritizedReplayBuffer,
Expand Down Expand Up @@ -116,8 +115,8 @@ def test_selectkeys(self):
assert key2 not in td_out.keys()

def test_selectkeys_statedict(self):
if not _has_ts and _CKPT_BACKEND == "torchsnapshot":
pytest.skip("torchsnapshot not found")
if not _has_ts:
os.environ["CKPT_BACKEND"] = "torch"
trainer = mocking_trainer()
key1 = "first key"
key2 = "second key"
Expand Down