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

[NOMERG, WIP, POC] Auto-nested TensorDict #201

Draft
wants to merge 27 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
f61f94e
PoC
tcbegley Feb 2, 2023
17062a6
Incorporate _items_safe into _TensorDictKeysView
tcbegley Feb 3, 2023
ea6b268
Off-by-one error
tcbegley Feb 6, 2023
6d7732b
Fix __ne__
tcbegley Feb 6, 2023
de5cc92
Loop check and iter check for TensorDictKeysView (#200)
ruleva1983 Feb 6, 2023
f09d292
Formatting and linting fixes
tcbegley Feb 6, 2023
1003a06
Fix TensorDict indexing in presence of auto-nesting
tcbegley Feb 7, 2023
02ba936
Test masked fill and test locks adapted to autonesting (#202)
ruleva1983 Feb 7, 2023
8d9df79
Fix lint issue
tcbegley Feb 7, 2023
52dc3b6
Merge branch 'main' into auto-nested-tensordicts
tcbegley Feb 8, 2023
af4c9fd
[BugFix][Auto-nested] Fix `to_dict` method (#207)
tcbegley Feb 8, 2023
40da2c0
Disabled tests for autonested case for flatten keys, select and memma…
ruleva1983 Feb 8, 2023
0c1b3f5
[Test, Bugfix] skip test_outputsize_vmap if no functorch (#204)
apbard Feb 8, 2023
f1c8860
[CI] Temporarily disable torchrec tests (#208)
apbard Feb 8, 2023
3b6b1ff
[Test] MemmapTensor should be cast to tensor and viceversa (#206)
apbard Feb 8, 2023
6fe9382
[BugFix] Fix `_getitem_batch_size` in various edge cases. (#211)
tcbegley Feb 9, 2023
7a05d2c
Fix test_batchsize_reset
tcbegley Feb 9, 2023
34a0275
Support instantiation of _TensorDictKeysView from SubTensorDict
tcbegley Feb 9, 2023
10f2a82
Fix recursive setitem with index
tcbegley Feb 9, 2023
b879907
Solving tests (#214)
ruleva1983 Feb 13, 2023
3d06e42
Format
tcbegley Feb 13, 2023
3503412
Make stack and cat robust to auto-nesting (#217)
tcbegley Feb 13, 2023
018d1c2
Merge branch 'main' of github.com:pytorch-labs/tensordict into auto-n…
tcbegley Feb 13, 2023
a87bd04
Test suit adapted to changes in code base for autonested Tensordicts …
ruleva1983 Feb 14, 2023
d3529cf
Test fixes
tcbegley Feb 14, 2023
1b26892
Fix all / any with dim
tcbegley Feb 14, 2023
f0eede7
Add recursion guard and tidy tests (#220)
tcbegley Feb 15, 2023
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: 2 additions & 0 deletions tensordict/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

from .memmap import MemmapTensor, set_transfer_ownership
from .tensordict import (
detect_loop,
LazyStackedTensorDict,
merge_tensordicts,
SubTensorDict,
Expand All @@ -21,6 +22,7 @@
"MemmapTensor",
"SubTensorDict",
"TensorDict",
"detect_loop",
"merge_tensordicts",
"set_transfer_ownership",
]
Loading