提交 c242705b 编写于 作者: R Reed 提交者: Taylor Robie

Fix another crash on single-core systems. (#4962)

上级 c708c1b4
......@@ -395,7 +395,7 @@ def instantiate_pipeline(dataset, data_dir, batch_size, eval_batch_size,
# By limiting the number of workers we guarantee that the worker
# pool underlying the training generation doesn't starve other processes.
num_workers = int(multiprocessing.cpu_count() * 0.75)
num_workers = int(multiprocessing.cpu_count() * 0.75) or 1
subproc_args = popen_helper.INVOCATION + [
"--data_dir", data_dir,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册