flip.utils
FLIP Utilities module containing helper functions.
- Exports:
Utils: Utility class with static helper methods
get_model_weights_diff: Compute weight differences for federated updates
Submodules
Classes
Utility class with static helper methods. |
Functions
|
Compute the weights differences to send a weight update. |
Package Contents
- flip.utils.get_model_weights_diff(original_weights: collections.OrderedDict, new_weights: collections.OrderedDict, iterations: int) nvflare.apis.dxo.DXO[source]
Compute the weights differences to send a weight update.
- Parameters:
original_weights (OrderedDict) – weights coming from the server (before training)
new_weights (OrderedDict) – weights coming out of the server (post training)
iterations (int) – number of iterations
- Returns:
DXO – DXO containing the weight updates for the server.