jax.device_put
Warning
This page was created from a pull request (#9655).
jax.device_put¶
- jax.device_put(x, device=None)[source]¶
Transfers
xtodevice.- Parameters
If the
deviceparameter isNone, then this operation behaves like the identity function if the operand is on any device already, otherwise it transfers the data to the default device, uncommitted.For more details on data placement see the FAQ on data placement.
- Returns
A copy of
xthat resides ondevice.