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

self.saved_searching_ternimal_state = self.root_state_tensor.clone()[self.lego_indices.view(-1), :].view(self.num_envs, 108, 13) RuntimeError: shape '[1, 108, 13]' is invalid for input of size 1716 #9

Open
xiaobai0906 opened this issue Apr 2, 2024 · 1 comment

Comments

@xiaobai0906
Copy link

Hi,
When I try to train each sub-task by 'python train_rlgames.py --task=BlockAssemblyOrient --num_envs=1024'.
An error has occurred:
"self.saved_searching_ternimal_state = self.root_state_tensor.clone()[self.lego_indices.view(-1), :].view(self.num_envs, 108, 13)
RuntimeError: shape '[1, 108, 13]' is invalid for input of size 1716."
How can I solve it?
Thanks!

@cypypccpy
Copy link
Collaborator

Hi @xiaobai0906 ,
This error is due to the environment dimension of the search terminal state you saved is different from the orient task. It seems that you are using one environment's searching_ternimal_state, and you are running 1024 environments' orient, so you also need to use the corresponding 1024-dimensional searching_ternimal_state.
Hope this can help you.

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