未验证 提交 2c064d16 编写于 作者: K Kaipeng Deng 提交者: GitHub

fix windows multiprocess (#2996)

上级 638f95ad
...@@ -63,6 +63,10 @@ class ParallelMappedDataset(ProxiedDataset): ...@@ -63,6 +63,10 @@ class ParallelMappedDataset(ProxiedDataset):
use_process = False use_process = False
if 'use_process' in self._worker_args: if 'use_process' in self._worker_args:
use_process = self._worker_args['use_process'] 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'] bufsize = self._worker_args['bufsize']
if use_process: if use_process:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册