Skip to content

Commit

Permalink
take out dask call to LocalCluster
Browse files Browse the repository at this point in the history
  • Loading branch information
yutaizhou committed Aug 21, 2023
1 parent 34f58bb commit 817f246
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tutorials/lunar_lander.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -560,11 +560,10 @@
"total_itrs = 300\n",
"workers = 2 # Adjust the number of workers based on your available CPUs.\n",
"\n",
"client = Client(LocalCluster(\n",
" processes=True, # Each worker is a process.\n",
" n_workers=workers, # Create this many worker processes.\n",
"client = Client(\n",
" n_workers=workers, # Create this many worker processes using Dask LocalCluster.\n",
" threads_per_worker=1, # Each worker process is single-threaded.\n",
"))\n",
")\n",
"\n",
"for itr in trange(1, total_itrs + 1, file=sys.stdout, desc='Iterations'):\n",
" # Request models from the scheduler.\n",
Expand Down

0 comments on commit 817f246

Please sign in to comment.