George Necula a510f03ef8 [callback] Add a flag to implement host_callback in terms of io_callback.
The host_callbacks APIs are deprecated and will be removed. In order to
help the transition to the new APIs, we add a flag (`JAX_HOST_CALLBACK_LEGACY`)
that when set to `False` will use `io_callback` (and `pure_callback` and
`jax.debug.callback`) to implement the host_callback APIs.

See issue #20385 for more details.

We change the tests to accomodate slightly different results when using
the new callbacks. The tests that use `tap_with_device` and `call_with_device`
are disabled when using the new callbacks.
2024-04-05 08:51:30 +01:00
..
2024-03-18 15:12:33 -07:00
2023-11-15 22:35:52 -05:00
2024-04-03 16:37:07 -04:00
2023-07-24 14:38:20 -07:00
2024-02-13 03:59:56 -08:00
2023-10-10 08:46:36 -07:00