onnx_diagnostic.helpers.torch_fx_graph_helper¶
- onnx_diagnostic.helpers.torch_fx_graph_helper.prepare_args_kwargs(torch_results: Dict[str, Any], node: Node) Tuple[Tuple[Any, ...], Dict[str, Any]][source][source]¶
Prepares args and kwargs before executing a fx node.
- Parameters:
torch_results – existing results
node – node to execute
- Returns:
new args and kwargs
- onnx_diagnostic.helpers.torch_fx_graph_helper.run_fx_node(node: Node, args: Tuple[Any, ...], kwargs: Dict[str, Any] | None = None) Tuple[Any, ...][source][source]¶
Executes a node
- Parameters:
node – runs a node
args – unnamed inputs to the node
kwargs – named inputs to the node
- Returns:
results