conversion
Redrafter conversion/restore utilities.
Functions
Convert the model to a redrafter model as per config. |
|
Function for restoring a previously convert model to a redrafter model. |
- convert_to_redrafter_model(model, config)
Convert the model to a redrafter model as per config.
- Parameters:
model (Module) –
config (RedrafterConfig) –
- Return type:
Tuple[Module, Dict[str, Any]]
- restore_redrafter_model(model, config, metadata)
Function for restoring a previously convert model to a redrafter model.
- Parameters:
model (Module) –
config (RedrafterConfig) –
metadata (Dict[str, Any]) –
- Return type:
Module