提交 04000551 编写于 作者: K Kaipeng Deng 提交者: GitHub

fix windows multiprocess (#2996)

上级 6f5cb8b3
......@@ -63,6 +63,10 @@ class ParallelMappedDataset(ProxiedDataset):
use_process = False
if 'use_process' in self._worker_args:
use_process = self._worker_args['use_process']
if use_process and sys.platform == "win32":
logger.info("Use multi-thread reader instead of "
"multi-process reader on Windows.")
use_process = False
bufsize = self._worker_args['bufsize']
if use_process:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册