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

Method push

examples/hfl/src/client.py:111–120  ·  view source on GitHub ↗

Client push weights to server. Namely server pull weights from clients.

(self)

Source from the content-addressed store, hash-verified

109 self.weights[k] = utils.deserialize_tensor(v)
110
111 def push(self) -> None:
112 """Client push weights to server.
113
114 Namely server pull weights from clients.
115 """
116 message = proto.WeightsExchange()
117 message.op_type = proto.GATHER
118 for k, v in self.weights.items():
119 message.weights[k] = utils.serialize_tensor(v)
120 utils.send_message(self.sock, message)
121
122
123# Data augmentation

Callers 15

runFunction · 0.95
BackwardMethod · 0.45
ForwardMethod · 0.45
ForwardMethod · 0.45
ForwardMethod · 0.45
ForwardMethod · 0.45
ForwardMethod · 0.45
ForwardMethod · 0.45
ForwardMethod · 0.45
ForwardMethod · 0.45
ForwardMethod · 0.45
ForwardMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected