Skip to content

Canonicalize output dtypes in CvxpyQP.run pure_callback - #652

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_999134008
Oct 16, 2026
Merged

copybara-service[bot] merged 1 commit into
mainfrom
test_999134008

Conversation

@copybara-service

Copy link
Copy Markdown

Canonicalize output dtypes in CvxpyQP.run pure_callback

When CvxpyQP.run is called with float64 NumPy array inputs while jax_enable_x64
is disabled (e.g. in BoxOSQPTest.test_small_qp under jax_custom_vjp3=True),
jax.pure_callback rejects 64-bit result_shape_dtypes. Canonicalize the output
dtypes with jax.dtypes.canonicalize_dtype, matching scipy_wrappers.py in
cl/977581881.

PiperOrigin-RevId: 1000636957
@copybara-service
copybara-service Bot merged commit 3ff65db into main Oct 16, 2026
5 of 10 checks passed
@copybara-service
copybara-service Bot deleted the test_999134008 branch October 16, 2026 06:26
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