Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion python/tvm/rpc/proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,10 @@ def terminate(self):
self.proc = None

def __del__(self):
self.terminate()
try:
self.terminate()
except ImportError:
pass


def websocket_proxy_server(url, key=""):
Expand Down
5 changes: 4 additions & 1 deletion python/tvm/rpc/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,4 +499,7 @@ def terminate(self):
self.proc = None

def __del__(self):
self.terminate()
try:
self.terminate()
except ImportError:
pass
5 changes: 4 additions & 1 deletion python/tvm/rpc/server_ios_launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,10 @@ def terminate(self):
print(e)

def __del__(self):
self.terminate()
try:
self.terminate()
except ImportError:
pass

@staticmethod
def is_compatible_environment():
Expand Down