MCPcopy Create free account
hub / github.com/apache/singa / close

Method close

examples/hfl/src/client.py:97–99  ·  view source on GitHub ↗

Close the server.

(self)

Source from the content-addressed store, hash-verified

95 print(f"[Client {self.global_rank}] Connect to {self.host}:{self.port}")
96
97 def close(self) -> None:
98 """Close the server."""
99 self.sock.close()
100
101 def pull(self) -> None:
102 """Client pull weights from server.

Callers 15

runFunction · 0.95
~ChannelMethod · 0.45
SetDestFilePathMethod · 0.45
CloseMethod · 0.45
CloseMethod · 0.45
CountMethod · 0.45
CloseMethod · 0.45
CountMethod · 0.45
CloseMethod · 0.45
mainFunction · 0.45
save_imageMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected