Need to inspect or use a device-resident value in ordinary Python? jax.device_get() transfers it from the device to the host process and returns a NumPy ndarray. section 3.2.3
Bring an array back to the host
arr_host = jax.device_get(arr)\ntype(arr_host)\n>>> numpy.ndarray\n\narr_host\n>>> array([1, 42, 31337], dtype=int32)\n\nUse this boundary when host-side Python or NumPy needs the values. Device placement remains a separate concern handled by jax.device_put(). section 3.2.3
