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

Method close

examples/hfl/src/server.py:101–103  ·  view source on GitHub ↗

Close the server.

(self)

Source from the content-addressed store, hash-verified

99 self.__start_rank_pairing()
100
101 def close(self) -> None:
102 """Close the server."""
103 self.sock.close()
104
105 def aggregate(self, weights: Dict[str, List[tensor.Tensor]]) -> Dict[str, tensor.Tensor]:
106 """Aggregate collected weights to update server weight.

Callers 1

server.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected