Correct the error in decorator.py (#27409)

test=develop
revert-27520-disable_pr
guofei 4 years ago committed by GitHub
parent bbc84e0fe0
commit aa7835efee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save