chop.passes.graph.analysis.report#
report_graph_analysis_pass#
- chop.passes.graph.analysis.report.report_graph.report_graph_analysis_pass(graph, pass_args={'file_name': None})[source]#
Generates a report for the graph analysis and prints out an overview of the model in a table.
- Parameters:
graph (MaseGraph) – a MaseGraph
pass_args (dict, optional) – this pass can take a string argument named “file_name”, defaults to None
pass_args is normally None for this pass
- Returns:
return a tuple of a MaseGraph and an empty dict (no additional info to return)
- Return type:
tuple(MaseGraph, dict)
report_node_hardware_type_analysis_pass#
- chop.passes.graph.analysis.report.report_node.report_node_hardware_type_analysis_pass(graph, pass_args: dict = {})[source]#
Perform hardware type analysis on the given graph.
- Parameters:
graph (MaseGraph) – The graph to perform the analysis on.
pass_args (dict, optional) – Optional arguments for the analysis pass.
pass_args should be None for this pass.
- Returns:
The analyzed graph and an empty dictionary.
- Return type:
tuple(MaseGraph, dict)
report_node_meta_param_analysis_pass#
- chop.passes.graph.analysis.report.report_node.report_node_meta_param_analysis_pass(graph, pass_args: dict = {})[source]#
Perform meta parameter analysis on the nodes in the graph and generate a report.
- Parameters:
graph (MaseGraph) – The graph to analyze.
pass_args – Optional arguments for the analysis pass, a dict of arguments for this pass, including - “which”: str, and a list of options in [“all”, “common”, “hardware”, “software”], default [“all”] - “save_path”: str, a str of path to save the table, default None
pass_args = { "which": "all", # pick from ["all", "common", "hardware", "software"], "save_path": "path/to/save/table.txt" # default None, a str of path to save the table }
- Returns:
The analyzed graph and an empty dictionary.
- Return type:
tuple(MaseGraph, dict)
report_node_shape_analysis_pass#
- chop.passes.graph.analysis.report.report_node.report_node_shape_analysis_pass(graph, pass_args: dict = {})[source]#
Perform shape analysis on the nodes in the graph.
- Parameters:
graph (MaseGraph) – The input graph to analyze.
pass_args (dict) – Additional arguments for the analysis pass (optional).
pass_args should be None for this pass.
- Returns:
The analyzed graph and an empty dictionary.
- Return type:
tuple(MaseGraph, Dict)
report_node_type_analysis_pass#
- chop.passes.graph.analysis.report.report_node.report_node_type_analysis_pass(graph, pass_args: dict = {})[source]#
Perform a node type analysis on the given graph, pretty print MaseGraph after initialization/loading.
- Parameters:
graph (MaseGraph) – The graph to analyze.
pass_args (dict) – Additional arguments for the analysis pass (optional).
pass_args should be None for this pass.
- Returns:
The analyzed graph and an empty dictionary.
- Return type:
tuple(MaseGraph, dict)