View Source EXLA.Backend (EXLA v0.6.4)
A Nx tensor backend for the data kept on the device.
:client- the client to store the data on. Defaults to EXLA's default client.
:device_id- which device to store it on.
To get the data out of the device backend into a regular
Nx.backend_transfer/1 (with the device
tensor as the single argument).
Note that the
EXLA.Backend is asynchronous: operations
on its tensors may return immediately, before the tensor
data is available. The backend will then block only when
trying to read the data or when passing it to another operation.