conversion

Redrafter conversion/restore utilities.

Functions

convert_to_redrafter_model

Convert the model to a redrafter model as per config.

restore_redrafter_model

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