forked from mindspore-Ecosystem/mindspore
fix GeneratorDataset time out
This commit is contained in:
parent
efb12d5e1e
commit
5c9b0657df
|
@ -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