Skip to content
Snippets Groups Projects
Commit 4ea2b240 authored by Tim O'Donnell's avatar Tim O'Donnell
Browse files

mixed gpu / cpu training hack

parent f472d4b7
No related merge requests found
......@@ -194,9 +194,10 @@ def run(argv=sys.argv[1:]):
# environment variable. To do this, we push environment variables
# onto a queue. Each worker reads a single item from the queue,
# which is a list of environment variables to set.
cpus = 16
next_device = itertools.cycle([
"%d" % num for num in range(args.gpus)
])
] + ["" for num in range(cpus)])
env_queue = Queue()
for num in range(args.num_jobs[0]):
item = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment