MCPcopy Create free account
hub / github.com/akhilmathurs/orchestra / configure_evaluate_patch

Function configure_evaluate_patch

server.py:172–185  ·  view source on GitHub ↗
(self, rnd, parameters, client_manager)

Source from the content-addressed store, hash-verified

170
171 strategy.original_configure_evaluate = strategy.configure_evaluate
172 def configure_evaluate_patch(self, rnd, parameters, client_manager):
173 if hasattr(self, '_custom_skip_round') and self._custom_skip_round:
174 print(f"Skipping configure_evaluate at round {rnd}")
175 return None
176
177 # Save server model and other metadata to a cache file during configure_evaluate
178 print("Saving server training cache to", server_cache_path)
179 with open(server_cache_path, 'wb') as f:
180 pkl.dump({
181 'rnd': rnd,
182 'parameters': parameters,
183 'global_acc_dict': global_acc_dict
184 }, f)
185 return self.original_configure_evaluate(rnd, parameters, client_manager)
186 strategy.configure_evaluate = types.MethodType(configure_evaluate_patch, strategy)
187
188 # Start server

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…