chop.passes.interface.save_and_load#
load_mase_graph_interface_pass#
- chop.passes.graph.interface.save_and_load.load_mase_graph_interface_pass(graph, pass_args: dict = {'load_dir': None})[source]#
Load the MASE graph interface pass.
- Parameters:
graph (MaseGraph) – The input graph to be transformed.
pass_args (dict) – Optional arguments for the transformation pass. Default is {‘load_dir’: None}, load_dir is required.
- Returns:
The transformed graph and an empty dictionary.
- Return type:
tuple(MaseGraph, dic)
- Raises:
ValueError – If the load directory is not specified.