Skip to content

use jax pure_callback in cvxpy and scipy wrappers, to support JAX_CUSTOM_VJP3=1 - #650

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_976567612
Sep 7, 2026
Merged

use jax pure_callback in cvxpy and scipy wrappers, to support JAX_CUSTOM_VJP3=1#650
copybara-service[bot] merged 1 commit into
mainfrom
test_976567612

Conversation

@copybara-service

Copy link
Copy Markdown

use jax pure_callback in cvxpy and scipy wrappers, to support JAX_CUSTOM_VJP3=1

An upcoming jax change (JAX_CUSTOM_VJP3=1) requires the use of pure_callback
when wrapping host Python solvers like CVXPY and SciPy in custom_vjp calls. The
bonus is that this also makes the code jittable! And there should be ~0
overhead on the eager path.

PiperOrigin-RevId: 977581881
@copybara-service
copybara-service Bot merged commit 176b138 into main Sep 7, 2026
3 checks passed
@copybara-service
copybara-service Bot deleted the test_976567612 branch September 7, 2026 21:43
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.

1 participant