conversion
DFlash conversion/restore utilities.
Functions
Convert the model to a DFlash model as per config. |
|
Function for restoring a previously converted model to a DFlash model. |
- convert_to_dflash_model(model, config)
Convert the model to a DFlash model as per config.
- Parameters:
model (Module)
config (DFlashConfig)
- Return type:
tuple[Module, dict[str, Any]]
- restore_dflash_model(model, config, metadata)
Function for restoring a previously converted model to a DFlash model.
- Parameters:
model (Module)
config (DFlashConfig)
metadata (dict[str, Any])
- Return type:
Module