[BUG] tensordict.pad_sequence
silently ignores non-tensor attributes in tensorclass
es or TensorDict
s
#783
Labels
bug
Something isn't working
Describe the bug
I have some
tensorclass
es that store an audio file, with some metadata including speaker id and utterance id. I would like to collate thesetensorclass
es to form a batch, however when I do so, the metadata is lost (the metadata from the first tensordict is kept for every item in the batch) and the user is not warned about this either.To Reproduce
Steps to reproduce the behavior.
Expected behavior
I should either get a properly joined tensordict, e.g.,
or
tensordict.pad_sequence
should warn the user that the metadata is being discarded.Screenshots
System info
Additional context
Add any other context about the problem here.
Reason and Possible fixes
If you know or suspect the reason for this bug, paste the code lines and suggest modifications.
Checklist
The text was updated successfully, but these errors were encountered: