!15324 fix global multiprocessing lock

From: @jiang-shuqiang
Reviewed-by: @heleiwang,@ms_yan,@liucunwei
Signed-off-by: @liucunwei
This commit is contained in:
mindspore-ci-bot 2021-04-19 15:05:20 +08:00 committed by Gitee
commit b77da73928
1 changed files with 1 additions and 1 deletions

View File

@ -2193,7 +2193,7 @@ class ShuffleDataset(Dataset):
_GLOBAL_PYFUNC_LIST = []
_OP_NAME = dict()
_OP_PROCESS = dict()
_LOCK = multiprocessing.Lock()
_LOCK = threading.Lock()
# Pyfunc worker init function