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

ppo.py does not work out of box #192

Open
dmitryshribak opened this issue Sep 17, 2024 · 1 comment
Open

ppo.py does not work out of box #192

dmitryshribak opened this issue Sep 17, 2024 · 1 comment

Comments

@dmitryshribak
Copy link

/IdeaProjects/hydrogym/examples/ppo/ppo.py:457: UserWarning: Creating a tensor from a list of numpy.ndarrays is extremely slow. Please consider converting the list to a single numpy.ndarray with numpy.array() before converting to a tensor. (Triggered internally at ../torch/csrc/utils/tensor_new.cpp:275.)
a, v, logp = ac.step(torch.as_tensor(o, dtype=torch.float32))
Traceback (most recent call last):
File "/IdeaProjects/hydrogym/examples/ppo/ppo.py", line 520, in
ppo(
File "/IdeaProjects/hydrogym/examples/ppo/ppo.py", line 457, in ppo
a, v, logp = ac.step(torch.as_tensor(o, dtype=torch.float32))
ValueError: expected sequence of length 17 at dim 1 (got 0)

@dmitryshribak
Copy link
Author

firedrake/envs/cylinder/coarse.msh due to "No such file or directory"

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

1 participant