MCPcopy
hub / github.com/FedML-AI/FedML / init_global_model

Method init_global_model

python/examples/flow/fedavg/test_fedml_flow.py:60–64  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

58 self.model = model
59
60 def init_global_model(self):
61 logging.info("init_global_model")
62 params = Params()
63 params.add(Params.KEY_MODEL_PARAMS, self.model.state_dict())
64 return params
65
66 def server_aggregate(self):
67 logging.info("server_aggregate")

Callers

nothing calls this directly

Calls 3

addMethod · 0.95
ParamsClass · 0.90
infoMethod · 0.45

Tested by

no test coverage detected