forked from OSSInnovation/mindspore
!3639 fix GeneratorDataset time out
Merge pull request !3639 from yanghaitao/yht_generator_timeout_r0.6
This commit is contained in:
commit
924a34acb8
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue