jax.device_put
Warning
This page was created from a pull request (#9655).
jax.device_put¶
- jax.device_put(x, device=None)[source]¶
Transfers
x
todevice
.- Parameters
If the
device
parameter 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
x
that resides ondevice
.