Skip to content

Some vmap related improvements - #214

Merged
BillHuang2001 merged 4 commits into
mainfrom
evoxtorch-dev-ks
Feb 17, 2025
Merged

BillHuang2001 merged 4 commits into
mainfrom
evoxtorch-dev-ks

Conversation

@sses7757

Copy link
Copy Markdown
Collaborator

Description

I have made 2 improves:

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

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.

1. Improve vmap_fix to allow custom register vmap fixing functions
2. Fix ParamsAndVector to enable vmap of its methods
@BillHuang2001
BillHuang2001 merged commit 5c79240 into main Feb 17, 2025
LiHao-MS pushed a commit to LiHao-MS/evox that referenced this pull request Feb 18, 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
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