R/device.R
mlx_device.Rd
Get device associated with an MLX object
mlx_device(x)
An mlx array, or an R array/matrix/vector that will be converted via as_mlx().
as_mlx()
"gpu" or "cpu".
"gpu"
"cpu"
x <- as_mlx(1:10) mlx_device(x) #> [1] "gpu"