Browse Source

!15324 fix global multiprocessing lock

From: @jiang-shuqiang
Reviewed-by: @heleiwang,@ms_yan,@liucunwei
Signed-off-by: @liucunwei
pull/15324/MERGE
mindspore-ci-bot Gitee 4 years ago
parent
commit
b77da73928
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mindspore/dataset/engine/datasets.py

+ 1
- 1
mindspore/dataset/engine/datasets.py View File

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




# Pyfunc worker init function # Pyfunc worker init function


Loading…
Cancel
Save