Skip to content

Commit

Permalink
amend
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens committed Jul 8, 2024
1 parent 7e8c1bd commit ca747d4
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions tensordict/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
set_lazy_legacy,
)
from tensordict._pytree import *
from tensordict._C import unravel_key, unravel_key_list # ignore
from tensordict._C import unravel_key, unravel_key_list # @manual=//tensordict:_C
from tensordict.nn import TensorDictParams

try:
from tensordict.version import __version__
from tensordict.version import __version__ # @manual=//tensordict:version
except ImportError:
__version__ = None

Expand Down
2 changes: 1 addition & 1 deletion tensordict/_lazy.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
from tensordict.utils import _ftdim_mock as ftdim

_has_funcdim = False
from tensordict._C import _unravel_key_to_tuple, unravel_key_list # ignore
from tensordict._C import _unravel_key_to_tuple, unravel_key_list # @manual=//tensordict:_C
from tensordict._td import _SubTensorDict, _TensorDictKeysView, TensorDict
from tensordict.base import (
_is_leaf_nontensor,
Expand Down
2 changes: 1 addition & 1 deletion tensordict/nn/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

import torch
from cloudpickle import dumps as cloudpickle_dumps, loads as cloudpickle_loads
from tensordict._C import _unravel_key_to_tuple, unravel_key_list # ignore
from tensordict._C import _unravel_key_to_tuple, unravel_key_list # @manual=//tensordict:_C

from tensordict._td import is_tensor_collection, TensorDictBase
from tensordict.functional import make_tensordict
Expand Down
2 changes: 1 addition & 1 deletion tensordict/nn/sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
FUNCTORCH_ERROR = "functorch not installed. Consider installing functorch to use this functionality."


from tensordict._C import unravel_key_list # ignore
from tensordict._C import unravel_key_list # @manual=//tensordict:_C
from tensordict.nn.common import dispatch, TensorDictModule
from tensordict.tensordict import LazyStackedTensorDict, TensorDictBase
from tensordict.utils import NestedKey
Expand Down
2 changes: 1 addition & 1 deletion tensordict/tensorclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import tensordict as tensordict_lib

import torch
from tensordict._C import _unravel_key_to_tuple # ignore
from tensordict._C import _unravel_key_to_tuple # @manual=//tensordict:_C
from tensordict._lazy import LazyStackedTensorDict
from tensordict._pytree import _register_td_node
from tensordict._td import is_tensor_collection, NO_DEFAULT, TensorDict, TensorDictBase
Expand Down
2 changes: 1 addition & 1 deletion tensordict/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
except ImportError:
_has_funcdim = False
from packaging.version import parse
from tensordict._C import ( # noqa: F401 # ignore
from tensordict._C import ( # noqa: F401 # @manual=//tensordict:_C
_unravel_key_to_tuple,
unravel_key,
unravel_key_list,
Expand Down

0 comments on commit ca747d4

Please sign in to comment.