module onnxrt.optim.onnx_optimisation_unused
¶
Functions¶
function |
truncated documentation |
---|---|
Removes unused nodes of the graph. An unused node is not involved in the output computation. |
Documentation¶
Optimisation of ONNX graphs.
-
mlprodict.onnxrt.optim.onnx_optimisation_unused.
onnx_remove_node_unused
(onnx_model, recursive=True, debug_info=None, **options)¶ Removes unused nodes of the graph. An unused node is not involved in the output computation.
- Parameters
onnx_model – onnx model
recursive – looks into subgraphs
debug_info – debug information (private)
options – unused
- Returns
new onnx _model