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

[BUG] Splitting lazy stacks should return lazy stacks #503

Open
vmoens opened this issue Jul 28, 2023 · 0 comments
Open

[BUG] Splitting lazy stacks should return lazy stacks #503

vmoens opened this issue Jul 28, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@vmoens
Copy link
Contributor

vmoens commented Jul 28, 2023

td = TensorDict({"a": torch.arange(10), "b": {"c": torch.arange(10)}}, [10])
td = td.expand(5, 10).clone()
td0 = torch.stack(td.unbind(0), 0)
td0_a, td0_b = td0.split(5, 1) # <- those should be lazy stacks
@vmoens vmoens added the bug Something isn't working label Jul 28, 2023
@vmoens vmoens self-assigned this Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant