nvflare.app_common.utils.fl_model_utils module¶
- class FLModelUtils[source]¶
Bases:
object
- static from_model_learnable(model_learnable: ModelLearnable) FLModel [source]¶
From NVFlare side shareable to FLModel.
This is a temporary solution to converts the shareable of existing style to FLModel, so that we can reuse the existing components we have.
In the future, we should be using the to_dxo, from_dxo directly. And all the components should be changed to accept the standard DXO.
- static to_model_learnable(fl_model: FLModel) ModelLearnable [source]¶
From FLModel to NVFlare side shareable.
This is a temporary solution to converts FLModel to the shareable of existing style, so that we can reuse the existing components we have.
In the future, we should be using the to_dxo, from_dxo directly. And all the components should be changed to accept the standard DXO.