diff --git a/mindspore/dataset/engine/datasets.py b/mindspore/dataset/engine/datasets.py index afacb68089c..471565f7cec 100644 --- a/mindspore/dataset/engine/datasets.py +++ b/mindspore/dataset/engine/datasets.py @@ -3118,7 +3118,7 @@ class _GeneratorWorker(multiprocessing.Process): """ Get function for worker result queue. Block with timeout. """ - return self.res_queue.get(timeout=5) + return self.res_queue.get() def __del__(self): self.terminate()