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

Revert "[BugFix] Fix tensordict private imports" #2276

Merged
merged 1 commit into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion test/test_cost.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from dataclasses import asdict, dataclass

from packaging import version as pack_version
from tensordict._C import unravel_keys
from tensordict._tensordict import unravel_keys

from tensordict.nn import (
InteractionType,
Expand Down
2 changes: 1 addition & 1 deletion torchrl/envs/batched_envs.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
TensorDict,
TensorDictBase,
)
from tensordict._C import unravel_key
from tensordict._tensordict import unravel_key
from torch import multiprocessing as mp
from torchrl._utils import (
_check_for_faulty_process,
Expand Down
2 changes: 1 addition & 1 deletion torchrl/envs/transforms/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
unravel_key,
unravel_key_list,
)
from tensordict._C import _unravel_key_to_tuple
from tensordict._tensordict import _unravel_key_to_tuple
from tensordict.nn import dispatch, TensorDictModuleBase
from tensordict.utils import expand_as_right, expand_right, NestedKey
from torch import nn, Tensor
Expand Down
Loading