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] SAC Loss reshapes tensordict causing loss of time dimension #2338

Closed
matteobettini opened this issue Jul 30, 2024 · 0 comments · Fixed by #2494
Closed

[BUG] SAC Loss reshapes tensordict causing loss of time dimension #2338

matteobettini opened this issue Jul 30, 2024 · 0 comments · Fixed by #2494
Assignees
Labels
bug Something isn't working

Comments

@matteobettini
Copy link
Contributor

matteobettini commented Jul 30, 2024

I am trying to use the SAC loss with a memory model.

The memory model expects data leading with batch dimension [B,T]

I pass data with this shape to the loss,
but here it gets reshaped

tensordict_reshape = tensordict.reshape(-1)

causing the loss of the dimension T, which I cannot retrieve in my model.

Would it be possible to remove the reshaping of the data from the loss?

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

Successfully merging a pull request may close this issue.

3 participants