mirror of
https://github.com/wassname/ray.git
synced 2026-06-29 08:14:56 +08:00
[tune] Fix GPU thread leakage
This commit is contained in:
@@ -637,6 +637,9 @@ class Trainable:
|
||||
"""
|
||||
self._result_logger.flush()
|
||||
self._result_logger.close()
|
||||
if self._monitor.is_alive():
|
||||
self._monitor.stop()
|
||||
self._monitor.join()
|
||||
self.cleanup()
|
||||
|
||||
self._close_logfiles()
|
||||
|
||||
Reference in New Issue
Block a user