Skip to content

Commit

Permalink
gpu
Browse files Browse the repository at this point in the history
  • Loading branch information
olive004 committed Oct 30, 2024
1 parent ab766d8 commit fc4d439
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions notebooks/23_Monte_Carlo_adaptability_2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -52,7 +52,7 @@
"import os\n",
"import sys\n",
"\n",
"jax.config.update('jax_platform_name', 'cpu')\n",
"jax.config.update('jax_platform_name', 'gpu')\n",
"\n",
"if __package__ is None:\n",
"\n",
Expand Down Expand Up @@ -89,7 +89,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -117,7 +117,7 @@
"t0 = 0\n",
"t1 = 300\n",
"ts = np.linspace(t0, t1, 500)\n",
"tmax = 700\n",
"tmax = 1000\n",
"dt0 = 0.0005555558569638981\n",
"dt1_factor = 5\n",
"dt1 = dt0 * dt1_factor\n",
Expand Down
Binary file modified notebooks/24_autodiff.ipynb
Binary file not shown.

0 comments on commit fc4d439

Please sign in to comment.