forked from mindspore-Ecosystem/mindspore
!15324 fix global multiprocessing lock
From: @jiang-shuqiang Reviewed-by: @heleiwang,@ms_yan,@liucunwei Signed-off-by: @liucunwei
This commit is contained in:
commit
b77da73928
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue