!3639 fix GeneratorDataset time out

Merge pull request !3639 from yanghaitao/yht_generator_timeout_r0.6
This commit is contained in:
mindspore-ci-bot 2020-07-29 14:42:38 +08:00 committed by Gitee
commit 924a34acb8
1 changed files with 1 additions and 1 deletions

View File

@ -3115,7 +3115,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()