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

RuntimeError: to_padded_tensor #1431

Open
weishi-deng opened this issue Mar 5, 2025 · 0 comments
Open

RuntimeError: to_padded_tensor #1431

weishi-deng opened this issue Mar 5, 2025 · 0 comments
Labels
bug Something isn't working module: OP Impl

Comments

@weishi-deng
Copy link
Contributor

🐛 Describe the bug

import torch
nt = torch.nested.nested_tensor([], device="xpu")
empty = torch.nested.to_padded_tensor(nt, 4)

RuntimeError: to_padded_tensor: at least one constituent tensor should have non-zero numel

Versions

pytorch 2.7

@Stonepia Stonepia added bug Something isn't working module: OP Impl labels Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working module: OP Impl
Projects
None yet
Development

No branches or pull requests

2 participants