8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
chunk method not work for nested tensor in TensorDict, but it works fine in raw nested tensor
import torch from tensordict import tensorclass, TensorDict vocab_size = 128 a_seq = torch.randint(low=0, high=vocab_size, size=(10,)) b_seq = torch.randint(low=0, high=vocab_size, size=(20,)) rmpad_seq = torch.nested.as_nested_tensor([a_seq, b_seq], layout=torch.jagged) print(rmpad_seq.chunk(2)) # works fine rmpad_batch = TensorDict.from_dict({'input_ids': rmpad_seq}, batch_size=[2]) rmpad_batch.chunk(2) # doesn't work
A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem.
Pytorch 2.6 + Tensordict 0.8.3
import tensordict, numpy, sys, torch print(tensordict.__version__, numpy.__version__, sys.version, sys.platform, torch.__version__)
Add any other context about the problem here.
If you know or suspect the reason for this bug, paste the code lines and suggest modifications.
__
The text was updated successfully, but these errors were encountered:
vmoens
Successfully merging a pull request may close this issue.
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
chunk method not work for nested tensor in TensorDict, but it works fine in raw nested tensor
To Reproduce
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
System info
Pytorch 2.6 + Tensordict 0.8.3
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: