Skip to content

Add compile & vmap support for while loops and external functions - #221

Merged
BillHuang2001 merged 20 commits into
mainfrom
evoxtorch-dev-ks
Mar 10, 2025
Merged

BillHuang2001 merged 20 commits into
mainfrom
evoxtorch-dev-ks

Conversation

@sses7757

@sses7757 sses7757 commented Mar 6, 2025 •

Copy link
Copy Markdown
Collaborator

Description

Main changes:

  • Add compile vmap support for non-dominated sorting as an example of compiling vmap-compatible while loops
  • Add compile vmap support for Brax as an example of compiling vmap-compatible external functions
  • Prune unused code in core.module
  • Fix CEC2022 docstring
  • Update utils.__init__ notice
  • Update core.module.use_state to prevent graph breaks in torch.compile
  • Add a wrapper function utils.register_vmap_op to ease the use of vmap-compatible compile-opaque functions

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.

@sses7757
sses7757 requested a review from BillHuang2001 March 6, 2025 09:04
@sses7757
sses7757 marked this pull request as ready for review March 7, 2025 14:14
@BillHuang2001
BillHuang2001 merged commit 1caeeb4 into main Mar 10, 2025
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