Skip to content

Instantly share code, notes, and snippets.

@dariocazzani
Created May 9, 2018 15:57
Show Gist options
  • Save dariocazzani/1cee84f7d2cb4b46c24e3d7099fc8e17 to your computer and use it in GitHub Desktop.
Save dariocazzani/1cee84f7d2cb4b46c24e3d7099fc8e17 to your computer and use it in GitHub Desktop.
WorldModels-multiprocessing
with mp.Pool(mp.cpu_count()) as p:
p.map(simulate_batch, range(_NUM_BATCHES))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment