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

PETSc solver not working with JAX transforms #3

Open
SNMS95 opened this issue Oct 3, 2023 · 0 comments
Open

PETSc solver not working with JAX transforms #3

SNMS95 opened this issue Oct 3, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@SNMS95
Copy link
Collaborator

SNMS95 commented Oct 3, 2023

  • Currently, the solver [when using petsc] cannot be combined with any of Jax's transforms
  • This prevents vmapping and higher order derivatives
  • Solution:
    • Wrap petsc with Lineax or
    • Wrap it a pure-callback + custom-jvp
@SNMS95 SNMS95 added the enhancement New feature or request label Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant