Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[XLA:Python] Split DevicePut out of
jax_jit
and refactor it.
* Creates a new py_values.cc/h file to contain device_put. * Moves some of the type helpers into the existing types module. * Change `PyClient::BufferFromPyval` to call DevicePut. There's no reason to have two similar but subtly different methods for copying a buffer-like object to a device. * Refactor and optimize some of the handler functions. In particular, avoid creating a number of unnecessary intermediate objects. PiperOrigin-RevId: 361430648
- Loading branch information