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] Latest version of TorchRL and TensorDict aren't compatible #52

Open
MorganCThomas opened this issue Oct 25, 2024 · 1 comment
Open
Assignees
Labels
bug Something isn't working

Comments

@MorganCThomas
Copy link
Collaborator

Error

RuntimeError: tensor shape is incompatible with dest shape, got: tensor.shape=torch.Size([128]), dest=torch.Size([3, 512])

Reproduce

acegen-open/tests/check_scripts/run_reinforce_denovo.sh

Environment

torchrl==0.6.0 (5244a90)
tensordict==0.6.0 (8c65dcb)

Discussion

Seems this is a problem with the TransformedEnv adding LSTM/GRU primers, previously the batch size was automatically added as the leading dimension which doesn't seem to happen with this update.

@MorganCThomas MorganCThomas added the bug Something isn't working label Oct 25, 2024
@albertbou92
Copy link
Collaborator

I am able to reproduce the error

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

2 participants