Dan Foreman-Mackey 1b1bd071bc Finalize deprecation of vectorized argument in callbacks.
The `vectorized` argument to `pure_callback` and `ffi_call` was deprecated in JAX v0.4.34 (released Oct 4 2024), then added to the CHANGELOG in v0.4.35 (doh! released Oct 22). The JAX compatibility policy requires 3 months of compatible releases before a deprecation is finalized, so it is time to remove this parameter from the public API. The `vmap_method` parameter can be used instead, and the docs for [`pure_callback`](https://docs.jax.dev/en/latest/_autosummary/jax.pure_callback.html) provide more details.

This change has one other (non-obvious!) affect on the user facing APIs. (Note that this change in behavior has also been protected by a deprecation warning since the `vectorized` parameter was deprecated.) The default behavior of `pure_callback` and `ffi_call` under `vmap` is to now raise an exception, rather than silently producing a loop. To opt in to the previous default behavior, use `vmap_method="sequential"`.

PiperOrigin-RevId: 747413383
2025-04-14 07:43:59 -07:00
..
2025-03-27 00:05:28 +00:00
2025-03-26 02:11:03 +00:00
2025-03-27 10:13:14 -07:00
2025-02-18 16:47:19 -08:00
2025-04-11 11:26:20 -07:00