Add docs to torch_neural_net.__del__

This commit is contained in:
Brandon Amos 2016-10-21 09:37:41 -04:00
parent 0b6b22313e
commit 6343e40441
1 changed files with 4 additions and 0 deletions

View File

@ -69,6 +69,10 @@ class TorchNeuralNet:
atexit.register(exitHandler) atexit.register(exitHandler)
def __del__(self): def __del__(self):
"""__del__(self)
Kill the Lua subprocess.
"""
if self.p.poll() is None: if self.p.poll() is None:
self.p.kill() self.p.kill()