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

Transformer block that supports jagged tensor as input #1502

Open
yuhuishi-convect opened this issue Nov 13, 2023 · 1 comment
Open

Transformer block that supports jagged tensor as input #1502

yuhuishi-convect opened this issue Nov 13, 2023 · 1 comment

Comments

@yuhuishi-convect
Copy link

The standard transformer block supports input tensors that will have same sequence length.
This requires padding the example sequences to the same length in a batch if the lengths are not equal.

The introduction of JaggedTensor does support the variable length examples. Can we support a transformer block that can efficiently work with JaggedTensor or KeyedJaggedTensor as input, instead of converting them to the dense and padded form?

@henrylhtsang
Copy link
Contributor

Hi, this seems like a question for core library https://github.com/pytorch/pytorch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants