conversion

DFlash conversion/restore utilities.

Functions

convert_to_dflash_model

Convert the model to a DFlash model as per config.

restore_dflash_model

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:
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