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

Method start

examples/hfl/src/client.py:87–95  ·  view source on GitHub ↗

Start the client. This method will first connect to the server. Then global rank is sent to the server.

(self)

Source from the content-addressed store, hash-verified

85 utils.send_int(self.sock, self.global_rank)
86
87 def start(self) -> None:
88 """Start the client.
89
90 This method will first connect to the server. Then global rank is sent to the server.
91 """
92 self.__start_connection()
93 self.__start_rank_pairing()
94
95 print(f"[Client {self.global_rank}] Connect to {self.host}:{self.port}")
96
97 def close(self) -> None:
98 """Close the server."""

Callers 15

runFunction · 0.95
__init__Method · 0.45
print_cpu_gpu_usageFunction · 0.45
mainFunction · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 2

__start_connectionMethod · 0.95
__start_rank_pairingMethod · 0.95

Tested by

no test coverage detected