未验证 提交 aa7835ef 编写于 作者: G guofei 提交者: GitHub

Correct the error in decorator.py (#27409)

test=develop
上级 bbc84e0f
...@@ -42,7 +42,7 @@ import paddle.compat as cpt ...@@ -42,7 +42,7 @@ import paddle.compat as cpt
# For more details, please refer to # For more details, please refer to
# https://docs.python.org/3/library/multiprocessing.html#contexts-and-start-methods # https://docs.python.org/3/library/multiprocessing.html#contexts-and-start-methods
# https://bugs.python.org/issue33725 # https://bugs.python.org/issue33725
if sys.version_info >= (3, 8): if sys.version_info >= (3, 8) and sys.platform == 'darwin':
fork_context = multiprocessing.get_context('fork') fork_context = multiprocessing.get_context('fork')
else: else:
fork_context = multiprocessing fork_context = multiprocessing
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册