You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if I am missing something but I am trying to load a batch of lazy_stackedTensorDicts that have variable size tensors.
The DataLoader throws an error however that it cannot stack the tensors.
Not sure if this is supposed to work but I would have expected it to return a batch of LazyStackedTensorDicts.
Reason and Possible fixes
I think it's because __getitems__ actually points to <bound method TensorDictBase.__getitem__ of LazyStackedTensorDict.
If I add __getitems__ = __getitem__ after the __getitem__ in LazyStackedTensorDict (the same as in the Base) it returns a LazyStackedTensorDict without an error.
Checklist
I have checked that there is no similar issue in the repo (required)
Describe the bug
Not sure if I am missing something but I am trying to load a batch of
lazy_stacked
TensorDicts
that have variable size tensors.The
DataLoader
throws an error however that it cannot stack the tensors.To Reproduce
Expected behavior
Not sure if this is supposed to work but I would have expected it to return a batch of
LazyStackedTensorDict
s.Reason and Possible fixes
I think it's because
__getitems__
actually points to<bound method TensorDictBase.__getitem__ of LazyStackedTensorDict
.If I add
__getitems__ = __getitem__
after the__getitem__
inLazyStackedTensorDict
(the same as in the Base) it returns aLazyStackedTensorDict
without an error.Checklist
The text was updated successfully, but these errors were encountered: