(self, rnd, parameters, client_manager)
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…