forked from OSSInnovation/mindspore
!3624 fix GeneratorDataset time out
Merge pull request !3624 from yanghaitao/yht_generator_timeout
This commit is contained in:
commit
9ccc6889eb
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue