提交 5c9b0657 编写于 作者: Y yanghaitao

fix GeneratorDataset time out

上级 efb12d5e
......@@ -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()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册