mirror of
https://github.com/ROCm/jax.git
synced 2025-04-18 04:46:06 +00:00
Update colab CPU test notebook to be more robust
This commit is contained in:
parent
208dd1ac3f
commit
5a0a46cbef
@ -95,7 +95,7 @@
|
||||
"arr = jax.random.normal(key, (1000,))\n",
|
||||
"device = arr.device_buffer.device()\n",
|
||||
"print(f\"JAX device type: {device}\")\n",
|
||||
"assert isinstance(device, xla_extension.CpuDevice), \"unexpected JAX device type\""
|
||||
"assert device.platform == \"cpu\", f\"unexpected JAX device type: {device.platform}\""
|
||||
],
|
||||
"execution_count": 2,
|
||||
"outputs": [
|
||||
|
Loading…
x
Reference in New Issue
Block a user