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

action_space.sample() OOMs #216

Closed
manuel-delverme opened this issue Oct 26, 2024 · 1 comment
Closed

action_space.sample() OOMs #216

manuel-delverme opened this issue Oct 26, 2024 · 1 comment

Comments

@manuel-delverme
Copy link
Contributor

    import gymnasium as gym
    import browsergym.core  # register the openended task as a gym environment

    env = gym.make('browsergym/openended')
    env.action_space.sample()

@gasse gasse mentioned this issue Oct 28, 2024
2 tasks
@gasse
Copy link
Collaborator

gasse commented Oct 28, 2024

Thanks Manuel for reporting this!

We can just deactivate sample(), it is kind of pointless to sample uniformly from a text space anyway.
Here is the PR, can you give it a look? #218

@gasse gasse closed this as completed Oct 30, 2024
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