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

Fix brax problem not evaluating in jit.trace and vmap #215

Merged
merged 8 commits into from
Feb 19, 2025

Conversation

sses7757
Copy link
Collaborator

Description

Fix an issues that leads to brax problem (src\evox\problems\neuroevolution\brax.py) not evaluating brax environment inside jit.trace and vmap.

Checklist

  • I have formatted my Python code with ruff.
  • I have good commit messages.
  • If adding new algorithms, problems, operators:
    • Added related test cases.
    • Added docstring to explain important parameters.
    • Added entries in the docs.

@BillHuang2001 BillHuang2001 merged commit ca370d5 into main Feb 19, 2025
5 checks passed
LiHao-MS pushed a commit to LiHao-MS/evox that referenced this pull request Feb 21, 2025
* Made 2 improves

1. Improve vmap_fix to allow custom register vmap fixing functions
2. Fix ParamsAndVector to enable vmap of its methods

* Move debug_print to jit_util

* Ruff

* Fix incorrect model_buffers in get_vmap_model_state_forward

* Fix brax problem not evaluating in jit.trace and vmap

* Ruff

* Add missing type annotation in brax problem
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

Successfully merging this pull request may close these issues.

2 participants