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

[Feature] Better detection of non-tensor data #685

Merged
merged 19 commits into from
Feb 26, 2024
1 change: 1 addition & 0 deletions .github/workflows/test-rl-gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
repository: pytorch/tensordict
gpu-arch-type: cuda
gpu-arch-version: ${{ matrix.cuda_arch_version }}
timeout: 120
script: |
# Set env vars from matrix
export PYTHON_VERSION=${{ matrix.python_version }}
Expand Down
1 change: 1 addition & 0 deletions docs/source/reference/tensorclass.rst
Original file line number Diff line number Diff line change
Expand Up @@ -273,3 +273,4 @@ Here is an example:

tensorclass
NonTensorData
NonTensorStack
3 changes: 2 additions & 1 deletion tensordict/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from tensordict.memmap import MemoryMappedTensor
from tensordict.memmap_deprec import is_memmap, MemmapTensor, set_transfer_ownership
from tensordict.persistent import PersistentTensorDict
from tensordict.tensorclass import NonTensorData, tensorclass
from tensordict.tensorclass import NonTensorData, NonTensorStack, tensorclass
from tensordict.utils import (
assert_allclose_td,
is_batchedtensor,
Expand All @@ -43,6 +43,7 @@
"TensorDict",
"TensorDictBase",
"merge_tensordicts",
"NonTensorStack",
"set_transfer_ownership",
"pad_sequence",
"is_memmap",
Expand Down
Loading
Loading