Small fix in FAQ documentation

This commit is contained in:
Onno Eberhard 2022-05-10 13:04:49 +02:00 committed by GitHub
parent 68dbe74225
commit 7276731e8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -364,7 +364,7 @@ device.
Jitted functions behave like any other primitive operations—they will follow the
data and will show errors if invoked on data committed on more than one device.
``jnp.device_put(jnp.zeros(...), jax.devices()[1])`` or similar will actually create the
``jax.device_put(jnp.zeros(...), jax.devices()[1])`` or similar will actually create the
array of zeros on ``jax.devices()[1]``, instead of creating the array on the default
device then moving it. This is thanks to some laziness in array creation, which holds
for all the constant creation operations (``ones``, ``full``, ``eye``, etc).