R/device.R
mlx_best_device.Rd
Returns "gpu" if available, otherwise "cpu".
"gpu"
"cpu"
mlx_best_device()
Character: "gpu" or "cpu".
device <- mlx_best_device() x <- as_mlx(1:10, device = device)